:root {
  --af-bg: #f8f6ff;
  --af-text: #171224;
  --af-muted: #575164;
  --af-purple: #7c35f4;
  --af-purple-light: #a661ff;
  --af-card: rgba(255, 255, 255, 0.9);
  --af-shadow: 0 18px 45px rgba(61, 27, 114, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef2f9;
  color: var(--af-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

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

.af-page {
  width: 100%;
  overflow: hidden;
  background: var(--af-bg);
}



















































.af-program {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 38px 18px 70px;
  background:
    radial-gradient(circle at 92% 8%, rgba(159, 89, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #fbfaff 0%, #f5f1ff 100%);
}

.af-program::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(125deg, transparent 0 48%, rgba(132, 62, 246, 0.07) 48.3% 48.7%, transparent 49%),
    radial-gradient(circle, rgba(125, 53, 244, 0.16) 1px, transparent 1.5px);
  background-position: center, right 22px top 22px;
  background-size: 100% 100%, 18px 18px;
  content: "";
  pointer-events: none;
}

.af-program__inner {
  width: min(100%, 1400px);
  margin: 0 auto;
}

.af-section-title {
  margin: 0;
  font-size: clamp(38px, 9vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.af-section-title::after {
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c35f4, #b865ff);
  content: "";
}

.af-program__intro {
  max-width: 900px;
  margin: 18px 0 30px;
  color: #4f495d;
  font-size: 17px;
  line-height: 1.55;
}

.af-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.af-card {
  --accent: #7c35f4;
  --accent-soft: #b886ff;
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 22px 20px 22px 94px;
  border: 1px solid rgba(108, 54, 184, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--accent) 5%, white), rgba(255, 255, 255, 0.94) 55%),
    var(--af-card);
  box-shadow: var(--af-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.af-card::before {
  position: absolute;
  left: -54px;
  top: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  border-radius: 50%;
  content: "";
}

.af-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 23px 55px rgba(61, 27, 114, 0.16);
}

.af-card--2 { --accent: #d236dc; --accent-soft: #f067f2; }
.af-card--3 { --accent: #2f7ce8; --accent-soft: #6cadff; }
.af-card--4 { --accent: #e59d22; --accent-soft: #ffc761; }
.af-card--5 { --accent: #8c43e8; --accent-soft: #bd76ff; }
.af-card--6 { --accent: #12a397; --accent-soft: #4ed7c8; }

.af-card h3 {
  position: relative;
  z-index: 2;
  font-size: 21px;
  line-height: 1.15;
}

.af-card h3::after {
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.af-card p {
  position: relative;
  z-index: 2;
  color: #4d4757;
  line-height: 1.48;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2, .7, .2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  

  .af-program {
    padding-inline: 42px;
  }

  .af-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 980px) {

  .af-program {
    padding: 42px 56px 92px;
  }
}

@media (max-width: 480px) {

  .af-program {
    padding: 28px 12px 60px;
  }

  .af-program__inner {
    width: 100%;
  }

  .af-section-title {
    padding-inline: 4px;
  }

  .af-program__intro {
    padding-inline: 4px;
    font-size: 16px;
  }

  .af-card {
    min-height: 176px;
    padding: 20px 16px 20px 88px;
  }

  .af-card h3 {
    font-size: 20px;
  }

  .af-card p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Mobile hero typography correction */
@media (max-width: 480px) {
  

  

  

  

  

  

  

  

  

  .af-program {
    padding-top: 34px;
  }
}

/* update_003: более крупная и читаемая типографика второго блока */
@media (max-width: 480px) {
  .af-section-title {
    color: #171224;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 39px;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .af-section-title::after {
    width: 56px;
    height: 4px;
    margin-top: 13px;
  }

  .af-program__intro {
    margin-top: 18px;
    margin-bottom: 30px;
    color: #514a5e;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.52;
    letter-spacing: -0.008em;
  }

  .af-card {
    padding-right: 18px;
  }

  .af-card h3 {
    color: #171224;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 21px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: -0.018em;
  }

  .af-card p {
    color: #575164;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.56;
    letter-spacing: -0.006em;
  }
}

/* update_004: reserve a separate text column so headings never overlap icon/number */
@media (max-width: 480px) {
  .af-card {
    padding-left: 104px;
    padding-right: 18px;
  }

  .af-card h3,
  .af-card p {
    max-width: 100%;
  }
}

/* update_005: Spotlight — наставники */
.af-coaches {
  position: relative;
  overflow: hidden;
  padding: 40px 18px 84px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(132, 59, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(102, 49, 209, 0.12), transparent 32%),
    #07070c;
}

.af-coaches::before {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(120deg, transparent 0 49.4%, rgba(153, 95, 255, .13) 49.5% 49.7%, transparent 49.8%),
    radial-gradient(circle, rgba(177, 128, 255, .12) 1px, transparent 1.4px);
  background-size: 100% 100%, 24px 24px;
  content: "";
  pointer-events: none;
}

.af-coaches__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.af-coaches__heading {
  max-width: 620px;
}

.af-coaches__kicker {
  margin: 0 0 10px;
  color: #a764ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.af-coaches__heading h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.af-coaches__heading h2 span {
  color: #a85fff;
}

.af-coaches__heading > p:last-child {
  max-width: 590px;
  margin: 19px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.62;
}

.af-coach-slider {
  position: relative;
  padding: 0 72px 34px;
}

.af-coach-viewport {
  overflow: hidden;
  border-radius: 26px;
}

.af-coach-track {
  display: flex;
  transition: transform 430ms cubic-bezier(.22,.76,.22,1);
  will-change: transform;
}

.af-coach-card {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(330px, .95fr) 1.25fr;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(190,148,255,.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 24% 38%, rgba(125,55,244,.27), transparent 34%),
    linear-gradient(135deg, rgba(26,20,41,.98), rgba(8,8,13,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06);
}

.af-coach-card__photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.af-coach-card__photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 58%, rgba(10,9,16,.85) 100%);
  content: "";
  pointer-events: none;
}

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

.af-coach-card__content {
  align-self: center;
  padding: 50px 52px 46px 34px;
}

.af-coach-card__role {
  margin: 0 0 10px;
  color: #b66cff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.af-coach-card h3 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
}

.af-coach-card__achievements,
.af-coach-card__more ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-coach-card__achievements li,
.af-coach-card__more li {
  position: relative;
  padding-left: 35px;
  color: rgba(255,255,255,.86);
  line-height: 1.45;
}

.af-coach-card__achievements li::before,
.af-coach-card__more li::before {
  position: absolute;
  left: 0;
  top: .05em;
  color: #a65cff;
  font-size: 21px;
  line-height: 1;
  content: "★";
}

.af-coach-card__more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.af-coach-more {
  display: inline-flex;
  min-width: 225px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid #9450f4;
  color: #fff;
  background: rgba(15,12,22,.72);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.af-coach-more:hover {
  transform: translateY(-2px);
  background: rgba(126,55,240,.18);
  box-shadow: 0 14px 34px rgba(111,44,218,.22);
}

.af-coach-more__icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
}

.af-coach-more__chevron {
  font-size: 22px;
  transition: transform 180ms ease;
}

.af-coach-more[aria-expanded="true"] .af-coach-more__chevron {
  transform: rotate(180deg);
}

.af-coach-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(182,111,255,.42);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(10, 8, 17, .72);
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.af-coach-nav__icon {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.af-coach-nav--prev .af-coach-nav__icon {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.af-coach-nav--next .af-coach-nav__icon {
  transform: rotate(45deg);
  margin-right: 4px;
}

.af-coach-nav:hover {
  background: linear-gradient(135deg, #7130e8, #9b43ff);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-50%) scale(1.05);
}

.af-coach-nav:active {
  transform: translateY(-50%) scale(.96);
}

.af-coach-nav--prev { left: 0; }
.af-coach-nav--next { right: 0; }

.af-coach-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.af-coach-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.af-coach-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c35f4, #b769ff);
}

@media (max-width: 767px) {
  .af-coaches {
    padding: 54px 12px 66px;
  }

  .af-coaches__heading {
    margin-bottom: 24px;
    padding: 0 6px;
  }

  .af-coaches__heading h2 {
    font-size: 35px;
  }

  .af-coaches__heading > p:last-child {
    font-size: 16px;
    line-height: 1.52;
  }

  .af-coach-slider {
    padding: 0 0 34px;
  }

  .af-coach-card {
    display: block;
    min-height: 0;
    border-radius: 22px;
  }

  .af-coach-card__photo {
    height: 360px;
    min-height: 0;
  }

  .af-coach-card__photo::after {
    background: linear-gradient(180deg, transparent 48%, rgba(10,9,16,.98) 100%);
  }

  .af-coach-card__content {
    margin-top: -58px;
    padding: 0 22px 26px;
    position: relative;
    z-index: 2;
  }

  .af-coach-card__role {
    font-size: 12px;
  }

  .af-coach-card h3 {
    margin-bottom: 20px;
    font-size: 31px;
  }

  .af-coach-card__achievements li,
  .af-coach-card__more li {
    padding-left: 29px;
    font-size: 15px;
  }

  .af-coach-more {
    width: 100%;
    min-width: 0;
  }

  .af-coach-nav {
    top: 202px;
    width: 42px;
    height: 42px;
  }

  .af-coach-nav--prev { left: 12px; }
  .af-coach-nav--next { right: 12px; }
}

/* Убираем системную синюю/серую подсветку стрелок при тапе на мобильных */
.af-coach-nav,
.af-coach-nav *,
.af-coach-dot,
.af-coach-more {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.af-coach-nav {
  touch-action: manipulation;
  outline: none;
}

.af-coach-nav:focus {
  outline: none;
}

.af-coach-nav:focus-visible {
  outline: 2px solid rgba(164, 92, 255, .95);
  outline-offset: 4px;
}

.af-coach-nav__icon {
  pointer-events: none;
}

/* =========================================================
   TRIAL SIGN-UP / AGE GROUP SLIDER
   ========================================================= */
.af-trial {
  --trial-purple: #7a35f5;
  --trial-purple-2: #a34cff;
  --trial-ink: #171329;
  --trial-muted: #5d586d;
  position: relative;
  overflow: hidden;
  padding: 54px 16px 64px;
  background:
    radial-gradient(circle at 13% 12%, rgba(146, 83, 255, .12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 201, 221, .22), transparent 27%),
    linear-gradient(180deg, #fbfaff 0%, #f5f2ff 100%);
}

.af-trial__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.af-trial-stage {
  position: relative;
  min-height: min(760px, calc(100svh - 42px));
  border: 1px solid rgba(69, 42, 118, .10);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(51, 27, 92, .13);
  overflow: hidden;
  isolation: isolate;
}

.af-trial-viewport { width: 100%; overflow: hidden; }
.af-trial-track { display: flex; width: 100%; transition: transform .62s cubic-bezier(.22,.75,.2,1); will-change: transform; }
.af-trial-slide { flex: 0 0 100%; min-width: 0; position: relative; min-height: min(760px, calc(100svh - 42px)); background: #fff; }
.af-trial-slide__media { position: absolute; inset: 0 0 43%; overflow: hidden; background: #eee9ff; }
.af-trial-slide__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 45%, rgba(255,255,255,.88) 100%);
}
.af-trial-slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.02); transition: transform 1s cubic-bezier(.22,.75,.2,1); }
.af-trial-slide.is-active .af-trial-slide__media img { transform: scale(1); }

.af-trial-slide__content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 48%;
  padding: 30px 24px 30px;
  border-radius: 30px 30px 0 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -14px 42px rgba(59, 31, 104, .08);
}

.af-trial-slide__content h2 {
  margin: 0 0 20px;
  color: var(--trial-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(29px, 8.6vw, 42px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 800;
}
.af-trial-slide__content h2 span { color: var(--trial-purple); }
.af-trial-slide__group { display: grid; grid-template-columns: 66px 1fr; gap: 15px; align-items: center; margin-bottom: 24px; }
.af-trial-slide__group h3 { margin: 0 0 3px; color: var(--trial-purple); font: 800 30px/1 Montserrat,Arial,sans-serif; letter-spacing: -.03em; }
.af-trial-slide__group p { margin: 3px 0 0; color: var(--trial-muted); font: 500 17px/1.35 Montserrat,Arial,sans-serif; }
.af-trial-slide__group .af-trial-slide__age { color: var(--trial-ink); font-weight: 600; }

.af-trial-cta {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(90deg,var(--trial-purple),var(--trial-purple-2));
  box-shadow: 0 12px 27px rgba(122,53,245,.28), inset 0 1px 0 rgba(255,255,255,.35);
  font: 700 17px/1 Montserrat,Arial,sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.af-trial-cta:active { transform: scale(.985); }
.af-trial-cta span:last-child { font-size: 27px; font-weight: 400; }

.af-trial-nav {
  position: absolute;
  z-index: 8;
  top: 35%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(122,53,245,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 23px rgba(33,16,64,.14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .2s ease, background .2s ease;
}
.af-trial-nav:active { transform: translateY(-50%) scale(.94); }
.af-trial-nav--prev { left: 12px; transform: translateY(-50%); }
.af-trial-nav--next { right: 12px; transform: translateY(-50%); }
.af-trial-nav span::before { content: ""; display: block; width: 11px; height: 11px; border-top: 2px solid var(--trial-purple); border-right: 2px solid var(--trial-purple); margin: auto; }
.af-trial-nav--prev span::before { transform: rotate(-135deg) translate(-1px,-1px); }
.af-trial-nav--next span::before { transform: rotate(45deg) translate(-1px,1px); }

.af-trial-dots { position: absolute; z-index: 10; left: 50%; bottom: 126px; transform: translateX(-50%); display: flex; gap: 9px; }
.af-trial-dot { appearance:none; -webkit-appearance:none; width: 9px; height: 9px; border:0; border-radius:50%; padding:0; background:#d9d3e6; cursor:pointer; transition: width .25s ease, background .25s ease; }
.af-trial-dot.is-active { width: 28px; border-radius: 10px; background: var(--trial-purple); }

.af-trial-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 9px;
  border: 1px solid rgba(69,42,118,.09);
  background: rgba(255,255,255,.88);
  box-shadow: 0 13px 35px rgba(51,27,92,.09);
  overflow-x: auto;
  scrollbar-width: none;
}
.af-trial-tabs::-webkit-scrollbar { display:none; }
.af-trial-tab {
  appearance:none;
  -webkit-appearance:none;
  border:1px solid transparent;
  min-width: 128px;
  min-height: 68px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  gap:11px;
  padding: 8px 12px;
  color: var(--trial-ink);
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.af-trial-tab.is-active { border-color: rgba(122,53,245,.54); background: linear-gradient(145deg,#f3ecff,#fff); }
.af-trial-tab strong, .af-trial-tab small { display:block; font-family:Montserrat,Arial,sans-serif; }
.af-trial-tab strong { font-size:15px; line-height:1.2; }
.af-trial-tab small { margin-top:4px; color:#6a6477; font-size:12px; }

@media (min-width: 768px) {
  .af-trial { padding: 82px 28px 88px; }
  .af-trial-stage { min-height: 570px; border-radius: 34px; }
  .af-trial-slide { min-height: 570px; display:grid; grid-template-columns: 47% 53%; }
  .af-trial-slide__media { position: relative; inset:auto; grid-column:2; grid-row:1; height:570px; }
  .af-trial-slide__media::after { background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.60) 20%,transparent 58%); }
  .af-trial-slide__content { position:relative; grid-column:1; grid-row:1; min-height:570px; border-radius:0; box-shadow:none; padding:64px 42px 52px 72px; display:flex; flex-direction:column; justify-content:center; }
  .af-trial-slide__content::after { content:""; position:absolute; z-index:-1; inset:0 -110px 0 0; background:linear-gradient(90deg,#fff 0%,#fff 64%,rgba(255,255,255,0) 100%); }
  .af-trial-slide__content h2 { max-width:500px; margin-bottom:34px; font-size:clamp(42px,4vw,66px); }
  .af-trial-slide__group { grid-template-columns:76px 1fr; gap:18px; margin-bottom:30px; }
  .af-trial-slide__group h3 { font-size:34px; }
  .af-trial-slide__group p { font-size:18px; }
  .af-trial-cta { width:280px; }
  .af-trial-nav { top:50%; width:54px; height:54px; }
  .af-trial-nav--prev { left:-27px; }
  .af-trial-nav--next { right:-27px; }
  .af-trial-dots { bottom:25px; }
  .af-trial-tabs { margin-top:16px; gap:10px; padding:10px; }
  .af-trial-tab { min-width:0; min-height:82px; padding:10px 18px; }
  .af-trial-tab:hover { transform:translateY(-2px); background:#f8f5ff; }
  .af-trial-cta:hover { transform:translateY(-2px); box-shadow:0 16px 30px rgba(122,53,245,.34),inset 0 1px 0 rgba(255,255,255,.35); }
  .af-trial-nav:hover { background:#f4edff; }
}

@media (max-width: 420px) {
  .af-trial { padding-left:10px; padding-right:10px; }
  .af-trial-stage, .af-trial-slide { min-height: calc(100svh - 24px); }
  .af-trial-slide__media { inset:0 0 45%; }
  .af-trial-slide__content { min-height:50%; padding:25px 20px 24px; }
  .af-trial-slide__content h2 { font-size:clamp(28px,8.8vw,36px); margin-bottom:16px; }
  .af-trial-slide__group { grid-template-columns:58px 1fr; margin-bottom:18px; }
  .af-trial-slide__group h3 { font-size:27px; }
  .af-trial-slide__group p { font-size:15px; }
  .af-trial-dots { bottom:111px; }
  .af-trial-tab { min-width:108px; padding:7px 9px; gap:7px; }
  .af-trial-tab strong { font-size:13px; }
  .af-trial-tab small { font-size:10px; }
}

@media (prefers-reduced-motion: reduce) {
  .af-trial-track, .af-trial-slide__media img, .af-trial-cta, .af-trial-nav, .af-trial-tab { transition:none !important; }
}

/* update 009: refined trial block layout */
.af-trial-mobile-heading { display:none; }

@media (min-width: 768px) {
  .af-trial-slide__content h2 {
    max-width: 520px;
    font-size: clamp(40px, 3.55vw, 58px);
    line-height: .96;
    letter-spacing: -.045em;
  }
}

/* =========================================================
   update_068 — desktop hero title lockup + build badge
   ========================================================= */
.af-build-version {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  min-width: 47px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(182, 105, 255, .32);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(124, 53, 244, .12);
  font: 800 11px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .06em;
  transform: translateY(-50%);
}

@media (min-width: 1024px) {
  .af-desktop-header__nav {
    padding-right: 76px;
  }

  .af-hero__brand-lockup {
    position: relative;
    display: flex;
    width: min(700px, 49vw);
    align-items: flex-start;
    gap: 34px;
  }

  .af-hero .af-header {
    position: relative;
    top: auto;
    left: auto;
    display: flex !important;
    width: 112px;
    min-height: 0;
    flex: 0 0 112px;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3px;
    transform: none;
  }

  .af-hero .af-header::after {
    position: absolute;
    top: 3px;
    right: -18px;
    width: 2px;
    height: 162px;
    border-radius: 99px;
    background: linear-gradient(180deg, #b86aff 0%, #7c35f4 70%, rgba(124,53,244,.08) 100%);
    box-shadow: 0 0 16px rgba(151,72,255,.3);
    content: "";
  }

  .af-hero .af-logo {
    width: 104px;
    height: 132px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.46));
  }

  .af-hero__brand-lockup .af-hero__content {
    width: min(500px, 39vw);
    max-width: 500px;
    margin: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .af-hero__brand-lockup {
    width: min(560px, 49vw);
    gap: 26px;
  }

  .af-hero .af-header {
    width: 82px;
    flex-basis: 82px;
  }

  .af-hero .af-header::after {
    right: -14px;
    height: 142px;
  }

  .af-hero .af-logo {
    width: 76px;
    height: 104px;
  }

  .af-hero__brand-lockup .af-hero__content {
    width: min(430px, 38vw);
  }
}

@media (max-width: 1023px) {
  .af-hero__brand-lockup {
    display: block;
    width: 100%;
  }
}

/* update_069 — align desktop logo with the main title */
@media (min-width: 1024px) {
  .af-hero__brand-lockup .af-eyebrow {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: .015em;
  }

  .af-hero .af-header {
    align-items: center;
    margin-top: 40px;
    padding-top: 0;
  }

  .af-hero .af-header::after {
    top: 0;
    height: 132px;
  }

  .af-hero .af-logo {
    object-position: center center;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .af-hero .af-header {
    margin-top: 40px;
  }

  .af-hero .af-header::after {
    height: 108px;
  }
}

@media (max-width: 767px) {
  .af-trial {
    padding: 34px 12px 46px;
  }

  .af-trial__inner {
    width: 100%;
  }

  .af-trial-mobile-heading {
    display:block;
    margin: 0 12px 22px;
    color: var(--trial-ink);
    font: 900 clamp(30px, 9vw, 40px)/.98 Montserrat, Arial, sans-serif;
    letter-spacing: -.045em;
    text-align:center;
  }

  .af-trial-mobile-heading span {
    color: var(--trial-purple);
  }

  .af-trial-stage {
    min-height: 0;
    overflow: hidden;
    border-radius: 26px;
    background:#fff;
    box-shadow: 0 18px 50px rgba(61,36,104,.15);
  }

  .af-trial-viewport {
    overflow:hidden;
  }

  .af-trial-slide {
    display:flex;
    min-height:0;
    flex-direction:column;
    background:#fff;
  }

  .af-trial-slide__media {
    position:relative;
    inset:auto;
    width:100%;
    height: min(52svh, 470px);
    min-height: 330px;
    background:#f3efff;
  }

  .af-trial-slide__media::after {
    background: linear-gradient(180deg, transparent 67%, rgba(255,255,255,.96) 100%);
  }

  .af-trial-slide__media img {
    object-fit:cover;
    object-position:center center;
    transform:none;
  }

  .af-trial-slide__content {
    position:relative;
    z-index:2;
    min-height:0;
    margin-top:-30px;
    padding: 38px 22px 24px;
    border-radius: 30px 30px 0 0;
    background:#fff;
    box-shadow:none;
  }

  .af-trial-slide__content h2 {
    display:none;
  }

  .af-trial-slide__group {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    margin:0 0 22px;
    text-align:center;
  }

  .af-trial-slide__group h3 {
    margin:0;
    font-size:31px;
    line-height:1;
  }

  .af-trial-slide__group p {
    margin:2px 0 0;
    font-size:16px;
    line-height:1.35;
  }

  .af-trial-cta {
    width:100%;
    min-height:56px;
    margin:0;
  }

  .af-trial-nav {
    top: calc(22px + min(26svh, 235px));
    width:48px;
    height:48px;
  }

  .af-trial-nav--prev { left:12px; }
  .af-trial-nav--next { right:12px; }

  .af-trial-dots {
    position:static;
    width:max-content;
    margin:16px auto 14px;
    transform:none;
  }

  .af-trial-tabs {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:4px;
    margin:0;
    padding:8px;
    overflow:visible;
    border-radius:0 0 22px 22px;
    box-shadow:none;
    border-top:1px solid #eee9f8;
  }

  .af-trial-tab {
    min-width:0;
    min-height:68px;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:7px 3px;
    border:0;
    border-radius:14px;
  }

  .af-trial-tab strong { font-size:11px; }
  .af-trial-tab small { display:none; }
  .af-trial-tab.is-active { background:#f3edff; }
}

@media (max-width: 390px) {
  .af-trial-mobile-heading {
    font-size: clamp(28px, 8.4vw, 34px);
  }
  .af-trial-slide__media {
    height: 44svh;
    min-height: 300px;
  }
  .af-trial-nav {
    top: calc(22px + 22svh);
  }
}

/* ===== MEDIA ===== */
.af-media{
  position:relative;
  overflow:hidden;
  padding:40px 18px 84px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 18%,rgba(130,65,255,.16),transparent 28%),
    radial-gradient(circle at 8% 90%,rgba(70,35,150,.18),transparent 30%),
    #07070c;
}
.af-media__inner{width:min(1180px,calc(100% - 40px));margin:0 auto}
.af-media__heading{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(420px,1.3fr);gap:56px;align-items:end;margin-bottom:42px}
.af-media__heading h2{margin:0;font-size:clamp(44px,5vw,74px);line-height:.95;letter-spacing:-.045em;font-weight:800}
.af-media__heading h2::after{content:"";display:block;width:62px;height:4px;margin-top:18px;border-radius:99px;background:linear-gradient(90deg,#7a39ff,#b36cff)}
.af-media__heading p{max-width:660px;margin:0;color:#c8c5d2;font-size:clamp(17px,1.55vw,21px);line-height:1.62}
.af-media__desktop{display:block}
.af-media__mobile{display:none}
.af-media-photo-strip{display:grid;grid-template-columns:1.35fr repeat(3,1fr) .62fr;gap:12px;margin-bottom:18px}
.af-media-photo,.af-media-video-card,.af-media-mobile-photo,.af-media-mobile-video{position:relative;overflow:hidden;padding:0;border:1px solid rgba(255,255,255,.12);background:#101018;cursor:pointer;-webkit-tap-highlight-color:transparent}
.af-media-photo{height:190px;border-radius:20px}
.af-media-photo img,.af-media-video-card img,.af-media-mobile-photo img,.af-media-mobile-video img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .4s ease}
.af-media-photo:hover img,.af-media-video-card:hover img{transform:scale(1.045);filter:brightness(1.08)}
.af-media-photo--count::after{content:"";position:absolute;inset:0;background:rgba(9,8,16,.66)}
.af-media-photo--count span{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff}
.af-media-photo--count strong{font-size:30px;color:#a66aff}.af-media-photo--count small{font-size:15px}
.af-media-video-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.af-media-video-card{height:340px;border-radius:24px;text-align:left}
.af-media-video-card::after,.af-media-mobile-video::after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(5,5,9,.86))}
.af-media-play{position:absolute;z-index:3;left:50%;top:50%;width:74px;height:74px;border-radius:50%;transform:translate(-50%,-50%);background:linear-gradient(135deg,#7138ff,#a95fff);box-shadow:0 12px 38px rgba(117,53,255,.4)}
.af-media-play::before{content:"";position:absolute;left:31px;top:24px;border-left:21px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent}
.af-media-video-card__meta,.af-media-mobile-video>span:last-child{position:absolute;z-index:3;left:22px;right:22px;bottom:18px;display:flex;justify-content:space-between;align-items:end;gap:20px}
.af-media-video-card__meta strong,.af-media-mobile-video strong{font-size:20px}.af-media-video-card__meta small,.af-media-mobile-video small{color:#c9c5d3;font-size:14px}
.af-media-lightbox{position:fixed;z-index:9999;inset:0;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.88);backdrop-filter:blur(12px)}
.af-media-lightbox[hidden]{display:none}
.af-media-lightbox__content{width:min(1100px,94vw);max-height:88vh}
.af-media-lightbox__content img,.af-media-lightbox__content iframe{display:block;width:100%;max-height:88vh;border:0;border-radius:20px;object-fit:contain;aspect-ratio:16/9;background:#000}
.af-media-lightbox__close{position:fixed;top:20px;right:22px;width:48px;height:48px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:#15151d;color:#fff;font-size:30px;cursor:pointer;transition:background .2s ease,transform .2s ease}
.af-media-lightbox__close:hover{background:#8737ff;transform:scale(1.06)}
.af-media-lightbox__arrow{position:fixed;z-index:2;top:50%;display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(24,24,31,.9);box-shadow:0 10px 30px rgba(0,0,0,.45);color:#fff;font:400 46px/1 Arial,sans-serif;cursor:pointer;transform:translateY(-50%);transition:background .2s ease,transform .2s ease}
.af-media-lightbox__arrow:hover{background:#8737ff;transform:translateY(-50%) scale(1.06)}
.af-media-lightbox__arrow:focus-visible,.af-media-lightbox__close:focus-visible{outline:3px solid #a65cff;outline-offset:3px}
.af-media-lightbox__arrow--prev{left:clamp(14px,3vw,48px)}
.af-media-lightbox__arrow--next{right:clamp(14px,3vw,48px)}
.af-media-lightbox__counter{position:fixed;z-index:2;bottom:22px;left:50%;padding:8px 16px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(15,15,20,.86);box-shadow:0 8px 24px rgba(0,0,0,.35);color:#fff;font-size:15px;font-weight:800;letter-spacing:.08em;transform:translateX(-50%)}
.af-media-lightbox__arrow[hidden],.af-media-lightbox__counter[hidden]{display:none}

@media(max-width:767px){
  .af-media{padding:54px 12px 66px}
  .af-media__inner{width:100%;max-width:520px}
  .af-media__heading{display:block;margin-bottom:26px}
  .af-media__heading h2{font-size:44px}
  .af-media__heading p{font-size:17px;line-height:1.58}
  .af-media__desktop{display:none}.af-media__mobile{display:block}
  .af-media-mobile-photos,.af-media-mobile-videos{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:#0e0e15}
  .af-media-mobile-videos{margin-top:20px}
  .af-media-mobile-photo-track,.af-media-mobile-video-track{display:flex;transition:transform .55s cubic-bezier(.22,.75,.24,1);will-change:transform}
  .af-media-mobile-photo,.af-media-mobile-video{flex:0 0 100%;width:100%;border:0;border-radius:0}
  .af-media-mobile-photo{height:min(62vh,520px)}
  .af-media-mobile-video{height:min(54vw,300px);text-align:left}
  .af-media-mobile-photo img{object-position:center center}
  .af-media-mobile-arrow{position:absolute;z-index:5;top:50%;width:46px;height:46px;margin-top:-23px;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(9,9,14,.62);backdrop-filter:blur(8px);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .af-media-mobile-arrow--prev{left:12px}.af-media-mobile-arrow--next{right:12px}
  .af-media-mobile-arrow span{position:absolute;left:50%;top:50%;width:11px;height:11px;border-top:2px solid #fff;border-right:2px solid #fff}
  .af-media-mobile-arrow--prev span{transform:translate(-35%,-50%) rotate(-135deg)}
  .af-media-mobile-arrow--next span{transform:translate(-65%,-50%) rotate(45deg)}
  .af-media-mobile-dots{position:absolute;z-index:5;left:50%;bottom:14px;display:flex;gap:7px;transform:translateX(-50%)}
  .af-media-mobile-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.4)}
  .af-media-mobile-dot.is-active{width:22px;border-radius:99px;background:#9154ff}
  .af-media-mobile-video .af-media-play{width:64px;height:64px}
  .af-media-mobile-video .af-media-play::before{left:27px;top:21px;border-left-width:18px;border-top-width:11px;border-bottom-width:11px}
  .af-media-mobile-video>span:last-child{bottom:30px;align-items:end}
  .af-media-lightbox__content{width:96vw}
  .af-media-lightbox__arrow{width:46px;height:46px;font-size:38px}
  .af-media-lightbox__arrow--prev{left:8px}
  .af-media-lightbox__arrow--next{right:8px}
  .af-media-lightbox__counter{bottom:12px}
}

@media(prefers-reduced-motion:reduce){
  .af-media-photo img,.af-media-video-card img,.af-media-mobile-photo-track,.af-media-mobile-video-track{transition:none!important}
}


/* ===== STATS / МЫ В ЦИФРАХ ===== */
.af-stats{
  position:relative;
  overflow:hidden;
  padding:clamp(72px,8vw,118px) 0;
  color:#151126;
  background:
    radial-gradient(circle at 12% 20%,rgba(135,71,255,.10),transparent 25%),
    radial-gradient(circle at 90% 78%,rgba(171,111,255,.10),transparent 24%),
    linear-gradient(180deg,#fff 0%,#fbf9ff 100%);
}
.af-stats::before{
  content:"ART FORCE";
  position:absolute;
  left:50%;
  top:45%;
  transform:translate(-50%,-50%);
  font-size:clamp(100px,18vw,300px);
  line-height:.75;
  font-weight:900;
  letter-spacing:-.08em;
  color:transparent;
  -webkit-text-stroke:1px rgba(114,59,211,.08);
  pointer-events:none;
  white-space:nowrap;
}
.af-stats::after{
  content:"";
  position:absolute;
  inset:auto -8% 22% -8%;
  height:180px;
  border-top:3px solid rgba(136,70,255,.13);
  border-radius:50%;
  transform:rotate(-4deg);
  box-shadow:0 -22px 0 rgba(136,70,255,.06),0 -44px 0 rgba(136,70,255,.035);
  pointer-events:none;
}
.af-stats__inner{position:relative;z-index:1;width:min(1180px,calc(100% - 40px));margin:0 auto}
.af-stats__header{text-align:center;margin-bottom:clamp(36px,5vw,62px)}
.af-stats__eyebrow{margin:0 0 14px;color:#7d41ed;font-size:13px;font-weight:800;letter-spacing:.28em;text-transform:uppercase}
.af-stats__header h2{margin:0;font-size:clamp(46px,6vw,82px);line-height:.95;letter-spacing:-.055em;font-weight:900}
.af-stats__header h2 span{color:#7d3ff2}
.af-stats__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.af-stat-card{
  position:relative;
  min-height:440px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:34px 26px 30px;
  border:1px solid rgba(80,48,128,.09);
  border-radius:30px;
  background:rgba(255,255,255,.88);
  box-shadow:0 22px 60px rgba(66,36,112,.10);
  backdrop-filter:blur(14px);
  opacity:0;
  transform:translateY(34px) scale(.98);
  transition:opacity .7s ease var(--delay),transform .75s cubic-bezier(.2,.75,.2,1) var(--delay),box-shadow .35s ease,border-color .35s ease;
}
.af-stat-card::after{content:"";position:absolute;left:50%;bottom:18px;width:74px;height:3px;border-radius:99px;transform:translateX(-50%);background:linear-gradient(90deg,#7b3df2,#b16dff)}
.af-stats.is-visible .af-stat-card{opacity:1;transform:translateY(0) scale(1)}
.af-stat-card:hover{transform:translateY(-7px);border-color:rgba(125,63,242,.22);box-shadow:0 30px 74px rgba(80,42,145,.16)}
.af-stat-card__mark{position:relative;width:168px;height:168px;display:grid;place-items:center;margin-bottom:22px;border-radius:50%;background:radial-gradient(circle,#fff 48%,rgba(137,72,246,.08) 69%,transparent 70%)}
.af-stat-card__mark img{position:relative;z-index:2;display:block;width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 10px 16px rgba(76,39,136,.15));transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.af-stat-card:hover .af-stat-card__mark img{transform:scale(1.055) rotate(-2deg)}
.af-stat-card__orbit{position:absolute;inset:7px;border:2px solid rgba(131,66,244,.24);border-radius:50%}
.af-stat-card__orbit::before,.af-stat-card__orbit::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#8b45f5;box-shadow:0 0 14px rgba(139,69,245,.7)}
.af-stat-card__orbit::before{left:13px;top:30px}.af-stat-card__orbit::after{right:18px;bottom:25px}
.af-stats.is-visible .af-stat-card__orbit{animation:afStatOrbit 9s linear infinite}
.af-stat-card__content{text-align:center}
.af-stat-card__prefix{display:block;margin:0 0 4px;color:#171126;font-size:14px;line-height:1;text-transform:uppercase;letter-spacing:.12em;font-weight:800}
.af-stat-card__number{display:block;margin:0;color:#7c3de9;font-size:clamp(52px,5vw,76px);line-height:.92;letter-spacing:-.045em;font-weight:900;font-variant-numeric:tabular-nums}
.af-stat-card h3{margin:14px 0 8px;font-size:clamp(22px,2vw,28px);line-height:1.08;font-weight:900}
.af-stat-card p{margin:0;color:#645f70;font-size:17px;line-height:1.45}
@keyframes afStatOrbit{to{transform:rotate(360deg)}}

@media(max-width:767px){
  .af-stats{padding:68px 0 78px}
  .af-stats::before{top:28%;font-size:110px}
  .af-stats::after{display:none}
  .af-stats__inner{width:min(100% - 28px,520px)}
  .af-stats__header{margin-bottom:30px}
  .af-stats__eyebrow{font-size:17px;letter-spacing:.22em}
  .af-stats__header h2{font-size:44px}
  .af-stats__grid{grid-template-columns:1fr;gap:14px}
  .af-stat-card{min-height:0;display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;justify-items:stretch;padding:20px 20px 20px 14px;border-radius:24px;transform:translateX(28px);text-align:left}
  .af-stats.is-visible .af-stat-card{transform:translateX(0)}
  .af-stat-card:hover{transform:translateX(0)}
  .af-stat-card::after{left:138px;bottom:auto;top:10px;width:34px;transform:none}
  .af-stat-card__mark{width:108px;height:108px;margin:0}
  .af-stat-card__mark img{width:72px;height:72px}
  .af-stat-card__content{text-align:left}
  .af-stat-card__number{font-size:48px}
  .af-stat-card h3{margin:7px 0 5px;font-size:20px}
  .af-stat-card p{font-size:15px}
}

@media(prefers-reduced-motion:reduce){
  .af-stat-card{opacity:1;transform:none!important;transition:none!important}
  .af-stat-card__orbit{animation:none!important}
}


/* ===== FINAL CTA / FIRST FREE LESSON ===== */
.af-final-cta {
  --cta-x: 0px;
  --cta-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  min-height: 500px;
  margin: 0 0 0 calc(50% - 50vw);
  border: 0;
  border-radius: 0 !important;
  background: #020007;
  color: #fff;
}

.af-final-cta__background {
  position: absolute;
  inset: -10px;
  z-index: -3;
  background-color: #020007;
  background-image: url("assets/cta/cta-graffiti-desktop.webp?v=15");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  transform: translate3d(var(--cta-x), var(--cta-y), 0) scale(1.02);
  transform-origin: center;
  will-change: transform;
}

.af-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(1, 0, 8, 0.96) 0%,
      rgba(2, 0, 10, 0.84) 36%,
      rgba(5, 0, 18, 0.28) 68%,
      rgba(5, 0, 18, 0.08) 100%
    );
}

.af-final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  background:
    radial-gradient(circle at 78% 82%, rgba(129, 42, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.22));
}

.af-final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 500px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 54px 56px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.af-final-cta__title {
  width: min(100%, 500px);
  margin: 0;
  color: #fff;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(38px, 3.2vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.af-final-cta__title span {
  color: #8338ff;
  text-shadow: 0 0 24px rgba(131, 56, 255, 0.34);
}

.af-final-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 238px;
  height: 62px;
  margin-top: 30px;
  padding: 0 32px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(90deg, #6f24ff 0%, #943cff 100%);
  box-shadow:
    0 10px 30px rgba(116, 40, 255, 0.30),
    0 0 24px rgba(133, 49, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.af-final-cta__button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 14px 38px rgba(116, 40, 255, 0.42),
    0 0 30px rgba(133, 49, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.af-final-cta__button:active {
  transform: translateY(0);
}

.af-final-cta__button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

/* Without JavaScript the CTA stays fully visible. */
.af-final-cta.is-motion-ready .af-final-cta__title,
.af-final-cta.is-motion-ready .af-final-cta__button {
  opacity: 0;
}

.af-final-cta.is-motion-ready .af-final-cta__title {
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.18, .78, .22, 1);
}

.af-final-cta.is-motion-ready .af-final-cta__button {
  transform: translateY(14px);
  transition:
    opacity 520ms ease 130ms,
    transform 520ms cubic-bezier(.18, .78, .22, 1) 130ms,
    filter 220ms ease,
    box-shadow 220ms ease;
}

.af-final-cta.is-motion-ready.is-visible .af-final-cta__title,
.af-final-cta.is-motion-ready.is-visible .af-final-cta__button {
  opacity: 1;
  transform: translateY(0);
}

.af-final-cta.is-visible .af-final-cta__background {
  animation: afFinalCtaBreath 11s ease-in-out 1 forwards;
}

@keyframes afFinalCtaBreath {
  from {
    transform: translate3d(var(--cta-x), var(--cta-y), 0) scale(1.025);
  }
  to {
    transform: translate3d(var(--cta-x), var(--cta-y), 0) scale(1.005);
  }
}

@media (max-width: 767px) {
  .af-final-cta {
    min-height: clamp(720px, 92svh, 820px);
  }

  .af-final-cta__background {
    inset: -6px;
    background-image: url("assets/cta/cta-graffiti-mobile.webp?v=15");
    background-position: center top;
    background-size: cover;
    transform: scale(1.01);
  }

  .af-final-cta::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 0, 9, 0.10) 0%,
        rgba(2, 0, 9, 0.20) 42%,
        rgba(2, 0, 9, 0.82) 68%,
        rgba(1, 0, 7, 0.97) 100%
      );
  }

  .af-final-cta::after {
    background: radial-gradient(circle at 82% 94%, rgba(127, 37, 255, 0.22), transparent 31%);
  }

  .af-final-cta__inner {
    min-height: clamp(720px, 92svh, 820px);
    width: 100%;
    padding: 32px 22px 42px;
    justify-content: flex-end;
  }

  .af-final-cta__title {
    width: 100%;
    max-width: 350px;
    font-size: clamp(29px, 8vw, 38px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-wrap: initial;
  }

  .af-final-cta__button {
    width: 100%;
    max-width: 310px;
    min-width: 0;
    height: 60px;
    margin-top: 28px;
    padding: 0 24px;
    font-size: 17px;
  }

  .af-final-cta.is-visible .af-final-cta__background {
    animation: none;
  }
}

@media (max-width: 359px) {
  .af-final-cta__inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .af-final-cta__title {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-final-cta,
  .af-final-cta *,
  .af-final-cta::before,
  .af-final-cta::after {
    animation: none !important;
    transition: none !important;
  }

  .af-final-cta__background {
    transform: none !important;
  }

  .af-final-cta__title,
  .af-final-cta__button {
    opacity: 1 !important;
    transform: none !important;
  }
}



/* =========================================================
   update_016: first 3 blocks refinement
   ========================================================= */














.af-program {
  padding-top: 48px;
}

.af-program__intro {
  max-width: 980px;
}

.af-cards { gap: 20px; }

.af-card {
  min-height: 198px;
  padding: 24px 24px 24px 126px;
  border-left-width: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 8%, white) 0, transparent 22%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent) 8%, white) 0, transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.93));
}

.af-card::before {
  left: -46px;
  top: -44px;
  width: 140px;
  height: 140px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, white);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 4%, transparent);
}

.af-card::after {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 150px;
  height: 100px;
  opacity: .24;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, white) 1px, transparent 1.6px) 0 0/12px 12px,
    linear-gradient(135deg, transparent 0 58%, color-mix(in srgb, var(--accent) 10%, white) 58% 60%, transparent 60%);
  content: "";
  pointer-events: none;
}

.af-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.af-card p {
  color: #4f495c;
  font-size: 16px;
  line-height: 1.56;
}

.af-coaches__heading {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(260px, 500px);
  grid-template-areas:
    "kicker text"
    "title text";
  align-items: start;
  gap: 8px 54px;
  max-width: none;
  margin-bottom: 40px;
}

.af-coaches__kicker { grid-area: kicker; margin-bottom: 6px; }
.af-coaches__heading h2 { grid-area: title; }
.af-coaches__heading > p:last-child {
  grid-area: text;
  align-self: center;
  max-width: 500px;
  margin: 2px 0 0;
}

.af-coach-card {
  grid-template-columns: minmax(340px, .95fr) 1.15fr;
  min-height: 540px;
}

.af-coach-card__photo,
.af-coach-card__photo img { min-height: 540px; }

.af-coach-card__content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px 54px 44px 34px;
}

.af-coach-card__achievements { gap: 12px; }

.af-coach-card__achievements li,
.af-coach-card__more li {
  font-size: 16px;
  line-height: 1.42;
}

.af-coach-card__more {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows 260ms ease, opacity 220ms ease, margin-top 220ms ease, padding-top 220ms ease, border-color 220ms ease;
}

.af-coach-card__more > ul { overflow: hidden; }

.af-coach-card__more.is-open {
  grid-template-rows: 1fr;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  opacity: 1;
  pointer-events: auto;
}

.af-coach-more {
  min-width: 210px;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 18px;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 14px;
}

.af-coach-more__icon { flex: 0 0 22px; }

.af-coach-more__label { white-space: nowrap; }

.af-coach-more__chevron {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: auto;
  font-size: 0;
}

.af-coach-more__chevron::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -62%) rotate(45deg);
  content: "";
  transition: transform 180ms ease;
}

.af-coach-more[aria-expanded="true"] .af-coach-more__chevron::before {
  transform: translate(-50%, -38%) rotate(-135deg);
}







@media (max-width: 767px) {
  

  

  

  

  

  .af-program { padding: 42px 14px 64px; }
  .af-program__inner { width: min(100%, 640px); }
  .af-program__intro { margin-bottom: 24px; font-size: 16px; line-height: 1.55; }

  .af-card {
    min-height: 0;
    padding: 22px 18px 22px 108px;
    border-radius: 20px;
  }
  .af-card h3 { font-size: 19px; margin-bottom: 12px; }
  .af-card p { font-size: 16px; line-height: 1.55; }

  .af-coaches__heading { padding: 0 4px; }
  .af-coaches__heading > p:last-child { max-width: none; }
  .af-coach-card__content { padding: 0 22px 26px; }
  .af-coach-more { width: 100%; min-width: 0; }
}






/* =========================================================
   update_017: mobile layout fixes for hero, cards and coaches
   ========================================================= */
@media (max-width: 767px) {
  /* HERO: title stays at the top; photo gets a clean breathing zone */
  

  

  

  

  

  

  

  

  

  

  /* PROGRAM CARDS: one top row, full-width text below */
  .af-card {
    display: grid;
    grid-template-columns: 58px 34px minmax(0, 1fr);
    grid-template-areas:
      "icon number title"
      "text text text";
    column-gap: 9px;
    row-gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .af-card h3 {
    grid-area: title;
    align-self: center;
    margin: 0;
    min-width: 0;
    font-size: 19px;
    line-height: 1.17;
  }

  .af-card h3::after {
    margin-top: 8px;
  }

  .af-card p {
    grid-area: text;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 1.56;
  }

  .af-card::before {
    left: -50px;
    top: -52px;
  }

  /* COACHES: mobile keeps only 3 visible achievements */
  .af-coach-card__achievements li:nth-child(n + 4) {
    display: none;
  }

  .af-coach-card__more.is-open li {
    display: list-item;
  }
}

@media (max-width: 390px) {
  

  

  

  .af-card {
    grid-template-columns: 54px 32px minmax(0, 1fr);
    padding: 16px;
  }

  .af-card h3 {
    font-size: 18px;
  }
}


/* =========================================================
   update_018: desktop card header row + mobile title contrast
   ========================================================= */
/* PROGRAM CARDS: icon, number and heading share one clean header row on all screens */
.af-card {
  grid-template-columns: 68px 34px minmax(0, 1fr);
  grid-template-areas:
    "icon number title"
    "text text text";
  column-gap: 10px;
  row-gap: 16px;
  min-height: 0;
  padding: 22px 24px 24px;
  align-items: start;
}

.af-card h3 {
  grid-area: title;
}

.af-card h3::after {
  margin-top: 9px;
}

.af-card p {
  grid-area: text;
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 767px) {
  .af-card {
    grid-template-columns: 58px 34px minmax(0, 1fr);
    column-gap: 9px;
    row-gap: 14px;
    padding: 18px;
  }

  
}

@media (max-width: 390px) {
  .af-card {
    grid-template-columns: 54px 32px minmax(0, 1fr);
    padding: 16px;
  }
}


/* =========================================================
   update_019: Russian hero title + replaceable PNG logo slot
   ========================================================= */











/* =========================================================
   update_020: hero positioning refinement + cleaner first CTA
   ========================================================= */



















/* =========================================================
   update_021 — approved first-screen implementation
   ========================================================= */











































/* =========================================================
   update_022 — first screen rebuilt to the approved layout
   ========================================================= */
body {
  background: #05030c;
}









































@media (max-width: 767px) {
  body {
    background: #05030c;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
}




/* =========================================================
   update_024: «Фото студии» — иммерсивный слайдер
   ========================================================= */
.af-hall-gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(120, 43, 255, .14), transparent 32%),
    radial-gradient(circle at 12% 86%, rgba(83, 24, 185, .12), transparent 34%),
    #05030b;
}

.af-hall-gallery::before {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}

.af-hall-gallery__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 70px 30px;
}

.af-hall-gallery__panel {
  padding: 30px;
  border: 1px solid rgba(166, 97, 255, .28);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 12, 23, .96), rgba(5, 4, 10, .98));
  box-shadow: 0 30px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.045);
}

.af-hall-gallery__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 24px;
}

.af-hall-gallery__heading > div {
  max-width: 760px;
}

.af-hall-gallery__heading h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(126, 48, 238, .72);
}

.af-hall-gallery__heading p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.55;
}

.af-hall-gallery__counter,
.af-hall-gallery__mobile-counter {
  flex: 0 0 auto;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
}

.af-hall-gallery__stage {
  position: relative;
  width: 100%;
  height: clamp(480px, 46vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(171, 101, 255, .30);
  border-radius: 22px;
  background: #09070f;
  box-shadow: inset 0 0 50px rgba(0,0,0,.28), 0 18px 50px rgba(0,0,0,.30);
  outline: none;
}

.af-hall-gallery__stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(142, 60, 255, .65), inset 0 0 50px rgba(0,0,0,.28);
}

.af-hall-gallery__image-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.af-hall-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: translate3d(0,0,0) scale(1.001);
  transition: opacity 180ms ease, transform 360ms ease;
  -webkit-user-drag: none;
  user-select: none;
}

.af-hall-gallery__stage.is-changing .af-hall-gallery__image {
  opacity: .12;
  transform: translate3d(10px,0,0) scale(1.012);
}

.af-hall-gallery__image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,2,10,.18), transparent 22%, transparent 73%, rgba(3,1,8,.40)),
    linear-gradient(90deg, rgba(4,2,10,.13), transparent 22%, transparent 78%, rgba(4,2,10,.12));
  box-shadow: inset 0 0 70px rgba(0,0,0,.25);
  pointer-events: none;
}

.af-hall-gallery__category {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  color: #fff;
  background: rgba(105, 28, 215, .86);
  box-shadow: 0 8px 26px rgba(87, 20, 199, .26);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.af-hall-gallery__zoom {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(5,3,12,.62);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.af-hall-gallery__zoom svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.af-hall-gallery__image-button:hover .af-hall-gallery__zoom,
.af-hall-gallery__image-button:focus-visible .af-hall-gallery__zoom {
  opacity: 1;
  transform: none;
}

.af-hall-gallery__arrow,
.af-hall-lightbox__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(4,3,10,.76);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.af-hall-gallery__arrow:hover,
.af-hall-lightbox__arrow:hover {
  transform: translateY(-50%) scale(1.05);
}

.af-hall-gallery__arrow--prev,
.af-hall-lightbox__arrow--prev { left: 18px; }

.af-hall-gallery__arrow--next,
.af-hall-lightbox__arrow--next {
  right: 18px;
  border-color: rgba(255,255,255,.15);
  color: #fff;
  background: rgba(4,3,10,.76);
  box-shadow: 0 12px 34px rgba(0,0,0,.34);
}

.af-hall-gallery__arrow span,
.af-hall-lightbox__arrow span {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.af-hall-gallery__arrow--prev span,
.af-hall-lightbox__arrow--prev span { transform: rotate(-135deg) translate(-1px,-1px); }

.af-hall-gallery__arrow--next span,
.af-hall-lightbox__arrow--next span { transform: rotate(45deg) translate(-1px,1px); }

.af-hall-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.af-hall-gallery__thumb {
  position: relative;
  aspect-ratio: 16 / 8.5;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #0c0912;
  cursor: pointer;
  opacity: .56;
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.af-hall-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.af-hall-gallery__thumb:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.af-hall-gallery__thumb.is-active {
  border-color: #a34cff;
  box-shadow: 0 0 0 2px rgba(142, 53, 255, .35), 0 9px 26px rgba(114, 28, 225, .24);
  opacity: 1;
}

.af-hall-gallery__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.af-hall-gallery__caption strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.af-hall-gallery__caption span {
  color: rgba(255,255,255,.58);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.af-hall-gallery__mobile-nav { display: none; }

.af-hall-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 88px;
  background: rgba(1,0,5,.96);
  backdrop-filter: blur(14px);
}

.af-hall-lightbox[hidden] { display: none; }

.af-hall-lightbox__close {
  position: fixed;
  z-index: 5;
  top: 20px;
  right: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(18,13,27,.82);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.af-hall-lightbox__figure {
  display: flex;
  max-width: min(1500px, 86vw);
  max-height: 92vh;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.af-hall-lightbox__image {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 90px rgba(0,0,0,.55);
  -webkit-user-drag: none;
  user-select: none;
}

.af-hall-lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.af-hall-lightbox__caption strong { color: #fff; }

.af-no-scroll { overflow: hidden !important; }

@media (max-width: 767px) {
  .af-hall-gallery__inner {
    width: 100%;
    padding: 48px 16px;
  }

  .af-hall-gallery__panel {
    padding: 16px;
    border-radius: 22px;
  }

  .af-hall-gallery__heading {
    display: block;
    margin-bottom: 18px;
  }

  .af-hall-gallery__heading h2 {
    margin-bottom: 9px;
    font-size: clamp(30px, 9.2vw, 40px);
  }

  .af-hall-gallery__heading p {
    font-size: 15px;
    line-height: 1.5;
  }

  .af-hall-gallery__heading > .af-hall-gallery__counter { display: none; }

  .af-hall-gallery__stage {
    width: 100%;
    height: clamp(440px, 125vw, 620px);
    border-radius: 18px;
    touch-action: pan-y;
  }

  .af-hall-gallery__image {
    object-position: center;
  }

  .af-hall-gallery__category {
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .af-hall-gallery__zoom { display: none; }

  .af-hall-gallery__arrow {
    width: 48px;
    height: 48px;
  }

  .af-hall-gallery__arrow--prev { left: 10px; }
  .af-hall-gallery__arrow--next { right: 10px; }

  .af-hall-gallery__thumbs { display: none; }

  .af-hall-gallery__mobile-nav {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
  }

  .af-hall-gallery__dots {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .af-hall-gallery__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .af-hall-gallery__dot.is-active {
    width: 24px;
    background: #8f3fff;
    box-shadow: 0 0 14px rgba(143,63,255,.42);
  }

  .af-hall-gallery__mobile-counter {
    color: rgba(255,255,255,.72);
    font-size: 13px;
  }

  .af-hall-gallery__caption {
    display: block;
    margin-top: 10px;
  }

  .af-hall-gallery__caption strong,
  .af-hall-gallery__caption span {
    display: block;
    text-align: left;
  }

  .af-hall-gallery__caption strong {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .af-hall-gallery__caption span {
    font-size: 13px;
  }

  .af-hall-lightbox {
    padding: 64px 14px 54px;
  }

  .af-hall-lightbox__figure {
    max-width: 100%;
    max-height: 88vh;
  }

  .af-hall-lightbox__image {
    max-height: 78vh;
    border-radius: 10px;
  }

  .af-hall-lightbox__arrow {
    top: auto;
    bottom: 22px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .af-hall-lightbox__arrow:hover { transform: scale(1.04); }
  .af-hall-lightbox__arrow--prev { left: 18px; }
  .af-hall-lightbox__arrow--next { right: 18px; }

  .af-hall-lightbox__caption {
    padding-inline: 52px;
  }
}

@media (max-width: 390px) {
  .af-hall-gallery__inner { padding-inline: 12px; }
  .af-hall-gallery__panel { padding: 13px; }
  .af-hall-gallery__stage { height: clamp(440px, 132vw, 570px); }
  .af-hall-gallery__heading h2 { font-size: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .af-hall-gallery__image,
  .af-hall-gallery__thumb,
  .af-hall-gallery__arrow,
  .af-hall-gallery__dot { transition: none !important; }
}

/* =========================================================
   update_026: Рум-тур
   ========================================================= */
.af-roomtour {
  position: relative;
  padding: 70px 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 16%, rgba(122, 38, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #050408 0%, #030207 100%);
}

.af-roomtour__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.af-roomtour__card {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(172, 103, 255, 0.22);
  border-radius: 28px;
  background: #07060b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44), 0 0 46px rgba(112, 35, 237, 0.09);
  isolation: isolate;
}

.af-roomtour__stage,
.af-roomtour__picture,
.af-roomtour__shade {
  position: absolute;
  inset: 0;
}

.af-roomtour__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.af-roomtour__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 2, 7, 0.96) 0%, rgba(2, 2, 7, 0.84) 34%, rgba(2, 2, 7, 0.34) 66%, rgba(2, 2, 7, 0.12) 100%),
    linear-gradient(180deg, rgba(3, 2, 8, 0.08) 42%, rgba(3, 2, 8, 0.88) 100%);
}

.af-roomtour__label {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #b86cff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.af-roomtour__label span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9d42ff;
  box-shadow: 0 0 18px rgba(157, 66, 255, 0.9);
}

.af-roomtour__content {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 54px;
  width: min(430px, 41%);
  transform: translateY(-50%);
}

.af-roomtour__content h2 {
  margin: 0;
  color: #fff;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-size: clamp(58px, 6vw, 94px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.af-roomtour__description {
  max-width: 370px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.5;
}

.af-roomtour__meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.af-roomtour__duration {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c78bff;
  font-weight: 800;
}

.af-roomtour__duration svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-roomtour__watch {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.af-roomtour__watch::before {
  display: inline-block;
  width: 1px;
  height: 20px;
  margin-right: 22px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.af-roomtour__play {
  position: absolute;
  z-index: 5;
  top: 45%;
  left: 58%;
  width: 110px;
  height: 110px;
  padding: 0;
  border: 1px solid rgba(157, 65, 255, 0.92);
  border-radius: 50%;
  background: rgba(7, 4, 14, 0.76);
  box-shadow: 0 0 0 1px rgba(153, 63, 255, 0.55), 0 0 35px rgba(137, 42, 255, 0.46);
  backdrop-filter: blur(9px);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.af-roomtour__play:hover,
.af-roomtour__play:focus-visible {
  background: rgba(91, 27, 174, 0.76);
  box-shadow: 0 0 0 1px rgba(189, 124, 255, 0.9), 0 0 48px rgba(137, 42, 255, 0.66);
  transform: translate(-50%, -50%) scale(1.06);
}

.af-roomtour__play span {
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.34));
}

.af-roomtour__benefits {
  position: absolute;
  z-index: 4;
  right: 48px;
  bottom: 34px;
  left: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(13, 11, 18, 0.82);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.af-roomtour__benefit {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.af-roomtour__benefit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #bd77ff;
  background: radial-gradient(circle at 35% 30%, rgba(170, 91, 255, 0.36), rgba(89, 31, 148, 0.18));
  box-shadow: inset 0 0 0 1px rgba(188, 118, 255, 0.16);
}

.af-roomtour__benefit-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-roomtour__benefit strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.af-roomtour__benefit p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

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

.af-roomtour-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 26px 28px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
}

.af-roomtour-modal__player {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(166, 90, 255, 0.34);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 70px rgba(119, 40, 239, 0.28);
}

.af-roomtour-modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.af-roomtour-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 17, 31, 0.82);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

body.af-roomtour-open {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .af-roomtour__content {
    left: 38px;
    width: 42%;
  }

  .af-roomtour__label {
    left: 38px;
  }

  .af-roomtour__benefits {
    right: 28px;
    left: 28px;
  }

  .af-roomtour__benefit {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .af-roomtour__benefit-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  .af-roomtour {
    padding: 48px 16px;
  }

  .af-roomtour__card {
    min-height: 0;
    border-radius: 24px;
  }

  .af-roomtour__stage {
    position: relative;
    inset: auto;
    min-height: 480px;
    aspect-ratio: 4 / 5;
  }

  .af-roomtour__picture,
  .af-roomtour__shade {
    position: absolute;
    inset: 0;
  }

  .af-roomtour__picture img {
    object-position: center;
  }

  .af-roomtour__shade {
    background: linear-gradient(180deg, rgba(4, 3, 10, 0.18) 0%, rgba(4, 3, 10, 0.18) 52%, rgba(6, 4, 12, 0.86) 100%);
  }

  .af-roomtour__label {
    top: 22px;
    left: 22px;
    font-size: 14px;
  }

  .af-roomtour__play {
    top: 49%;
    left: 50%;
    width: 92px;
    height: 92px;
  }

  .af-roomtour__play span {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 19px;
  }

  .af-roomtour__content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 28px 22px 24px;
    transform: none;
  }

  .af-roomtour__content h2 {
    font-size: clamp(44px, 13vw, 54px);
    line-height: 1;
  }

  .af-roomtour__description {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.5;
  }

  .af-roomtour__meta {
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
  }

  .af-roomtour__watch {
    font-size: 13px;
  }

  .af-roomtour__watch::before {
    margin-right: 14px;
  }

  .af-roomtour__benefits {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 16px 18px;
    padding: 12px;
    border-radius: 20px;
  }

  .af-roomtour__benefit {
    grid-template-columns: 50px 1fr;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
  }

  .af-roomtour__benefit-icon {
    width: 50px;
    height: 50px;
  }

  .af-roomtour-modal {
    padding: 62px 12px 18px;
  }

  .af-roomtour-modal__player {
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  .af-roomtour__stage {
    min-height: 450px;
  }

  .af-roomtour__content {
    padding-inline: 18px;
  }

  .af-roomtour__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .af-roomtour__watch::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-roomtour__play {
    transition: none;
  }
}

/* ===== Final footer / contacts-navigation ===== */
.af-footer {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 40, 190, 0.12), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(50, 30, 120, 0.08), transparent 26%),
    #03040b;
  color: #fff;
  padding: 28px 0 26px;
  overflow: clip;
}

.af-footer::before,
.af-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 92, 255, 0.35), transparent);
  pointer-events: none;
}

.af-footer::before { top: 0; }
.af-footer::after { bottom: 0; }

.af-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.af-footer__panel {
  position: relative;
  border: 1px solid rgba(167, 88, 255, 0.34);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 7, 17, 0.96), rgba(5, 5, 12, 0.98));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.018) inset, 0 34px 80px rgba(0,0,0,0.45);
}

.af-footer__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(146, 63, 255, 0.10), transparent 22%);
  pointer-events: none;
}

.af-footer__grid {
  position: relative;
  display: flex;
  flex-direction: column;
}

.af-footer__heading {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b35eff;
}

.af-footer__heading::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #8d39ff, #b96dff);
  box-shadow: 0 0 18px rgba(146, 60, 255, 0.38);
}

.af-footer-cta,
.af-footer-nav,
.af-footer-contacts {
  position: relative;
  min-width: 0;
}

.af-footer-cta {
  display: flex;
  flex-direction: column;
  padding: 0 0 28px;
}

.af-footer-cta__art {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(169, 89, 255, 0.18);
}

.af-footer-cta__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,2,8,0.06) 0%, rgba(2,2,8,0.12) 45%, rgba(3,4,11,0.18) 100%),
    linear-gradient(180deg, transparent 0%, rgba(3,4,11,0.28) 100%);
}

.af-footer-cta__art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.af-footer-cta__eyebrow,
.af-footer-cta__title,
.af-footer-cta__text,
.af-footer-cta__button {
  position: relative;
  z-index: 2;
}

.af-footer-cta__eyebrow {
  display: block;
  margin: 22px 20px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c57cff;
}

.af-footer-cta__title {
  margin: 12px 20px 0;
  font-size: clamp(38px, 11vw, 58px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.af-footer-cta__title span {
  display: block;
}

.af-footer-cta__accent {
  color: #a64dff;
  text-shadow: 0 0 22px rgba(151, 62, 255, 0.22);
}

.af-footer-cta__text {
  max-width: 420px;
  margin: 20px 20px 0;
  color: #b7b2c3;
  font-size: 16px;
  line-height: 1.6;
}

.af-footer-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: min(100% - 40px, 270px);
  min-height: 62px;
  margin: 26px 20px 0;
  padding: 0;
  border: 1px solid rgba(191, 119, 255, 0.72);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(113, 37, 255, 0.94), rgba(155, 60, 255, 0.96));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 18px 34px rgba(76, 25, 180, 0.30);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.af-footer-cta__button:hover,
.af-footer-cta__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 18px 36px rgba(111, 35, 255, 0.42);
  filter: brightness(1.04);
}

.af-footer-cta__button:focus-visible,
.af-footer-nav__link:focus-visible,
.af-footer-contact:focus-visible,
.af-footer__brand:focus-visible {
  outline: 2px solid rgba(191, 119, 255, 0.88);
  outline-offset: 3px;
}

.af-footer-cta__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  min-height: 62px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.af-footer-cta__button > span:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding-inline: 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.af-footer-nav,
.af-footer-contacts {
  padding: 28px 20px 24px;
}

.af-footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 0 0 0 2px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #f4f2fb;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  transition: color 180ms ease, padding-left 180ms ease, border-color 180ms ease;
}

.af-footer-nav__link:hover,
.af-footer-nav__link:focus-visible {
  color: #cb9dff;
  padding-left: 8px;
  border-color: rgba(162, 85, 255, 0.34);
}

.af-footer-nav__chevron {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

.af-footer-nav__chevron::before,
.af-footer-nav__chevron::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 7px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px rgba(163, 89, 255, 0.4);
}

.af-footer-nav__chevron::before {
  right: 3px;
  transform: rotate(45deg);
}

.af-footer-nav__chevron::after {
  right: 0;
  transform: rotate(-45deg);
}

.af-footer-contact {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.af-footer-contact:last-child { border-bottom: 0; }

.af-footer-contact:hover,
.af-footer-contact:focus-visible {
  transform: translateX(3px);
  border-color: rgba(162, 85, 255, 0.36);
}

.af-footer-contact__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(163, 86, 255, 0.58);
  background: radial-gradient(circle at 30% 30%, rgba(140, 60, 255, 0.28), rgba(24, 18, 36, 0.92));
  box-shadow: 0 0 22px rgba(121, 50, 255, 0.18);
}

.af-footer-contact__icon svg {
  width: 23px;
  height: 23px;
  color: #fff;
}

.af-footer-contact__content {
  min-width: 0;
}

.af-footer-contact__content strong,
.af-footer-contact__content small {
  display: block;
}

.af-footer-contact__content strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.af-footer-contact__content small {
  margin-top: 4px;
  color: #9d97aa;
  font-size: 13px;
  line-height: 1.45;
}

.af-footer__bottom {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 20px 20px 22px;
  border-top: 1px solid rgba(155, 74, 255, 0.18);
}

.af-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.af-footer__logo {
  width: 62px;
  height: auto;
  display: block;
}

.af-footer__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.af-footer__brand-copy strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.af-footer__brand-copy small,
.af-footer__legal small {
  color: #9993a7;
  font-size: 12px;
  line-height: 1.45;
}

.af-footer__slogan {
  margin: 0;
  text-align: center;
  color: #b4aec4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.af-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.af-footer__legal strong {
  font-size: 13px;
  font-weight: 500;
}

.af-footer-cta[data-reveal] { transition-delay: 40ms; }
.af-footer-nav[data-reveal] { transition-delay: 120ms; }
.af-footer-contacts[data-reveal] { transition-delay: 200ms; }
.af-footer__bottom[data-reveal] { transition-delay: 280ms; }

.af-footer-cta__art img {
  animation: af-footerLightShift 14s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes af-footerLightShift {
  0% { transform: scale(1) translate3d(0, 0, 0); filter: brightness(0.96); }
  100% { transform: scale(1.03) translate3d(0, -6px, 0); filter: brightness(1.05); }
}

@media (min-width: 768px) {
  .af-footer {
    padding: 40px 0 32px;
  }

  .af-footer__inner {
    padding: 0 30px;
  }

  .af-footer__grid {
    display: grid;
    grid-template-columns: minmax(430px, 1.35fr) minmax(230px, .65fr) minmax(290px, .8fr);
    min-height: 650px;
  }

  .af-footer-nav,
  .af-footer-contacts {
    border-left: 1px solid rgba(155, 74, 255, 0.18);
    padding: 92px 34px 42px;
  }

  .af-footer-cta {
    position: relative;
    min-height: 650px;
    padding: 100px 50px 70px 35px;
    overflow: hidden;
  }

  .af-footer-cta__art {
    position: absolute;
    inset: 0;
    border: 0;
  }

  .af-footer-cta__art img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 62% 52%;
  }

  .af-footer-cta__art::after {
    background:
      linear-gradient(90deg, rgba(3,4,11,0.88) 0%, rgba(3,4,11,0.76) 30%, rgba(3,4,11,0.34) 58%, rgba(3,4,11,0.12) 100%),
      linear-gradient(180deg, rgba(6,5,12,0.02) 0%, rgba(6,5,12,0.22) 100%);
  }

  .af-footer-cta__eyebrow {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .af-footer-cta__title {
    max-width: 360px;
    margin: 24px 0 0;
    font-size: clamp(46px, 4.5vw, 72px);
  }

  .af-footer-cta__text {
    margin: 28px 0 0;
    font-size: 18px;
  }

  .af-footer-cta__button {
    margin: 34px 0 0;
  }

  .af-footer-nav__link {
    min-height: 56px;
    font-size: 16px;
  }

  .af-footer-contact {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
  }

  .af-footer-contact__icon {
    width: 52px;
    height: 52px;
  }

  .af-footer-contact__content strong {
    font-size: 16px;
  }

  .af-footer__bottom {
    grid-template-columns: minmax(180px, .95fr) minmax(320px, 1.4fr) minmax(190px, .9fr);
    gap: 20px;
    padding: 22px 34px 26px;
  }

  .af-footer__slogan {
    font-size: 12px;
  }

  .af-footer__legal {
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .af-footer-cta,
  .af-footer-nav,
  .af-footer-contacts {
    background: linear-gradient(180deg, rgba(7, 7, 15, 0.68), rgba(7, 7, 15, 0.82));
  }

  .af-footer-nav,
  .af-footer-contacts {
    border-top: 1px solid rgba(155, 74, 255, 0.14);
  }

  .af-footer__bottom {
    text-align: center;
  }

  .af-footer__brand {
    justify-content: center;
  }

  .af-footer__legal {
    align-items: center;
  }
}

@media (max-width: 390px) {
  .af-footer__inner {
    padding-inline: 12px;
  }

  .af-footer-cta__title {
    font-size: clamp(34px, 10.8vw, 46px);
  }

  .af-footer-cta__button {
    width: calc(100% - 40px);
  }

  .af-footer-nav__link,
  .af-footer-contact__content strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-footer-cta__art img {
    animation: none;
  }

  .af-footer-cta__button,
  .af-footer-nav__link,
  .af-footer-contact {
    transition: none;
  }
}


/* =========================================================
   update_030 — consolidated responsive hero + card heading grid
   ========================================================= */
.af-hero {
  position: relative;
  min-height: clamp(760px, 84svh, 920px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #05030c;
}

.af-hero__desktop-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.af-hero__desktop-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #05030c 0%,
      rgba(5, 3, 12, .98) 18%,
      rgba(5, 3, 12, .64) 34%,
      rgba(5, 3, 12, .12) 52%,
      transparent 68%),
    linear-gradient(180deg,
      #05030c 0%,
      transparent 16%,
      transparent 78%,
      #05030c 100%);
  pointer-events: none;
}

.af-hero__desktop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.af-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: clamp(760px, 84svh, 920px);
  margin: 0;
  padding: 28px clamp(40px, 6vw, 150px) 64px;
}

.af-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 104px;
}

.af-logo {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  object-fit: contain;
  object-position: left top;
}

.af-menu-button {
  position: relative;
  z-index: 20;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(10, 7, 19, .54);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.af-menu-button span,
.af-menu-button::before,
.af-menu-button::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.af-menu-button span { top: 22px; }
.af-menu-button::before { top: 15px; }
.af-menu-button::after { top: 29px; }
.af-menu-button[aria-expanded="true"] span { opacity: 0; }
.af-menu-button[aria-expanded="true"]::before { top: 22px; transform: rotate(45deg); }
.af-menu-button[aria-expanded="true"]::after { top: 22px; transform: rotate(-45deg); }

.af-mobile-menu {
  position: absolute;
  z-index: 15;
  top: 22px;
  right: clamp(40px, 6vw, 150px);
  width: min(290px, calc(100vw - 36px));
  padding: 74px 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(11, 7, 20, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.af-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.af-mobile-menu a {
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.af-hero__content {
  width: min(500px, 42vw);
  max-width: 500px;
  margin-top: clamp(26px, 4vh, 54px);
  padding: 0;
}

.af-eyebrow {
  margin: 0 0 12px;
  color: #a85cff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .025em;
}

.af-title {
  max-width: 500px;
  margin: 0;
  color: #fff;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-size: clamp(58px, 5.1vw, 84px);
  font-style: normal;
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.048em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, .42);
  text-transform: uppercase;
}

.af-title__line,
.af-title__accent {
  display: block;
  color: #fff;
  white-space: nowrap;
}

.af-title__line {
  font-size: .78em;
}

.af-title__accent {
  font-size: 1em;
}

.af-title::after {
  display: block;
  width: 68px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c35f4, #b265ff);
  content: "";
}

.af-hero__mobile-photo {
  display: none;
}

.af-copy {
  max-width: 470px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .96);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .82);
}

.af-copy p { margin: 0 0 19px; }
.af-copy strong { color: #fff; font-weight: 850; }

.af-cta {
  display: inline-flex;
  min-width: 250px;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 30px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #6f24ff 0%, #943cff 100%);
  box-shadow: 0 10px 30px rgba(116,40,255,.34), 0 0 25px rgba(133,49,255,.25), inset 0 1px 0 rgba(255,255,255,.18);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.af-cta:hover,
.af-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(116,40,255,.42), 0 0 30px rgba(133,49,255,.30), inset 0 1px 0 rgba(255,255,255,.2);
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .af-hero__desktop-media { width: 63%; }
  .af-hero__desktop-media img { object-position: 58% center; }
  .af-hero__inner { padding-inline: clamp(54px, 5vw, 76px); }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .af-hero__desktop-media { width: 60%; }
  .af-hero__desktop-media img { object-position: 55% center; }
}

@media (min-width: 1920px) and (max-width: 2559px) {
  .af-hero__desktop-media { width: 58%; }
  .af-hero__desktop-media img { object-position: 52% center; }
  .af-hero__inner { padding-inline: clamp(90px, 6vw, 130px); }
}

@media (min-width: 2560px) {
  .af-hero__desktop-media { width: 56%; }
  .af-hero__desktop-media img { object-position: 50% center; }
  .af-hero__inner { padding-inline: clamp(120px, 6vw, 170px); }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .af-hero__desktop-media { width: 66%; }
  .af-hero__desktop-media img { object-position: 61% center; }
  .af-hero__inner { padding-inline: 34px; }
  .af-hero__content { width: min(450px, 45vw); }
  .af-title { font-size: clamp(50px, 6vw, 70px); }
  .af-copy { max-width: 430px; font-size: 17px; }
}

@media (max-width: 767px) {
  .af-hero {
    min-height: 0;
    background: #05030c;
  }

  .af-hero__desktop-media { display: none; }

  .af-hero__inner {
    display: block;
    min-height: 0;
    padding: 14px 16px 34px;
  }

  .af-header {
    min-height: 86px;
    margin-bottom: 4px;
  }

  .af-logo {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .af-menu-button {
    width: 46px;
    height: 46px;
  }

  .af-mobile-menu {
    top: 10px;
    right: 10px;
  }

  .af-hero__content {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .af-eyebrow {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .af-title {
    max-width: 340px;
    font-size: clamp(42px, 12.2vw, 55px);
    line-height: .93;
  }

  .af-title__line { font-size: .78em; }
  .af-title__accent { font-size: 1em; }
  .af-title::after { margin-top: 13px; }

  .af-hero__mobile-photo {
    position: relative;
    display: block;
    width: calc(100% + 32px);
    height: clamp(560px, 145vw, 700px);
    margin: 18px -16px 0;
    overflow: hidden;
    background: #0b0615;
  }

  .af-hero__mobile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(5,3,12,.03) 0%,
      rgba(5,3,12,.04) 48%,
      rgba(5,3,12,.32) 72%,
      rgba(5,3,12,.88) 93%,
      #05030c 100%);
    pointer-events: none;
  }

  .af-hero__mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: none;
  }

  .af-copy {
    position: relative;
    max-width: none;
    margin: -88px -16px 0;
    padding: 102px 16px 4px;
    background: linear-gradient(180deg, rgba(5,3,12,0) 0%, rgba(5,3,12,.98) 34%, #05030c 100%);
    font-size: 16px;
    line-height: 1.58;
    text-shadow: none;
  }

  .af-cta {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin-top: 8px;
    font-size: 17px;
  }
}

@media (max-width: 390px) {
  .af-hero__inner { padding-inline: 14px; }
  .af-title { font-size: clamp(40px, 12vw, 50px); }
  .af-hero__mobile-photo { width: calc(100% + 28px); margin-inline: -14px; }
  .af-copy { margin-inline: -14px; padding-inline: 14px; }
}

/* Card heading structure: icon | number + title, body underneath */
.af-card {
  display: grid;
  grid-template-columns: 72px auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 10px;
  padding: 24px;
}

.af-card h3 {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  margin: 0;
}

.af-card > p {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
}

@media (max-width: 767px) {
  .af-card {
    grid-template-columns: 60px auto minmax(0, 1fr);
    column-gap: 10px;
    padding: 20px;
  }
}

/* update 031: unified section headings and content action buttons */
.af-section-heading,
.af-coaches__heading .af-section-heading,
.af-trial-slide__content .af-section-heading,
.af-media__heading .af-section-heading,
.af-hall-gallery__heading .af-section-heading,
.af-roomtour__content .af-section-heading,
.af-footer-cta .af-section-heading {
  margin-top: 0;
  color: inherit;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-shadow: none;
}

.af-section-heading .af-section-heading__accent {
  color: #a85fff;
  text-shadow: none;
}

.af-section-heading::after,
.af-media__heading .af-section-heading::after {
  display: none;
}

.af-action-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  width: auto;
  min-width: 250px;
  min-height: 60px;
  height: auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(90deg, #6f24ff 0%, #943cff 100%);
  box-shadow:
    0 10px 30px rgba(116, 40, 255, .34),
    0 0 25px rgba(133, 49, 255, .25),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.af-action-button:hover,
.af-action-button:focus-visible {
  color: #fff;
  filter: none;
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(116, 40, 255, .42),
    0 0 30px rgba(133, 49, 255, .30),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.af-action-button:active {
  transform: translateY(0) scale(.985);
}

.af-action-button:focus-visible {
  outline: 3px solid rgba(174, 105, 255, .48);
  outline-offset: 4px;
}

.af-roomtour__watch::before {
  display: none;
}

.af-footer-cta__button-icon {
  display: none;
}

.af-footer-cta__button > span:last-child {
  flex: 0 1 auto;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

@media (max-width: 767px) {
  .af-section-heading,
  .af-coaches__heading .af-section-heading,
  .af-trial-slide__content .af-section-heading,
  .af-media__heading .af-section-heading,
  .af-hall-gallery__heading .af-section-heading,
  .af-roomtour__content .af-section-heading,
  .af-footer-cta .af-section-heading {
    font-size: clamp(34px, 9vw, 42px);
    line-height: 1;
  }

  .af-action-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding-inline: 22px;
    font-size: 17px;
  }

  .af-roomtour__meta {
    flex-wrap: wrap;
  }

  .af-roomtour__watch.af-action-button {
    flex-basis: 100%;
  }

  .af-footer-cta__button.af-action-button {
    width: calc(100% - 40px);
  }
}

/* update 032: uncropped hero media and corrected trial controls */
@media (min-width: 768px) {
  .af-hero__desktop-media {
    inset: 0;
    width: 100%;
  }

  .af-hero__desktop-media img {
    object-position: center center;
  }

  .af-trial-cta.af-action-button {
    width: 250px;
    min-width: 250px;
    min-height: 60px;
    justify-content: center;
    padding: 0 30px;
    border-radius: 12px;
  }
}

@media (min-width: 1024px) {
  .af-trial {
    padding-inline: clamp(72px, 6vw, 96px);
  }

  .af-trial-stage {
    overflow: visible;
  }

  .af-trial-viewport {
    overflow: hidden;
    border-radius: inherit;
  }

  .af-trial-nav--prev {
    left: -64px;
  }

  .af-trial-nav--next {
    right: -64px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .af-trial-nav--prev {
    left: 16px;
  }

  .af-trial-nav--next {
    right: 16px;
  }
}

@media (max-width: 767px) {
  .af-trial-cta.af-action-button {
    width: 100%;
    min-width: 0;
  }
}

/* update 033: dimensional room-tour and footer icon system */
.af-roomtour__benefit-icon,
.af-footer-contact__icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #e1b3ff;
  border: 1px solid rgba(204, 133, 255, .64);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .24), transparent 24%),
    radial-gradient(circle at 70% 76%, rgba(144, 54, 255, .26), transparent 40%),
    linear-gradient(145deg, rgba(103, 37, 157, .94), rgba(26, 12, 43, .98) 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -10px 22px rgba(10, 3, 18, .34),
    0 10px 24px rgba(102, 30, 199, .28),
    0 0 24px rgba(151, 60, 255, .16);
  transform: translateZ(0);
}

.af-roomtour__benefit-icon::before,
.af-footer-contact__icon::before {
  position: absolute;
  z-index: 0;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 48%);
  content: "";
  pointer-events: none;
}

.af-roomtour__benefit-icon::after,
.af-footer-contact__icon::after {
  display: none;
  content: none;
}

.af-roomtour__benefit-icon svg,
.af-footer-contact__icon svg {
  position: relative;
  z-index: 2;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(5, 0, 12, .5));
}

.af-roomtour__benefit-icon svg {
  width: 31px;
  height: 31px;
}

.af-footer-contact__icon svg {
  width: 25px;
  height: 25px;
  color: #f1ddff;
}

.af-icon-surface {
  fill: rgba(194, 119, 255, .13);
  stroke: currentColor;
}

.af-icon-core {
  fill: rgba(255, 255, 255, .15);
  stroke: #f7e9ff;
  stroke-width: 1.9;
}

.af-icon-glint {
  display: none;
}

/* update 035: dimensional age-group icons */

/* update 036: dimensional program-card icons */

.af-roomtour__benefit-icon,
.af-footer-contact__icon {
  display: grid;
  place-items: center;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
}

.af-roomtour__benefit:hover .af-roomtour__benefit-icon,
.af-footer-contact:hover .af-footer-contact__icon,
.af-footer-contact:focus-visible .af-footer-contact__icon {
  border-color: rgba(226, 176, 255, .94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -10px 22px rgba(10, 3, 18, .28),
    0 14px 30px rgba(112, 35, 224, .38),
    0 0 30px rgba(170, 78, 255, .28);
  filter: saturate(1.12) brightness(1.08);
  transform: translateY(-2px) scale(1.04);
}

/* update 038: Yandex testimonials */
.anchor_placement {
  position: relative;
  top: -20px;
  display: block;
  visibility: hidden;
}

.block-test {
  position: relative;
  padding: clamp(46px, 6vw, 82px) clamp(18px, 6vw, 96px);
  background:
    radial-gradient(circle at 12% 8%, rgba(157, 79, 255, .14), transparent 28%),
    linear-gradient(180deg, #f8f5ff 0%, #fff 100%);
}

.testimonials {
  width: min(100%, 500px);
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
}

@media (max-width: 767px) {
  .block-test {
    padding: 38px 12px 48px;
  }

  .testimonials {
    height: 620px;
  }
}

/* update 039: Yandex map */
.landingpage-block7 {
  position: relative;
  padding: clamp(42px, 5vw, 74px) clamp(18px, 6vw, 96px);
  background:
    radial-gradient(circle at 88% 12%, rgba(145, 64, 255, .1), transparent 28%),
    linear-gradient(180deg, #f8f5ff 0%, #fff 100%);
}

.landingpage-block7-cont {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.landingpage-block7-cont-map {
  overflow: hidden;
  border: 1px solid rgba(116, 44, 255, .14);
  border-radius: 26px;
  background: #fff;
  box-shadow:
    0 24px 65px rgba(75, 35, 130, .14),
    0 0 36px rgba(121, 42, 226, .07);
}

@media (max-width: 767px) {
  .landingpage-block7 {
    padding: 34px 12px 44px;
  }

  .landingpage-block7-cont-map {
    border-radius: 20px;
  }

}

/* update 042: fixed responsive navigation */
.af-desktop-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  display: none;
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 18, 24, .94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  backdrop-filter: blur(16px);
}

.af-desktop-header__nav {
  display: flex;
  width: min(100%, 1320px);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 22px);
  padding: 0 18px;
}

.af-desktop-header__nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  font: 800 clamp(12px, .9vw, 15px)/1 Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.af-desktop-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #7c35f4, #bc69ff);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.af-desktop-header__nav a:hover,
.af-desktop-header__nav a:focus-visible {
  color: #fff;
}

.af-desktop-header__nav a:hover::after,
.af-desktop-header__nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.af-page > a[id] {
  display: block;
  scroll-margin-top: 82px;
}

@media (min-width: 1024px) {
  .af-desktop-header {
    display: block;
  }

  .af-hero .af-header {
    display: none;
  }

  .af-hero__inner {
    padding-top: 100px;
  }
}

@media (max-width: 1023px) {
  .af-mobile-header {
    display: block;
  }

  .af-menu-button {
    position: fixed;
    z-index: 220;
    top: 16px;
    right: 16px;
  }

  .af-mobile-menu {
    position: fixed;
    z-index: 210;
    top: 10px;
    right: 10px;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }

  .af-page > a[id] {
    scroll-margin-top: 18px;
  }
}

/* =========================================================
   update_049 — hero: dynamic diagonal
   ========================================================= */
@media (min-width: 1024px) {
  .af-hero {
    width: min(calc(100% - 48px), 1480px);
    min-height: clamp(680px, 76svh, 840px);
    margin: 24px auto 0;
    border: 1px solid rgba(156, 83, 255, .18);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(24, 8, 48, .22);
  }

  .af-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 64%;
    background:
      linear-gradient(90deg,
        #05030c 0%,
        rgba(5, 3, 12, .995) 58%,
        rgba(5, 3, 12, .94) 78%,
        rgba(5, 3, 12, .68) 91%,
        rgba(5, 3, 12, 0) 100%);
    clip-path: polygon(0 0, 72% 0, 100% 49%, 67% 100%, 0 100%);
    content: "";
    pointer-events: none;
  }

  .af-hero::after {
    position: absolute;
    z-index: 1;
    top: 12%;
    bottom: 12%;
    left: clamp(26px, 3vw, 48px);
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b36bff, #7627ff);
    box-shadow: 0 0 20px rgba(143, 53, 255, .58);
    content: "";
    pointer-events: none;
  }

  .af-hero__desktop-media::after {
    background:
      linear-gradient(90deg,
        #05030c 0%,
        rgba(5, 3, 12, .94) 3%,
        rgba(5, 3, 12, .58) 7%,
        rgba(5, 3, 12, .18) 11%,
        transparent 16%,
        transparent 84%,
        rgba(5, 3, 12, .18) 89%,
        rgba(5, 3, 12, .58) 93%,
        rgba(5, 3, 12, .94) 97%,
        #05030c 100%),
      linear-gradient(180deg,
        rgba(5, 3, 12, .38) 0%,
        transparent 18%,
        transparent 76%,
        rgba(5, 3, 12, .72) 100%),
      radial-gradient(circle at 64% 46%,
        transparent 0%,
        transparent 32%,
        rgba(5, 3, 12, .22) 76%,
        rgba(5, 3, 12, .52) 100%);
  }

  .af-hero__desktop-media img {
    object-position: 64% center;
  }

  .af-hero__inner {
    min-height: clamp(680px, 76svh, 840px);
    justify-content: center;
    padding: 54px clamp(58px, 5vw, 86px);
  }

  .af-hero__content {
    width: min(500px, 39vw);
    max-width: 500px;
    margin: 0;
  }

  .af-eyebrow {
    margin-bottom: 10px;
  }

  .af-title {
    font-size: clamp(58px, 4.6vw, 78px);
  }

  .af-copy {
    max-width: 470px;
    margin-top: 22px;
    font-size: clamp(16px, 1.08vw, 18px);
    line-height: 1.52;
  }

  .af-copy p {
    margin-bottom: 17px;
  }

  .af-cta {
    min-width: 260px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .af-hero {
    width: min(calc(100% - 32px), 1180px);
    min-height: 680px;
    margin-top: 16px;
  }

  .af-hero::before {
    width: 68%;
    clip-path: polygon(0 0, 76% 0, 100% 50%, 72% 100%, 0 100%);
  }

  .af-hero__inner {
    min-height: 680px;
    padding-inline: 52px;
  }

  .af-hero__content {
    width: min(440px, 43vw);
  }

  .af-title {
    font-size: clamp(52px, 5.5vw, 68px);
  }
}

@media (max-width: 1023px) {
  .af-hero {
    width: min(calc(100% - 24px), 680px);
    margin: 12px auto 0;
    border: 1px solid rgba(156, 83, 255, .16);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(28, 10, 54, .18);
  }

  .af-hero__inner {
    padding: 76px 16px 24px;
  }

  .af-hero .af-header {
    display: none;
  }

  .af-eyebrow {
    margin-bottom: 7px;
  }

  .af-title::after {
    width: 64px;
    height: 4px;
    margin-top: 12px;
  }

  .af-hero__mobile-photo {
    width: calc(100% + 32px);
    height: clamp(360px, 54svh, 520px);
    margin: 14px -16px 0;
  }

  .af-hero__mobile-photo::before {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 100px;
    background: #05030c;
    clip-path: polygon(0 76%, 100% 24%, 100% 100%, 0 100%);
    content: "";
    pointer-events: none;
  }

  .af-hero__mobile-photo::after {
    z-index: 1;
    background:
      linear-gradient(180deg,
        transparent 0%,
        transparent 68%,
        rgba(5, 3, 12, .24) 82%,
        #05030c 100%);
  }

  .af-hero__mobile-photo img {
    object-position: center 42%;
  }

  .af-copy {
    margin: -24px 0 0;
    padding: 0;
    background: none;
    font-size: 15.5px;
    line-height: 1.5;
  }

  .af-copy p {
    margin-bottom: 17px;
  }

  .af-cta {
    min-height: 56px;
    margin-top: 2px;
  }
}

@media (max-width: 390px) {
  .af-hero {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 16px;
  }

  .af-hero__inner {
    padding: 72px 14px 20px;
  }

  .af-hero__mobile-photo {
    width: calc(100% + 28px);
    height: clamp(350px, 52svh, 470px);
    margin: 12px -14px 0;
  }

  .af-copy {
    margin-inline: 0;
    padding-inline: 0;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-hero__desktop-media img,
  .af-hero__mobile-photo img {
    transition: none;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .af-mobile-header {
    display: none;
  }
}

/* =========================================================
   update_050 — continuous mobile hero photo + safe text flow
   ========================================================= */
body,
.af-page {
  background: #05030c;
}

@media (min-width: 1024px) {
  .af-hero {
    margin-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .af-hero__content {
    position: relative;
    isolation: isolate;
  }

  .af-hero__content::before {
    position: absolute;
    z-index: 2;
    top: -76px;
    right: -16px;
    left: -16px;
    height: 320px;
    background:
      linear-gradient(180deg,
        rgba(5, 3, 12, .92) 0%,
        rgba(5, 3, 12, .78) 48%,
        rgba(5, 3, 12, .28) 78%,
        rgba(5, 3, 12, 0) 100%);
    content: "";
    pointer-events: none;
  }

  .af-eyebrow,
  .af-title {
    position: relative;
    z-index: 3;
  }

  .af-hero__mobile-photo {
    position: absolute;
    z-index: 0;
    top: -76px;
    right: -16px;
    left: -16px;
    width: auto;
    height: clamp(620px, 78svh, 720px);
    margin: 0;
  }

  .af-hero__mobile-photo::before {
    z-index: 2;
    height: 112px;
    clip-path: polygon(0 72%, 100% 25%, 100% 100%, 0 100%);
  }

  .af-hero__mobile-photo::after {
    z-index: 1;
    background:
      linear-gradient(180deg,
        rgba(5, 3, 12, .2) 0%,
        transparent 36%,
        transparent 65%,
        rgba(5, 3, 12, .3) 80%,
        #05030c 100%);
  }

  .af-hero__mobile-photo img {
    object-fit: cover;
    object-position: center top;
  }

  .af-copy {
    position: relative;
    z-index: 3;
    margin: clamp(390px, 49svh, 470px) 0 0;
    padding: 0;
    overflow: visible;
  }

  .af-copy p:first-child {
    margin-top: 0;
  }

  .af-cta {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 390px) {
  .af-hero__content::before {
    top: -72px;
    right: -14px;
    left: -14px;
    height: 300px;
  }

  .af-hero__mobile-photo {
    top: -72px;
    right: -14px;
    left: -14px;
    width: auto;
    height: clamp(590px, 76svh, 680px);
    margin: 0;
  }

  .af-copy {
    margin-top: clamp(370px, 47svh, 440px);
  }
}

/* =========================================================
   update_055 — school program: text left, selected photo right
   ========================================================= */
.af-program .af-cards {
  gap: 18px;
}

.af-program .af-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  grid-template-rows: 1fr;
  min-height: 270px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(89, 45, 145, .10);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(46, 27, 76, .09);
}

.af-program .af-card::before,
.af-program .af-card::after {
  display: none;
  content: none;
}

.af-program .af-card__content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  padding: 30px 8px 28px 30px;
  background: #fff;
}

.af-program .af-card__content::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(100% - 1px);
  width: 92px;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 35%, rgba(255,255,255,.68) 68%, transparent 100%);
  content: "";
  pointer-events: none;
}

.af-program .af-card h3 {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  color: #171125;
  font-size: clamp(19px, 1.45vw, 23px);
  line-height: 1.2;
}

.af-program .af-card h3::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 11px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.af-program .af-card__content p {
  margin: 0;
  color: #5d5768;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.62;
}

.af-program .af-card__content p strong {
  color: #171125;
  font-weight: 850;
}

.af-program .af-card__photo {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #e9e4f1;
}

.af-program .af-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

@media (max-width: 767px) {
  .af-program .af-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .af-program .af-card__content {
    order: 1;
    padding: 24px 22px 20px;
  }

  .af-program .af-card__content::after {
    top: calc(100% - 1px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 64px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.88) 45%, transparent 100%);
  }

  .af-program .af-card__photo {
    order: 2;
    width: 100%;
    height: 230px;
    min-height: 230px;
  }

  .af-program .af-card__photo img {
    min-height: 230px;
  }
}

/* update 061: visible hero logo */
.af-hero .af-header {
  position: absolute;
  z-index: 8;
  top: 20px;
  left: clamp(58px, 5vw, 86px);
  display: block !important;
  min-height: 0;
  pointer-events: none;
}

.af-hero .af-logo {
  display: block;
  width: 46px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.38));
}

@media (max-width: 1023px) {
  .af-hero .af-header {
    top: 16px;
    left: 16px;
  }

  .af-hero .af-logo {
    width: 42px;
    height: 52px;
  }
}

@media (max-width: 390px) {
  .af-hero .af-header {
    top: 12px;
    left: 14px;
  }
}

@media (min-width: 1024px) {
  .af-hero .af-header {
    top: 80px;
    left: clamp(18px, 2vw, 30px);
  }
}

.af-title__accent[data-fit-branch-title] {
  max-width: 100%;
  overflow: visible;
}

/* update 056: full-resolution program photos and exact card geometry */
@media (min-width: 768px) {
  .af-program .af-card {
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    min-height: 300px;
    align-items: stretch;
  }

  .af-program .af-card__content {
    height: 100%;
    padding: 30px 4px 30px 30px;
  }

  .af-program .af-card__content::after {
    width: 126px;
  }

  .af-program .af-card__photo {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 100% !important;
    min-height: 300px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 23px 23px 0;
  }

  .af-program .af-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
}

/* =========================================================
   update_065 — program cards, kinetic concept 7
   ========================================================= */
.af-program .af-card__content {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset -1px 0 0 color-mix(in srgb, var(--accent), transparent 88%);
}

.af-program .af-card__content::before {
  right: -8px;
  bottom: auto;
  left: auto;
}

.af-program .af-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.af-program .af-card h3::after {
  display: none;
  content: none;
}

.af-program .af-card__rhythm {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(230px, 72%);
  height: 7px;
  gap: 7px;
  margin: 0 0 18px;
  transform: skewX(-20deg);
}

.af-program .af-card__rhythm span {
  display: block;
  height: 100%;
  border-radius: 2px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent), transparent 78%);
}

.af-program .af-card__rhythm span:nth-child(1) {
  width: 42%;
  background: linear-gradient(90deg, var(--accent), #9f4fff);
}

.af-program .af-card__rhythm span:nth-child(2) {
  width: 33%;
  background: linear-gradient(90deg, #aa5cff, #cf70ec);
}

.af-program .af-card__rhythm span:nth-child(3) {
  width: 25%;
  background: linear-gradient(90deg, #d971e7, #f090c7);
}

@media (max-width: 767px) {
  .af-program .af-card__content {
    padding-top: 27px;
    padding-bottom: 28px;
  }

  .af-program .af-card__content::before {
    top: -24px;
    right: -24px;
    width: 70%;
    height: 156px;
    opacity: .42;
  }

  .af-program .af-card__rhythm {
    width: min(210px, 74%);
    height: 6px;
    gap: 6px;
    margin-bottom: 20px;
  }
}

/* update 057: sharper photo transition and richer light content panel */
.af-program .af-card__content {
  background:
    radial-gradient(circle at 12% 18%,
      color-mix(in srgb, var(--accent), transparent 87%) 0%,
      color-mix(in srgb, var(--accent), transparent 95%) 32%,
      transparent 58%),
    linear-gradient(145deg,
      #fff 0%,
      color-mix(in srgb, var(--accent), white 96%) 48%,
      color-mix(in srgb, var(--accent), white 93%) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset -1px 0 0 color-mix(in srgb, var(--accent), transparent 87%);
}

.af-program .af-card__content::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent), transparent 72%) .8px, transparent .8px);
  background-size: 14px 14px;
  content: "";
  opacity: .22;
  pointer-events: none;
}

@media (min-width: 768px) {
  .af-program .af-card__content::after {
    width: 54px;
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--accent), white 93%) 0%,
      rgba(255,255,255,.96) 18%,
      rgba(255,255,255,.76) 38%,
      rgba(255,255,255,.24) 64%,
      transparent 78%);
  }
}

@media (max-width: 767px) {
  .af-program .af-card__content::after {
    height: 38px;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent), white 93%) 0%,
      rgba(255,255,255,.92) 18%,
      rgba(255,255,255,.54) 48%,
      transparent 76%);
  }
}

@media (max-width: 767px) {
  .af-program .af-card {
    overflow: hidden;
    border-radius: 24px;
  }

  .af-program .af-card__content {
    width: 100%;
    margin: 0;
    padding: 25px 22px 24px;
  }

  .af-program .af-card__content::after {
    height: 38px;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent), white 93%) 0%,
      rgba(255,255,255,.92) 18%,
      rgba(255,255,255,.54) 48%,
      transparent 76%);
  }

  .af-program .af-card__photo {
    position: relative;
    width: 100%;
    height: clamp(250px, 69vw, 360px) !important;
    min-height: 250px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 0 23px 23px;
  }

  .af-program .af-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
}

/* update_065 final priority overrides */
.af-program .af-card__content {
  background:
    linear-gradient(118deg,
      #fff 0%,
      color-mix(in srgb, var(--accent), white 97%) 54%,
      rgba(252, 239, 252, .78) 100%);
}

.af-program .af-card__content::before {
  z-index: 0;
  inset: auto -8px auto auto;
  top: -38px;
  width: 58%;
  height: 168px;
  opacity: .48;
  background:
    radial-gradient(ellipse at 108% -5%,
      transparent 0 43%,
      color-mix(in srgb, var(--accent), transparent 72%) 43.4% 44%,
      transparent 44.4% 53%,
      color-mix(in srgb, #b968ff, transparent 76%) 53.4% 54%,
      transparent 54.4% 63%,
      color-mix(in srgb, #ef8fce, transparent 78%) 63.4% 64%,
      transparent 64.4% 100%);
  background-size: 100% 100%;
}

@media (min-width: 768px) {
  .af-program .af-card__content {
    padding-top: 32px;
  }
}

@media (max-width: 767px) {
  .af-program .af-card__content {
    padding: 27px 22px 28px;
  }

  .af-program .af-card__content::before {
    top: -24px;
    right: -24px;
    width: 70%;
    height: 156px;
    opacity: .42;
  }
}

/* update_067 — remove obsolete icon/number grid from program cards */
.af-program .af-card {
  grid-template-areas: none;
  column-gap: 0;
  row-gap: 0;
  gap: 0;
}

@media (min-width: 768px) {
  .af-program .af-card {
    align-items: stretch;
  }

  .af-program .af-card__photo {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: auto !important;
    min-height: 300px;
    margin: 0 !important;
    border-radius: 0 23px 23px 0;
  }

  .af-program .af-card__photo img {
    inset: 0;
    width: 100%;
    height: 100% !important;
  }
}

/* update_068 final priority — desktop title lockup */
@media (min-width: 1024px) {
  .af-desktop-header__nav {
    padding-right: 76px;
  }

  .af-hero__brand-lockup {
    position: relative;
    isolation: isolate;
    display: grid;
    width: min(660px, 46vw);
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: flex-start;
    column-gap: 26px;
    row-gap: 0;
    padding: 28px 24px 0;
  }

  .af-hero__brand-lockup::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 184px;
    border: 0;
    background:
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left top / 30% 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right top / 30% 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left top / 2px 100% no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right top / 2px 100% no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left bottom / 28px 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right bottom / 28px 2px no-repeat;
    box-shadow: 0 0 24px rgba(129, 48, 237, .08);
    content: "";
    pointer-events: none;
  }

  .af-hero .af-header {
    position: relative;
    top: auto;
    left: auto;
    display: flex !important;
    width: 112px;
    min-height: 0;
    flex: 0 0 112px;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0;
    padding-top: 0;
    transform: none;
  }

  .af-hero .af-header::after {
    position: absolute;
    top: 0;
    right: -14px;
    display: block;
    width: 2px;
    height: 126px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(184,106,255,.9), rgba(124,53,244,.72));
    box-shadow: 0 0 12px rgba(151,72,255,.22);
    content: "";
  }

  .af-hero .af-logo {
    width: 102px;
    height: 126px;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.46));
  }

  .af-hero__brand-lockup .af-hero__content {
    display: contents;
  }

  .af-hero__title-stack {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  .af-hero__brand-lockup .af-eyebrow {
    position: absolute;
    top: -14px;
    left: 50%;
    width: max-content;
    margin: 0;
    padding: 0 18px;
    color: #a85cff;
    background: #05030c;
    font-size: 28px;
    line-height: 1;
    letter-spacing: .015em;
    transform: translateX(-50%);
  }

  .af-hero__brand-lockup .af-title {
    max-width: 100%;
  }

  .af-hero__brand-lockup .af-title::after {
    display: none;
    content: none;
  }

  .af-hero::after {
    display: none;
    content: none;
  }

  .af-hero__brand-lockup .af-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 590px;
    margin: 34px 0 0;
  }

  .af-hero__brand-lockup .af-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .af-hero__brand-lockup {
    width: min(560px, 49vw);
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 20px;
    padding-inline: 18px;
  }

  .af-hero .af-header {
    width: 82px;
    flex-basis: 82px;
    margin: 0;
  }

  .af-hero .af-header::after {
    right: -11px;
    display: block;
    height: 104px;
  }

  .af-hero .af-logo {
    width: 76px;
    height: 104px;
  }

  .af-hero__brand-lockup::before {
    height: 164px;
  }

  .af-hero__brand-lockup .af-eyebrow {
    top: -11px;
    font-size: 22px;
  }

  .af-hero__brand-lockup .af-copy {
    margin-top: 30px;
  }
}

@media (max-width: 1023px) {
  .af-hero__brand-lockup {
    display: block;
    width: 100%;
    padding: 0;
  }

  .af-hero__title-stack {
    display: block;
  }
}

/* =========================================================
   update_073 — mobile hero, selected concept 4
   ========================================================= */
@media (max-width: 1023px) {
  .af-hero__inner {
    padding: 76px 16px 24px;
  }

  .af-hero__brand-lockup {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 18px;
    padding: 24px 14px 0;
  }

  .af-hero__brand-lockup::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 142px;
    background:
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left top / 28% 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right top / 28% 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left top / 2px 100% no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right top / 2px 100% no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) left bottom / 25px 2px no-repeat,
      linear-gradient(rgba(174,91,255,.88), rgba(174,91,255,.88)) right bottom / 25px 2px no-repeat;
    box-shadow: 0 14px 26px rgba(111,35,223,.08);
    content: "";
    pointer-events: none;
  }

  .af-hero__brand-lockup::after {
    position: absolute;
    z-index: 2;
    top: 126px;
    right: 8%;
    left: 8%;
    height: 24px;
    background: radial-gradient(ellipse at center, rgba(132,53,244,.25), transparent 68%);
    filter: blur(6px);
    content: "";
    pointer-events: none;
  }

  .af-hero .af-header {
    position: relative;
    z-index: 5;
    top: auto;
    left: auto;
    display: flex !important;
    width: 86px;
    height: 104px;
    min-height: 0;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
  }

  .af-hero .af-header::after {
    position: absolute;
    top: 6px;
    right: -10px;
    display: block;
    width: 2px;
    height: 92px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(184,106,255,.9), rgba(124,53,244,.68));
    content: "";
  }

  .af-hero .af-logo {
    width: 76px;
    height: 96px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 7px 16px rgba(0,0,0,.42));
  }

  .af-hero__brand-lockup .af-hero__content {
    display: contents;
  }

  .af-hero__title-stack {
    position: static;
    z-index: 5;
    display: block;
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .af-hero__brand-lockup .af-eyebrow {
    position: absolute;
    z-index: 6;
    top: -9px;
    left: 50%;
    width: max-content;
    margin: 0;
    padding: 0 12px;
    color: #a85cff;
    background: #05030c;
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.15;
    letter-spacing: .012em;
    transform: translateX(-50%);
  }

  .af-hero__brand-lockup .af-title {
    position: relative;
    z-index: 5;
    max-width: 100%;
    margin: 0;
    font-size: clamp(32px, 9vw, 44px);
    line-height: .91;
  }

  .af-hero__brand-lockup .af-title::after {
    display: none;
    content: none;
  }

  .af-hero__mobile-photo {
    position: absolute;
    z-index: 0;
    top: 112px;
    right: -16px;
    left: -16px;
    width: auto;
    height: clamp(620px, 78svh, 720px);
    margin: 0;
  }

  .af-hero__content::before {
    display: none;
    content: none;
  }

  .af-hero__brand-lockup .af-copy {
    position: relative;
    z-index: 5;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: clamp(475px, 60svh, 555px) 0 0;
    padding: 0;
  }

  .af-hero__brand-lockup .af-cta {
    position: relative;
    z-index: 5;
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }
}

@media (max-width: 390px) {
  .af-hero__inner {
    padding: 72px 14px 20px;
  }

  .af-hero__brand-lockup {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 14px;
    padding: 22px 10px 0;
  }

  .af-hero__brand-lockup::before {
    height: 132px;
  }

  .af-hero .af-header {
    width: 72px;
    height: 92px;
  }

  .af-hero .af-header::after {
    right: -8px;
    height: 82px;
  }

  .af-hero .af-logo {
    width: 64px;
    height: 84px;
  }

  .af-hero__brand-lockup .af-title {
    font-size: clamp(29px, 8.8vw, 36px);
  }

  .af-hero__mobile-photo {
    top: 104px;
    right: -14px;
    left: -14px;
    height: clamp(590px, 76svh, 680px);
  }

  .af-hero__brand-lockup .af-copy {
    margin-top: clamp(455px, 58svh, 520px);
  }
}

/* =========================================================
   update_074 — compact mobile hero photo and long branch title
   ========================================================= */
@media (max-width: 1023px) {
  .af-hero__brand-lockup {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 15px;
  }

  .af-hero .af-header {
    width: 82px;
  }

  .af-hero .af-logo {
    width: 72px;
  }

  .af-hero__brand-lockup .af-title {
    width: 100%;
    max-width: none;
    font-size: clamp(31px, 8.7vw, 42px);
    letter-spacing: -.055em;
  }

  .af-hero__brand-lockup .af-title__accent[data-fit-branch-title] {
    width: 100%;
    max-width: none;
    overflow: visible;
    font-size: clamp(19px, 5.8vw, 27px) !important;
    line-height: 1;
    letter-spacing: -.055em;
  }

  .af-hero__mobile-photo {
    top: 112px;
    height: clamp(500px, 64svh, 570px);
    overflow: hidden;
    background: #05030c;
  }

  .af-hero__mobile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
    transform: scale(1.22);
    transform-origin: center 43%;
  }

  .af-hero__mobile-photo::after {
    background:
      linear-gradient(180deg,
        rgba(5, 3, 12, .06) 0%,
        transparent 62%,
        rgba(5, 3, 12, .5) 78%,
        #05030c 94%,
        #05030c 100%);
  }

  .af-hero__brand-lockup .af-copy {
    margin-top: clamp(480px, 61svh, 545px);
    padding-top: 10px;
    background: #05030c;
  }
}

@media (max-width: 390px) {
  .af-hero__brand-lockup {
    grid-template-columns: 68px minmax(0, 1fr);
    column-gap: 12px;
  }

  .af-hero .af-header {
    width: 68px;
  }

  .af-hero .af-logo {
    width: 60px;
  }

  .af-hero__brand-lockup .af-title {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .af-hero__brand-lockup .af-title__accent[data-fit-branch-title] {
    font-size: clamp(17px, 5.65vw, 22px) !important;
  }

  .af-hero__mobile-photo {
    top: 104px;
    height: clamp(470px, 62svh, 535px);
  }

  .af-hero__brand-lockup .af-copy {
    margin-top: clamp(450px, 59svh, 505px);
  }
}

/* =========================================================
   update_075 — unified section introductions and desktop CTA art
   ========================================================= */
@media (min-width: 1024px) {
  .af-final-cta__background {
    background-size: contain;
  }
}

.af-program__intro,
.af-coaches__heading > p:last-child,
.af-media__heading > p,
.af-hall-gallery__heading p,
.af-roomtour__description,
.af-footer-cta__text {
  font-size: 17px;
}

/* =========================================================
   update_076 — one desktop section-heading layout, no 980px legacy state
   ========================================================= */
@media (min-width: 768px) {
  .af-coaches__heading {
    display: grid;
    grid-template-columns: minmax(300px, 460px) minmax(320px, 560px);
    grid-template-areas:
      "kicker text"
      "title text";
    align-items: start;
    column-gap: clamp(36px, 5vw, 76px);
    row-gap: 8px;
    max-width: 1120px;
  }

  .af-coaches__kicker {
    grid-area: kicker;
  }

  .af-coaches__heading .af-section-heading {
    grid-area: title;
    margin: 0;
  }

  .af-coaches__heading .af-section-heading__accent {
    display: block;
  }

  .af-coaches__heading > p:last-child {
    grid-area: text;
    align-self: center;
    width: 100%;
    max-width: 560px;
    margin: 0;
  }

  .af-media__heading {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(360px, 1.18fr);
    align-items: center;
    gap: clamp(36px, 5vw, 76px);
    max-width: 1120px;
  }

  .af-media__heading .af-section-heading,
  .af-media__heading > p {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .af-hall-gallery__heading {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr) auto;
    align-items: center;
    gap: clamp(30px, 4vw, 62px);
  }

  .af-hall-gallery__heading > div {
    display: contents;
  }

  .af-hall-gallery__heading .af-section-heading,
  .af-hall-gallery__heading p {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .af-hall-gallery__heading .af-section-heading__accent {
    display: block;
  }

  .af-hall-gallery__counter {
    align-self: start;
  }
}

/* =========================================================
   update_077 — desktop hero copy spacing
   ========================================================= */
@media (min-width: 1024px) {
  .af-hero__brand-lockup .af-copy {
    margin: 55px 0 25px;
  }
}

/* =========================================================
   update_078 — heading system, variant 2 (three sections only)
   ========================================================= */
.af-heading-v2__kicker {
  margin: 0 0 8px;
  color: #a85fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.af-media__heading.af-heading-v2 > .af-heading-v2__kicker,
.af-hall-gallery__heading.af-heading-v2 .af-heading-v2__kicker {
  color: #a85fff;
}

@media (min-width: 768px) {
  .af-coaches__heading.af-heading-v2,
  .af-media__heading.af-heading-v2 {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "kicker description"
      "title description";
    align-items: center;
    column-gap: clamp(36px, 5vw, 76px);
    row-gap: 6px;
    width: 100%;
    max-width: 1240px;
  }

  .af-coaches__heading.af-heading-v2 .af-heading-v2__kicker,
  .af-media__heading.af-heading-v2 .af-heading-v2__kicker {
    grid-area: kicker;
    align-self: end;
    margin: 0;
  }

  .af-coaches__heading.af-heading-v2 .af-section-heading,
  .af-media__heading.af-heading-v2 .af-section-heading {
    grid-area: title;
    align-self: start;
    width: 100%;
    margin: 0;
    font-size: clamp(31px, 3.35vw, 52px);
    white-space: nowrap;
  }

  .af-coaches__heading.af-heading-v2 .af-section-heading__accent,
  .af-media__heading.af-heading-v2 .af-section-heading__accent {
    display: inline;
  }

  .af-coaches__heading.af-heading-v2 > p:last-child,
  .af-media__heading.af-heading-v2 > p:last-child {
    grid-area: description;
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 0 4px clamp(28px, 3vw, 48px);
    border-left: 1px solid rgba(177, 92, 255, .9);
  }

  .af-hall-gallery__heading.af-heading-v2 {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) auto;
    align-items: center;
    gap: clamp(30px, 4vw, 62px);
  }

  .af-hall-gallery__heading.af-heading-v2 > .af-heading-v2__title {
    display: block;
    min-width: 0;
    max-width: none;
  }

  .af-hall-gallery__heading.af-heading-v2 .af-section-heading {
    width: 100%;
    margin: 0;
    font-size: clamp(31px, 3.35vw, 52px);
    white-space: nowrap;
  }

  .af-hall-gallery__heading.af-heading-v2 .af-section-heading__accent {
    display: inline;
  }

  .af-hall-gallery__heading.af-heading-v2 > p {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 0 4px clamp(28px, 3vw, 48px);
    border-left: 1px solid rgba(177, 92, 255, .9);
  }

  .af-hall-gallery__heading.af-heading-v2 .af-hall-gallery__counter {
    align-self: center;
  }
}

@media (max-width: 767px) {
  .af-coaches__heading.af-heading-v2 {
    display: block;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    padding: 0 6px;
  }

  .af-coaches__heading.af-heading-v2 .af-heading-v2__kicker {
    margin: 0 0 6px;
  }

  .af-coaches__heading.af-heading-v2 .af-section-heading {
    width: 100%;
    margin: 0;
    white-space: normal;
  }

  .af-coaches__heading.af-heading-v2 > p:last-child {
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
    padding: 0;
    border-left: 0;
  }

  .af-media__heading.af-heading-v2 > .af-heading-v2__kicker {
    margin-bottom: 6px;
  }

  .af-hall-gallery__heading.af-heading-v2 > .af-heading-v2__title {
    max-width: none;
  }

  .af-hall-gallery__heading.af-heading-v2 .af-heading-v2__kicker {
    margin-bottom: 8px;
    font-size: 13px;
  }
}

/* =========================================================
   update_079 — favicon 08, program emphasis, mobile coaches heading
   ========================================================= */

/* =========================================================
   update_080 — responsive labels and readable video titles
   ========================================================= */
.af-roomtour__mobile-kicker {
  display: none;
}

.af-media-video-card__meta strong,
.af-media-mobile-video strong {
  padding: 0 10px;
  border-radius: 6px;
  color: #fff;
  background: #000;
  font-size: 20px;
}

@media (max-width: 767px) {
  .af-roomtour__mobile-kicker {
    display: block;
    margin: 0 0 8px;
    color: #a85fff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .af-footer-cta__eyebrow {
    color: #a85fff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .12em;
  }

  .af-footer__heading {
    font-size: 20px;
    letter-spacing: .05em;
  }
}

@media (min-width: 768px) {
  .af-footer__heading {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .15em;
  }

  .af-stats__eyebrow {
    font-size: 20px;
  }
}

/* =========================================================
   update_082 — mobile hero, selected concept 01
   ========================================================= */
@media (max-width: 767px) {
  .af-hero__inner {
    padding-top: clamp(70px, 17vw, 82px);
  }

  .af-hero__brand-lockup {
    --af-mobile-logo-column: clamp(70px, 20vw, 88px);
    --af-mobile-logo-height: clamp(88px, 24vw, 108px);
    display: grid;
    grid-template-columns: var(--af-mobile-logo-column) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: clamp(12px, 3.6vw, 17px);
    padding: 2px 0 0;
  }

  .af-hero__brand-lockup::before,
  .af-hero__brand-lockup::after {
    display: none;
    content: none;
  }

  .af-hero .af-header {
    width: var(--af-mobile-logo-column);
    height: var(--af-mobile-logo-height);
  }

  .af-hero .af-header::after {
    top: 8%;
    right: calc(clamp(12px, 3.6vw, 17px) * -.5);
    height: 84%;
  }

  .af-hero .af-logo {
    width: clamp(64px, 18vw, 80px);
    height: var(--af-mobile-logo-height);
  }

  .af-hero__title-stack {
    display: flex;
    min-width: 0;
    max-height: var(--af-mobile-logo-height);
    flex-direction: column;
    justify-content: center;
    align-self: center;
  }

  .af-hero__brand-lockup .af-eyebrow {
    position: static;
    width: 100%;
    margin: 0 0 clamp(5px, 1.6vw, 8px);
    padding: 0;
    overflow: hidden;
    background: transparent;
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.08;
    letter-spacing: .012em;
    white-space: nowrap;
    transform: none;
  }

  .af-hero__brand-lockup .af-title {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    font-size: clamp(25px, 7.2vw, 34px);
    line-height: .92;
    letter-spacing: -.05em;
  }

  .af-hero__brand-lockup .af-title__line,
  .af-hero__brand-lockup .af-title__accent[data-fit-branch-title] {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .af-hero__brand-lockup .af-title__accent[data-fit-branch-title] {
    font-size: inherit;
    line-height: 1;
    letter-spacing: -.055em;
  }

  .af-hero__mobile-photo {
    top: calc(var(--af-mobile-logo-height) + 8px);
  }
}

/* =========================================================
   update_083 — tighter mobile hero media transitions
   ========================================================= */
@media (max-width: 767px) {
  .af-hero__mobile-photo {
    top: calc(var(--af-mobile-logo-height) + 2px);
  }

  .af-hero__mobile-photo img {
    object-position: center 47%;
    transform: scale(1.3);
    transform-origin: center 47%;
  }

  .af-hero__mobile-photo::after {
    background:
      linear-gradient(180deg,
        rgba(5, 3, 12, .03) 0%,
        transparent 70%,
        rgba(5, 3, 12, .34) 84%,
        #05030c 98%,
        #05030c 100%);
  }

  .af-hero__brand-lockup .af-copy {
    margin-top: clamp(400px, 54svh, 455px);
  }
}

/* =========================================================
   update_084 — restore mobile photo/text separation and diagonal cut
   ========================================================= */
@media (max-width: 767px) {
  .af-hero__inner {
    padding-top: clamp(48px, 12vw, 58px);
  }

  .af-hero__mobile-photo {
    top: calc(var(--af-mobile-logo-height) - 6px);
  }

  .af-hero__mobile-photo img {
    object-position: center 43%;
    transform: translateY(-38px) scale(1.22);
    transform-origin: center center;
  }

  .af-hero__mobile-photo::before {
    display: block;
    height: 112px;
    background: #05030c;
    clip-path: polygon(0 72%, 100% 24%, 100% 100%, 0 100%);
    filter:
      drop-shadow(0 -2px 0 rgba(164, 76, 255, .92))
      drop-shadow(0 -5px 10px rgba(135, 49, 245, .34));
    content: "";
  }

  .af-hero__mobile-photo::after {
    background:
      linear-gradient(180deg,
        rgba(5, 3, 12, .04) 0%,
        transparent 70%,
        rgba(5, 3, 12, .22) 86%,
        rgba(5, 3, 12, .72) 100%);
  }

  .af-hero__brand-lockup .af-copy {
    width: 100%;
    max-width: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: clamp(470px, 60svh, 535px);
    padding: 14px 0 0;
    background: #05030c;
  }
}

@media (max-width: 390px) {
  .af-hero__brand-lockup .af-copy {
    margin-top: clamp(440px, 58svh, 495px);
  }
}

/* =========================================================
   update_086 — shared heading typography for the hero title
   ========================================================= */
.af-hero .af-title {
  color: #fff;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-shadow: none;
}

.af-hero .af-title__line,
.af-hero .af-title__accent {
  color: #fff;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* =========================================================
   update_100 — age selector, design 3 (no icons)
   ========================================================= */
.af-trial-slide__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 24px;
}

.af-trial-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(113, 65, 205, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 45px rgba(73, 42, 128, .10);
}

.af-trial-tab {
  position: relative;
  min-width: 0;
  min-height: 72px;
  justify-content: center;
  padding: 12px 14px 15px;
  border: 0;
  border-radius: 15px 15px 10px 10px;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.af-trial-tab + .af-trial-tab {
  border-left: 1px solid rgba(126, 83, 205, .10);
}

.af-trial-tab::after {
  position: absolute;
  right: 18px;
  bottom: 5px;
  left: 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f26ff, #b040ff);
  box-shadow: 0 4px 12px rgba(132, 50, 255, .30);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .24s ease, transform .24s ease;
  content: "";
}

.af-trial-tab.is-active {
  color: var(--trial-purple);
  background: linear-gradient(180deg, rgba(247, 241, 255, .96), rgba(238, 226, 255, .78));
  box-shadow: inset 0 0 0 1px rgba(138, 64, 255, .22);
}

.af-trial-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.af-trial-tab > span {
  display: block;
  min-width: 0;
}

.af-trial-tab strong,
.af-trial-tab small {
  display: block;
  text-align: center;
}

.af-trial-tab strong {
  font-size: 17px;
  line-height: 1.15;
}

.af-trial-tab small {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.1;
}

@media (hover: hover) and (pointer: fine) {
  .af-trial-tab:not(.is-active):hover {
    color: var(--trial-purple);
    background: rgba(246, 239, 255, .68);
  }
}

@media (max-width: 767px) {
  .af-trial-slide__group {
    align-items: center;
    margin: 0 0 21px;
    text-align: center;
  }

  .af-trial-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 5px;
    overflow: hidden;
  }

  .af-trial-tab {
    min-width: 0;
    min-height: 64px;
    padding: 10px 2px 13px;
    border-radius: 13px 13px 8px 8px;
  }

  .af-trial-tab::after {
    right: 9px;
    bottom: 4px;
    left: 9px;
    height: 3px;
  }

  .af-trial-tab strong {
    font-size: clamp(11px, 3.35vw, 14px);
  }

  .af-trial-tab small {
    margin-top: 4px;
    font-size: clamp(9px, 2.7vw, 11px);
  }
}

/* =========================================================
   update_087 — local stats icons and unified mobile headings
   ========================================================= */
.af-stat-card__mark::before {
  position: absolute;
  z-index: 1;
  inset: 28px;
  border: 2px solid #171224;
  border-radius: 50%;
  content: "";
}

@media (max-width: 767px) {
  .af-stats__eyebrow {
    margin: 0 0 8px;
    color: #a85fff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .af-stat-card__mark::before {
    inset: 18px;
  }
}

/* =========================================================
   update_088 — exact mobile section rhythm and orbit points
   ========================================================= */
.af-stat-card__orbit::before,
.af-stat-card__orbit::after {
  top: 50%;
  bottom: auto;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
}

.af-stat-card__orbit::before {
  left: -5px;
}

.af-stat-card__orbit::after {
  right: -5px;
}

@media (max-width: 767px) {
  .af-media__heading.af-heading-v2 {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 0 6px;
  }
}

/* =========================================================
   update_089 — supplied stats coins and synchronized glint
   ========================================================= */
.af-stat-card__mark {
  isolation: isolate;
}

.af-stat-card__mark::after {
  position: absolute;
  z-index: 3;
  inset: 28px;
  border-radius: 50%;
  background:
    linear-gradient(112deg,
      transparent 28%,
      rgba(255,255,255,0) 38%,
      rgba(255,255,255,.92) 47%,
      rgba(205,151,255,.62) 51%,
      rgba(255,255,255,0) 61%,
      transparent 72%);
  background-position: 170% 0;
  background-size: 260% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.af-stats.is-visible .af-stat-card__mark::after {
  animation: afCoinGlint 9s linear infinite;
  animation-delay: var(--delay);
}

.af-stat-card__mark img {
  filter:
    drop-shadow(0 8px 12px rgba(28, 16, 45, .16))
    drop-shadow(0 0 8px rgba(153, 85, 255, .10));
}

@keyframes afCoinGlint {
  0%, 12% {
    background-position: 170% 0;
    opacity: 0;
  }
  16% {
    opacity: .9;
  }
  29% {
    background-position: -70% 0;
    opacity: 1;
  }
  34%, 100% {
    background-position: -70% 0;
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .af-stat-card__mark::after {
    inset: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-stats.is-visible .af-stat-card__mark::after {
    animation: none;
  }
}

/* =========================================================
   update_092 — hero copy size and responsive branch title
   ========================================================= */
.af-hero .af-copy,
.af-hero .af-copy p {
  font-size: 17px;
}

@media (max-width: 767px) {
  .af-hero__title-stack {
    width: 100%;
  }

  .af-hero__brand-lockup .af-eyebrow {
    font-size: clamp(15px, 4vw, 18px);
  }

  .af-hero__brand-lockup .af-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .af-hero__brand-lockup .af-title__accent[data-fit-branch-title] {
    font-size: inherit;
  }
}
/* =========================================================
   APPLICATION MODAL — VARIANT 2.4
   ========================================================= */
body.af-application-open {
  overflow: hidden;
}

/* update 112: unified modal controls and edge-to-edge gallery photos */
.af-media-lightbox__close,
.af-hall-lightbox__close,
.af-roomtour-modal__close {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
}

.af-media-lightbox__close span,
.af-hall-lightbox__close span,
.af-roomtour-modal__close span {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.af-media-lightbox__close span::before,
.af-media-lightbox__close span::after,
.af-hall-lightbox__close span::before,
.af-hall-lightbox__close span::after,
.af-roomtour-modal__close span::before,
.af-roomtour-modal__close span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: center;
}

.af-media-lightbox__close span::before,
.af-hall-lightbox__close span::before,
.af-roomtour-modal__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.af-media-lightbox__close span::after,
.af-hall-lightbox__close span::after,
.af-roomtour-modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.af-media-lightbox.is-photo .af-media-lightbox__content {
  display: grid;
  width: min(1100px, calc(100vw - 28px));
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
}

.af-media-lightbox.is-photo .af-media-lightbox__content img {
  display: block;
  width: 100%;
  height: min(74dvh, 680px);
  border-radius: inherit;
  background: transparent;
  object-fit: cover;
  object-position: 50% 50%;
}

.af-hall-lightbox__figure {
  width: min(1500px, 86vw);
  align-items: stretch;
}

.af-hall-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 50%;
}

body.af-media-open .af-desktop-header,
body.af-media-open .af-mobile-header,
body.af-no-scroll .af-desktop-header,
body.af-no-scroll .af-mobile-header,
body.af-roomtour-open .af-desktop-header,
body.af-roomtour-open .af-mobile-header {
  display: none !important;
}

@media (max-width: 767px) {
  .af-media-lightbox.is-photo {
    padding-inline: 0;
  }

  .af-media-lightbox.is-photo .af-media-lightbox__content {
    width: 100vw;
    border-radius: 0;
  }

  .af-media-lightbox.is-photo .af-media-lightbox__content img {
    height: min(64vw, 520px);
    border-radius: 0;
  }

  .af-hall-lightbox__figure {
    width: 100%;
    max-width: 100%;
  }

  .af-hall-lightbox__image {
    width: 100%;
    max-height: 78dvh;
  }
}

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

.af-application-modal {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.af-application-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.af-application-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 2, 8, .84);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  cursor: default;
}

.af-application-modal__dialog {
  position: relative;
  isolation: isolate;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid rgba(196, 119, 255, .55);
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(132deg, rgba(164, 76, 255, .18) 0 18%, transparent 18.2% 76%, rgba(112, 39, 221, .14) 76.2% 100%),
    radial-gradient(circle at 12% 8%, rgba(153, 72, 255, .22), transparent 34%),
    linear-gradient(145deg, rgba(22, 15, 35, .98), rgba(5, 4, 11, .99));
  box-shadow: 0 36px 110px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(18px) scale(.975);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}

.af-application-modal.is-open .af-application-modal__dialog {
  transform: none;
}

.af-application-modal__dialog::before,
.af-application-modal__dialog::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.af-application-modal__dialog::before {
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(182, 117, 255, .17) .7px, transparent .7px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 52%);
  mask-image: linear-gradient(135deg, #000, transparent 52%);
}

.af-application-modal__dialog::after {
  top: 0;
  right: 12%;
  width: 210px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a64cff, transparent);
  box-shadow: 0 0 20px rgba(166, 76, 255, .72);
}

.af-application-modal__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.af-application-modal__close:hover {
  border-color: rgba(182, 104, 255, .82);
  background: rgba(145, 63, 242, .2);
  transform: rotate(3deg);
}

.af-application-modal__close span::before,
.af-application-modal__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.af-application-modal__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.af-application-modal__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.af-application-modal__content {
  position: relative;
  padding: clamp(42px, 5.2vw, 68px) clamp(38px, 6.2vw, 76px) clamp(36px, 4.8vw, 58px);
}

.af-application-modal__header {
  max-width: 680px;
  margin: 0 auto 34px;
  text-align: center;
}

.af-application-modal__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #b362ff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .22em;
}

.af-application-modal__header h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.af-application-modal__header h2 span {
  color: #a44dff;
}

.af-application-modal__header p {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
  line-height: 1.55;
}

.af-application-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.af-application-field {
  display: grid;
  gap: 9px;
}

.af-application-field > span {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.af-application-field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(195, 135, 255, .35);
  border-radius: 12px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.af-application-field input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.af-application-field input:focus {
  border-color: #ad5cff;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 4px rgba(160, 72, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.af-application-form__consents {
  display: grid;
  gap: 14px;
  margin: 25px 0 28px;
}

.af-application-consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  cursor: pointer;
}

.af-application-consent input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.af-application-consent__box {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(202, 151, 255, .65);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.af-application-consent__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.6);
  transition: opacity 140ms ease, transform 140ms ease;
}

.af-application-consent input:checked + .af-application-consent__box {
  border-color: #a84cff;
  background: linear-gradient(135deg, #7123ff, #b143ff);
  box-shadow: 0 5px 16px rgba(125, 48, 255, .34);
}

.af-application-consent input:checked + .af-application-consent__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.af-application-consent input:focus-visible + .af-application-consent__box {
  box-shadow: 0 0 0 4px rgba(171, 86, 255, .2);
}

.af-application-consent__text {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.55;
}

.af-application-consent__text a {
  display: inline;
  color: #c481ff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(196, 129, 255, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.af-application-consent__text a:hover {
  color: #e1baff;
  text-decoration-color: currentColor;
}

.af-application-consent__text svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-application-form__submit {
  display: block;
  width: min(100%, 430px);
  min-height: 58px;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(100deg, #6926ff, #a43cff);
  box-shadow: 0 14px 34px rgba(116, 38, 255, .34), inset 0 1px 0 rgba(255,255,255,.25);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .04em;
  cursor: pointer;
}

.af-application-form__submit:hover {
  background: linear-gradient(100deg, #7733ff, #b24dff);
  box-shadow: 0 17px 40px rgba(116, 38, 255, .44), inset 0 1px 0 rgba(255,255,255,.3);
}

.af-application-form__status {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #d7a8ff;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 767px) {
  .af-application-modal {
    align-items: center;
    padding: 12px;
  }

  .af-application-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
    background:
      linear-gradient(137deg, rgba(159, 70, 255, .2) 0 17%, transparent 17.2% 78%, rgba(112, 39, 221, .12) 78.2% 100%),
      radial-gradient(circle at 5% 3%, rgba(153, 72, 255, .22), transparent 31%),
      linear-gradient(145deg, rgba(21, 14, 34, .99), rgba(5, 4, 11, .995));
  }

  .af-application-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .af-application-modal__content {
    padding: 34px 20px 24px;
  }

  .af-application-modal__header {
    margin-bottom: 24px;
    padding: 0 28px;
  }

  .af-application-modal__eyebrow {
    margin-bottom: 8px;
    font-size: 22px;
    letter-spacing: .18em;
  }

  .af-application-modal__header h2 {
    font-size: clamp(29px, 9vw, 39px);
  }

  .af-application-modal__header p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .af-application-form__fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .af-application-field {
    gap: 7px;
  }

  .af-application-field input {
    height: 52px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 16px;
  }

  .af-application-form__consents {
    gap: 12px;
    margin: 20px 0 22px;
  }

  .af-application-consent {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
  }

  .af-application-consent__box {
    width: 21px;
    height: 21px;
  }

  .af-application-consent__text {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .af-application-form__submit {
    min-height: 54px;
    font-size: 14px;
  }
}

@media (max-width: 380px), (max-height: 690px) {
  .af-application-modal {
    align-items: start;
    overflow-y: auto;
  }

  .af-application-modal__content {
    padding-top: 28px;
  }

  .af-application-modal__header {
    margin-bottom: 18px;
  }

  .af-application-modal__header p {
    margin-top: 8px;
  }

  .af-application-form__consents {
    margin: 16px 0 18px;
  }
}

.backform-form.backform--close {
  display: none;
}

.backform-success,
.backform-error {
  display: none;
  max-width: 620px;
  margin: 10px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(169, 86, 255, 0.45);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(39, 19, 61, 0.96), rgba(8, 6, 15, 0.98));
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(55, 20, 91, 0.35);
}

.backform-success.backform-success--open,
.backform-error.backform-success--open {
  display: block;
}

.backform-success p,
.backform-error p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
}

.backform-success #respPhoneSaved {
  color: #b566ff;
  font-size: 25px;
}

.backform-error #backform-error-text {
  color: #ff7a98;
  font-weight: 700;
}

.backform-call,
.backform-backbut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-width: min(100%, 320px);
  min-height: 56px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.af-application-form__submit.backform-but-disabled,
.af-application-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: saturate(0.35);
  box-shadow: none;
  transform: none;
}

.backform-alternative-call {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 22px;
  color: #d8d2e2;
  font-size: 15px;
  line-height: 1.45;
}

.backform-alternative-call a {
  color: #c47aff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.backform-alternative-call a:hover,
.backform-alternative-call a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .af-application-modal,
  .af-application-modal__dialog {
    transition: none;
  }
}

/* =========================================================
   update_111 — stable program transition and mobile swipes
   ========================================================= */
.af-coach-track,
.af-hall-gallery__stage,
.af-trial-track,
.af-media-mobile-photo-track,
.af-media-mobile-video-track {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}

.af-program .af-card__content::after {
  display: none;
  content: none;
}

.af-program .af-card__photo {
  isolation: isolate;
}

.af-program .af-card__photo::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 54px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent), white 93%) 0%,
    rgba(255,255,255,.96) 18%,
    rgba(255,255,255,.76) 38%,
    rgba(255,255,255,.24) 64%,
    transparent 78%);
  content: "";
  pointer-events: none;
}

.af-program .af-card__photo img {
  z-index: 1;
}

@media (max-width: 767px) {
  .af-program .af-card__photo::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 38px;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent), white 93%) 0%,
      rgba(255,255,255,.92) 18%,
      rgba(255,255,255,.54) 48%,
      transparent 76%);
  }
}

/* =========================================================
   update_113 — mathematically centered menu and map guard
   ========================================================= */
.af-menu-button span,
.af-menu-button::before,
.af-menu-button::after {
  left: 50%;
  width: 24px;
  height: 3px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.af-menu-button span {
  top: 50%;
}

.af-menu-button::before {
  top: calc(50% - 7px);
}

.af-menu-button::after {
  top: calc(50% + 7px);
}

.af-menu-button[aria-expanded="true"] span {
  top: 50%;
  opacity: 0;
}

.af-menu-button[aria-expanded="true"]::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.af-menu-button[aria-expanded="true"]::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.af-map-interaction {
  position: relative;
  isolation: isolate;
}

.af-map-interaction iframe {
  display: block;
}

.af-map-interaction__shield,
.af-map-interaction__release {
  display: none;
}

@media (max-width: 1023px) {
  .af-map-interaction iframe {
    pointer-events: none;
  }

  .af-map-interaction.is-interactive iframe {
    pointer-events: auto;
  }

  .af-map-interaction__shield {
    position: absolute;
    z-index: 6;
    inset: 0;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 22px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(16, 10, 25, .04), rgba(16, 10, 25, .16));
    cursor: pointer;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }

  .af-map-interaction__shield span {
    display: inline-flex;
    max-width: min(88%, 330px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    background: rgba(13, 8, 23, .82);
    box-shadow: 0 12px 32px rgba(15, 7, 28, .3);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
  }

  .af-map-interaction.is-interactive .af-map-interaction__shield {
    display: none;
  }

  .af-map-interaction.is-interactive .af-map-interaction__release {
    position: absolute;
    z-index: 8;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 7, 21, .9);
    box-shadow: 0 10px 28px rgba(12, 5, 24, .34);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
}

/* =========================================================
   update_114 — fresh mobile hero asset, exact contacts anchor,
   borderless Yandex map
   ========================================================= */
.landingpage-block7-cont-map {
  border: 0;
}

.landingpage-block7-cont-map > div,
.landingpage-block7-cont-map iframe {
  border: 0 !important;
  outline: 0;
}

.af-footer-contacts#contacts {
  scroll-margin-top: 82px;
}

@media (max-width: 1023px) {
  .af-footer-contacts#contacts {
    scroll-margin-top: 18px;
  }
}

/* =========================================================
   update_115 — exact centering for every gallery chevron
   ========================================================= */
.af-media-lightbox__arrow,
.af-hall-gallery__arrow,
.af-hall-lightbox__arrow {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.af-media-lightbox__arrow > span,
.af-hall-gallery__arrow > span,
.af-hall-lightbox__arrow > span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.af-media-lightbox__arrow--prev > span,
.af-hall-gallery__arrow--prev > span,
.af-hall-lightbox__arrow--prev > span {
  transform: rotate(-135deg);
}

.af-media-lightbox__arrow--next > span,
.af-hall-gallery__arrow--next > span,
.af-hall-lightbox__arrow--next > span {
  transform: rotate(45deg);
}

/* =========================================================
   update_1179 — stable hall heading between tablet and desktop
   ========================================================= */
@media (min-width: 768px) and (max-width: 1100px) {
  .af-hall-gallery__heading.af-heading-v2 {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "hall-title hall-counter"
      "hall-description hall-description";
    row-gap: 18px;
    column-gap: 24px;
  }

  .af-hall-gallery__heading.af-heading-v2 > .af-heading-v2__title {
    grid-area: hall-title;
  }

  .af-hall-gallery__heading.af-heading-v2 > p {
    grid-area: hall-description;
    padding: 0;
    border-left: 0;
  }

  .af-hall-gallery__heading.af-heading-v2 .af-hall-gallery__counter {
    grid-area: hall-counter;
  }

  .af-hall-gallery__heading.af-heading-v2 .af-heading-v2__kicker {
    white-space: nowrap;
  }
}

@media (min-width: 1101px) {
  .af-hall-gallery__heading.af-heading-v2 {
    grid-template-columns: minmax(360px, .92fr) minmax(340px, 1.08fr) auto;
    column-gap: clamp(28px, 3vw, 52px);
  }

  .af-hall-gallery__heading.af-heading-v2 .af-heading-v2__kicker {
    white-space: nowrap;
  }
}


/* =========================================================
   update_117_22 — mobile media video captions
   ========================================================= */
@media (max-width: 767px) {
  .af-media-mobile-video > .af-media-mobile-video__title {
    position: absolute;
    z-index: 4;
    right: 16px;
    bottom: 36px;
    left: 16px;
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, .84);
    font-size: clamp(13px, 3.7vw, 16px);
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    pointer-events: none;
  }
}
