/* Feniks Swim — compiled from assets/src/scss/main.scss
   Tokens: AURADESIGN.md / animation-motion-map.md
   Theme: fenix-swim | Школа плавания Феникс, Усинск
*/

:root {
  --fenix-primary: #C7451F;
  --fenix-primary-hover: #A33818;
  --fenix-primary-bright: #E4572E;
  --fenix-on-primary: #FFFFFF;
  --fenix-navy: #1B3A6B;
  --fenix-navy-hover: #152E56;
  --fenix-on-navy: #FFFFFF;
  --fenix-gold: #E8B84A;
  --fenix-on-gold: #102033;
  --fenix-pool: #1E90C6;
  --fenix-ice: #F3F7FB;
  --fenix-ink: #102033;
  --fenix-surface-lowest: #FFFFFF;
  --fenix-surface-low: #E8F1F8;
  --fenix-surface-container: #D4E6F2;
  --fenix-surface-high: #122A4D;
  --fenix-on-surface-high: #FFFFFF;
  --fenix-outline: #6E879C;
  --fenix-outline-variant: #D5E2EC;
  --fenix-error: #C62828;
  --fenix-on-error: #FFFFFF;
  --fenix-hero-scrim: rgba(16, 32, 51, 0.78);
  --fenix-header-bg: rgba(243, 247, 251, 0.92);
  --fenix-font-display: "Unbounded", Manrope, system-ui, sans-serif;
  --fenix-font-body: "Manrope", system-ui, sans-serif;
  --fenix-radius-sm: 6px;
  --fenix-radius: 12px;
  --fenix-radius-md: 16px;
  --fenix-radius-lg: 24px;
  --fenix-radius-xl: 32px;
  --fenix-radius-full: 9999px;
  --fenix-space-xs: 4px;
  --fenix-space-sm: 12px;
  --fenix-space-md: 24px;
  --fenix-space-lg: 40px;
  --fenix-space-xl: 64px;
  --fenix-space-xxl: 96px;
  --fenix-gutter: 24px;
  --fenix-content-max: 1180px;
  --fenix-hero-min: 640px;
  --fenix-header-h: 80px;
  --fenix-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fenix-duration-fast: 160ms;
  --fenix-duration: 240ms;
  --fenix-duration-slow: 480ms;
  --fenix-shadow-card: 0 12px 32px rgba(16, 32, 51, 0.08);
  --fenix-shadow-card-hover: 0 18px 40px rgba(16, 32, 51, 0.14);
  --fenix-shadow-cta: 0 10px 24px rgba(199, 69, 31, 0.28);
  --fenix-shadow-nav: 0 8px 24px rgba(16, 32, 51, 0.06);
  --fenix-z-hero-object: 20;
  --fenix-z-wave: 25;
  --fenix-z-header: 40;
  --fenix-z-modal: 60;
  --fenix-z-cookie: 70;
  --fenix-focus-gold: 2px solid #E8B84A;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--fenix-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--fenix-ink);
  background: var(--fenix-ice);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
  max-width: 100%;
}

a {
  color: var(--fenix-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fenix-primary-hover);
}

h1, h2, h3, h4 {
  font-family: var(--fenix-font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fenix-navy);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  font-family: var(--fenix-font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* —— Focus: gold + navy on ice (gold-only FAILS 1.71). Gold-only OK on navy. —— */
:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"])):focus {
  outline: none;
}

:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: var(--fenix-focus-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--fenix-navy);
}

.fenix-header :focus-visible,
.site-footer :focus-visible,
.fenix-hero :focus-visible,
.fenix-band-navy :focus-visible,
.fenix-surface-high :focus-visible,
[data-fenix-wave="navy"] ~ * :focus-visible {
  box-shadow: none;
}

.skip-link {
  position: absolute;
  left: var(--fenix-space-md);
  top: -100px;
  z-index: calc(var(--fenix-z-cookie) + 1);
  background: var(--fenix-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--fenix-radius-full);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: #fff;
  outline: var(--fenix-focus-gold);
  outline-offset: 3px;
  box-shadow: none;
}

.visually-hidden,
.fenix-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: 0 !important;
  top: 0 !important;
  pointer-events: none !important;
}
.visually-hidden *,
.fenix-hp * {
  max-width: 1px !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.fenix-wrap {
  width: min(100% - 48px, var(--fenix-content-max));
  margin-inline: auto;
}

@media (max-width: 479px) {
  .fenix-wrap {
    width: min(100% - 32px, var(--fenix-content-max));
  }
}

.site-main {
  display: block;
  min-height: 40vh;
}

#signup,
#deti,
#vzroslye,
#trenery,
#kontakty,
#sostav,
#primary {
  scroll-margin-top: calc(var(--fenix-header-h) + 20px);
}

/* —— Header —— */
.fenix-header {
  position: sticky;
  top: 0;
  z-index: var(--fenix-z-header);
  height: var(--fenix-header-h);
  background: var(--fenix-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--fenix-shadow-nav);
  border-bottom: 1px solid var(--fenix-outline-variant);
}

.fenix-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--fenix-header-h);
  width: min(100% - 48px, var(--fenix-content-max));
  margin-inline: auto;
}

@media (max-width: 479px) {
  .fenix-header__inner {
    width: min(100% - 32px, var(--fenix-content-max));
  }
}

.fenix-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fenix-navy);
  flex-shrink: 0;
}

.fenix-logo picture {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
}

.fenix-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.fenix-logo__name {
  font-family: var(--fenix-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 7em;
}

@media (max-width: 899px) {
  .fenix-logo__name {
    display: block;
    font-size: 15px;
    max-width: none;
    white-space: nowrap;
  }
}

.fenix-nav {
  flex: 1;
}

.fenix-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
}

.fenix-nav a {
  color: var(--fenix-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fenix-nav a:hover,
.fenix-nav .current-menu-item > a,
.fenix-nav [aria-current="page"] {
  color: var(--fenix-primary);
}

.fenix-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.fenix-tel {
  color: var(--fenix-navy);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fenix-tel:hover {
  color: var(--fenix-primary);
}

.fenix-tel--icon {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--fenix-radius-full);
  background: var(--fenix-surface-low);
  color: var(--fenix-navy);
}

.fenix-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.fenix-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fenix-navy);
  border-radius: 2px;
}

/* —— Buttons / CTA —— */
.fenix-btn,
[data-fenix-cta="primary"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--fenix-radius-full);
  background: var(--fenix-primary);
  color: var(--fenix-on-primary);
  font-family: var(--fenix-font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--fenix-shadow-cta);
  cursor: pointer;
  transition: background var(--fenix-duration) var(--fenix-ease),
              transform var(--fenix-duration) var(--fenix-ease),
              box-shadow var(--fenix-duration) var(--fenix-ease);
  white-space: nowrap;
}

.fenix-btn:hover,
[data-fenix-cta="primary"]:hover {
  background: var(--fenix-primary-hover);
  color: var(--fenix-on-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.fenix-btn:active,
[data-fenix-cta="primary"]:active {
  transform: translateY(0);
}

.fenix-btn:disabled,
.fenix-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.fenix-btn--ghost,
[data-fenix-cta="secondary"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 16px 28px;
  border-radius: var(--fenix-radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--fenix-on-navy);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
}

.fenix-btn--ghost:hover,
[data-fenix-cta="secondary"]:hover {
  color: #fff;
  border-color: #fff;
}

.fenix-btn-vk {
  gap: 10px;
  background: #0077ff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 119, 255, 0.28);
}
.fenix-btn-vk:hover {
  background: #0066dd;
  color: #fff;
}
.fenix-btn-vk__icon {
  flex: 0 0 22px;
}
.fenix-nowrap,
a[href^="tel:"],
a[href^="mailto:"] {
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.fenix-cta__short {
  display: none;
}

@media (max-width: 1099px) {
  .fenix-header .fenix-cta__full {
    display: none;
  }
  .fenix-header .fenix-cta__short {
    display: inline;
  }
  .fenix-header [data-fenix-cta="primary"] {
    padding: 16px 20px;
  }
}

@media (max-width: 899px) {
  .fenix-header__inner {
    gap: 10px;
  }
  .fenix-burger {
    display: inline-flex;
    margin-left: 0;
    order: 5;
    z-index: calc(var(--fenix-z-header) + 2);
  }
  .fenix-header__actions {
    order: 4;
    margin-left: auto;
    gap: 8px;
  }
  .fenix-tel--text {
    display: inline-flex;
    font-size: 13px;
    letter-spacing: -0.02em;
  }
  .fenix-tel--icon {
    display: none;
  }
  .fenix-nav {
    position: fixed;
    top: var(--fenix-header-h);
    bottom: 0;
    left: auto;
    right: 0;
    width: min(86vw, 320px);
    max-width: calc(100vw - 48px);
    height: calc(100dvh - var(--fenix-header-h));
    background: var(--fenix-ice);
    box-shadow: -12px 0 32px rgba(16, 32, 51, 0.14);
    padding: 12px 12px 24px;
    z-index: var(--fenix-z-header);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-left: 1px solid var(--fenix-outline-variant);
    display: block;
    flex: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }
  body.fenix-nav-open .fenix-nav,
  .fenix-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .fenix-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .fenix-nav li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .fenix-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.25;
    text-align: left;
  }
  .fenix-nav a:hover,
  .fenix-nav .current-menu-item > a,
  .fenix-nav [aria-current="page"] {
    background: rgba(27, 58, 107, 0.06);
  }
  body.fenix-nav-open {
    overflow: hidden;
  }
  body.fenix-nav-open::before {
    content: "";
    position: fixed;
    inset: var(--fenix-header-h) 0 0 0;
    background: rgba(16, 32, 51, 0.42);
    z-index: calc(var(--fenix-z-header) - 1);
    pointer-events: auto;
  }
  body.fenix-nav-open .fenix-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.fenix-nav-open .fenix-burger span:nth-child(2) {
    opacity: 0;
  }
  body.fenix-nav-open .fenix-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .fenix-burger span {
    transition: none;
  }
}

@media (max-width: 479px) {
  .fenix-header [data-fenix-cta="primary"] {
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  .fenix-logo {
    gap: 8px;
  }
  .fenix-logo__name {
    font-size: 14px;
  }
  .fenix-tel--text {
    font-size: 12px;
  }
  .fenix-logo picture,
  .fenix-logo img {
    width: 40px;
    height: 40px;
  }
}

/* —— Wave + hairline + phoenix (hooks for PAGE BUILDER / MOTION) —— */
.fenix-wave,
[data-fenix-wave] {
  display: block;
  width: 100%;
  height: 88px;
  line-height: 0;
  position: relative;
  z-index: var(--fenix-z-wave);
  pointer-events: none;
  overflow: hidden;
  margin: 0;
  border: 0;
  background: transparent;
}

.fenix-wave svg {
  width: 100%;
  height: calc(100% + 2px);
  display: block;
  margin: 0;
  vertical-align: top;
  position: relative;
  top: -1px;
  shape-rendering: geometricPrecision;
}

/* 1px seam fix: overlap wave + next band, no extra layers */
[data-fenix-wave="surface-high"] {
  background: transparent;
  margin-bottom: -2px;
}
[data-fenix-wave="surface-high"] + .fenix-surface-high,
[data-fenix-wave="navy"] + .fenix-band-navy {
  margin-top: -2px;
  padding-top: calc(var(--fenix-space-xl) + 2px);
}
[data-fenix-wave="ice"] {
  background: transparent;
}
[data-fenix-wave="footer"] {
  background: transparent;
  margin-bottom: -1px;
}

[data-fenix-wave="ice"] { height: 88px; }
[data-fenix-wave="surface-high"] { height: 72px; }
[data-fenix-wave="navy"],
[data-fenix-wave="footer"] { height: 80px; }

@media (max-width: 767px) {
  .fenix-wave,
  [data-fenix-wave],
  [data-fenix-wave="ice"],
  [data-fenix-wave="surface-high"],
  [data-fenix-wave="navy"],
  [data-fenix-wave="footer"] {
    height: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  [data-fenix-wave="ice"] { height: 64px; }
  [data-fenix-wave="surface-high"] { height: 56px; }
  [data-fenix-wave="navy"],
  [data-fenix-wave="footer"] { height: 56px; }
}

[data-fenix-hairline] {
  display: flex;
  justify-content: center;
  margin: 0 auto 8px;
}

[data-fenix-hairline]::before {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--fenix-gold);
  border-radius: 2px;
}

@media (max-width: 767px) {
  [data-fenix-hairline] {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  [data-fenix-hairline]::before {
    width: 100%;
  }
}

.fenix-phoenix,
[data-fenix-phoenix] {
  position: absolute;
  z-index: var(--fenix-z-hero-object);
  right: 5%;
  bottom: 8%;
  width: min(22vw, 280px);
  pointer-events: none;
}

.fenix-phoenix img,
[data-fenix-phoenix] img {
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .fenix-phoenix,
  [data-fenix-phoenix] {
    animation: fenix-phoenix-float 6s var(--fenix-ease) infinite;
    will-change: transform;
  }
}

@keyframes fenix-phoenix-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 767px) {
  .fenix-phoenix,
  [data-fenix-phoenix] {
    width: 40vw;
    right: 0;
    bottom: -8%;
    animation: none;
    will-change: auto;
  }
}

/* —— Cards —— */
.fenix-card,
[data-fenix-card="advantage"],
[data-fenix-card="trainer-text"],
[data-fenix-card="post"],
[data-fenix-card="contact"] {
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  padding: var(--fenix-space-lg);
  box-shadow: var(--fenix-shadow-card);
  transition: transform var(--fenix-duration) var(--fenix-ease),
              box-shadow var(--fenix-duration) var(--fenix-ease);
}

[data-fenix-card="advantage"]:hover,
[data-fenix-card="advantage"]:focus-visible,
[data-fenix-card="post"]:hover,
[data-fenix-card="post"]:focus-visible,
[data-fenix-card="trainer-text"]:hover,
[data-fenix-card="contact"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--fenix-shadow-card-hover);
}

[data-fenix-card="program"] {
  border-radius: var(--fenix-radius-md);
  overflow: hidden;
  box-shadow: var(--fenix-shadow-card);
  transition: box-shadow var(--fenix-duration) var(--fenix-ease);
}

[data-fenix-card="program"]:hover {
  box-shadow: var(--fenix-shadow-card-hover);
}

[data-fenix-card="trainer-photo"] {
  margin: 0;
  border-radius: var(--fenix-radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
  isolation: isolate;
  transition: transform var(--fenix-duration) var(--fenix-ease),
              box-shadow var(--fenix-duration) var(--fenix-ease);
}

[data-fenix-card="trainer-photo"] picture {
  display: block;
  width: 100%;
  height: 100%;
}

[data-fenix-card="trainer-photo"] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

[data-fenix-card="trainer-photo"]:hover,
[data-fenix-card="trainer-photo"]:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--fenix-shadow-card-hover);
}

[data-fenix-card="post"] {
  padding: 0;
  overflow: hidden;
}

[data-fenix-card="post"] img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

[data-fenix-card="post"] .fenix-card__body {
  padding: 20px 24px 24px;
}

.fenix-grid-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.fenix-grid-programs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fenix-team-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1099px) {
  .fenix-team-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
  }
  .fenix-grid-programs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .fenix-team-photos {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .fenix-team-strip {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-top: 16px;
    padding-bottom: 8px;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
  }
  .fenix-team-strip [data-fenix-card="trainer-photo"] {
    flex: 0 0 72%;
    width: 72%;
    max-width: 260px;
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* —— Forms —— */
.fenix-form {
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  padding: var(--fenix-space-lg);
  box-shadow: var(--fenix-shadow-card);
}

.fenix-field,
[data-fenix-field] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--fenix-outline);
  border-radius: var(--fenix-radius);
  background: var(--fenix-surface-lowest);
  color: var(--fenix-ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color var(--fenix-duration-fast) var(--fenix-ease);
}

textarea.fenix-field,
textarea[data-fenix-field] {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.fenix-field:focus-visible,
[data-fenix-field]:focus-visible {
  border-color: var(--fenix-navy);
  outline: var(--fenix-focus-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--fenix-navy);
}

.fenix-field.is-error,
[data-fenix-field][aria-invalid="true"] {
  border-color: var(--fenix-error);
}

.fenix-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--fenix-ink);
}

.fenix-hint,
.fenix-error {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.fenix-hint {
  color: var(--fenix-navy);
  font-weight: 500;
}

.fenix-error {
  color: var(--fenix-error);
  font-weight: 700;
}

.fenix-form__row {
  margin-bottom: 16px;
}

.fenix-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.fenix-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--fenix-primary);
}

.fenix-form__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--fenix-radius);
  font-weight: 600;
}

.fenix-form__status.is-success {
  background: var(--fenix-surface-low);
  color: var(--fenix-navy);
}

.fenix-form__status.is-error {
  background: #fdecea;
  color: var(--fenix-error);
}

.fenix-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.fenix-form-side {
  border-radius: var(--fenix-radius-md);
  overflow: hidden;
}

.fenix-form-side picture {
  display: block;
  width: 100%;
  height: 100%;
}

.fenix-form-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

@media (max-width: 1099px) {
  .fenix-form-split {
    grid-template-columns: 1fr;
  }
  .fenix-form-side {
    max-height: 260px;
  }
  .fenix-form-side img {
    min-height: 200px;
    max-height: 260px;
  }
}
@media (max-width: 767px) {
  .fenix-form {
    padding: 16px 12px 18px;
  }
  .fenix-form .fenix-field,
  .fenix-form [data-fenix-field],
  .fenix-form .fenix-btn,
  .fenix-form [data-fenix-cta="primary"] {
    width: 100%;
    max-width: none;
  }
  .fenix-btn,
  [data-fenix-cta="primary"] {
    width: 100%;
  }
}

/* —— Hero / page-hero shells (PAGE BUILDER fills copy) —— */
.fenix-hero {
  position: relative;
  min-height: max(var(--fenix-hero-min), calc(100svh - var(--fenix-header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--fenix-navy);
}

.fenix-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fenix-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 42%;
}

@media (max-width: 767px) {
  .fenix-hero__media img {
    object-position: 10% 8%;
  }
}

.fenix-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(16, 32, 51, 0.18) 0%, rgba(16, 32, 51, 0.22) 32%, rgba(16, 32, 51, 0.58) 68%, rgba(16, 32, 51, 0.78) 100%);
}

.fenix-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--fenix-content-max));
  margin-inline: auto;
  padding: 48px 0 80px;
  color: #fff;
}
.fenix-hero__content .fenix-eyebrow,
.fenix-hero__content h1,
.fenix-hero__content .fenix-hero__subtitle,
.fenix-hero__content .fenix-hero__lead,
.fenix-hero__content .fenix-hero__actions {
  max-width: 38rem;
  margin-left: auto;
}

.fenix-hero__content h1 {
  color: #fff;
}

.fenix-eyebrow {
  font-family: var(--fenix-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fenix-gold);
  margin-bottom: 12px;
  display: block;
}

.fenix-hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 500;
}

.fenix-page-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  background: var(--fenix-navy);
  color: #fff;
  overflow: hidden;
  padding: 40px 0 32px;
}

.fenix-page-hero h1 {
  color: #fff;
}

.fenix-band-navy,
.fenix-surface-high {
  background: var(--fenix-surface-high);
  color: var(--fenix-on-surface-high);
}

.fenix-band-navy h2,
.fenix-surface-high h2 {
  color: #fff;
}

.fenix-section {
  padding: var(--fenix-space-xl) 0;
}

.site-main > .fenix-page-hero + [data-fenix-wave] + .fenix-section,
.site-main > .fenix-page-hero + [data-fenix-wave] + .fenix-section--lg {
  padding-top: 24px;
}

.fenix-section--lg {
  padding: var(--fenix-space-xl) 0;
}

@media (max-width: 1099px) {
  .fenix-hero__content {
    width: min(100% - 48px, var(--fenix-content-max));
  }
  .fenix-hero__content .fenix-eyebrow,
  .fenix-hero__content h1,
  .fenix-hero__content .fenix-hero__subtitle,
  .fenix-hero__content .fenix-hero__lead {
    max-width: 36rem;
  }
}

@media (max-width: 767px) {
  /* Stable viewport height (svh only — dvh resizes while scrolling and “zooms” the cover) */
  .fenix-hero {
    --fenix-hero-min: 0px;
    min-height: calc(100svh - var(--fenix-header-h));
    align-items: flex-end;
    padding-top: 12px;
    padding-bottom: 24px;
    box-sizing: border-box;
  }
  .fenix-hero__media,
  .fenix-hero__media picture,
  .fenix-hero__media img {
    transform: none;
    will-change: auto;
  }
  .fenix-wrap.fenix-hero__content,
  .fenix-hero__content {
    width: min(100% - 32px, var(--fenix-content-max));
    max-width: none;
    margin-inline: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-sizing: border-box;
  }
  .fenix-hero__content .fenix-eyebrow,
  .fenix-hero__content h1,
  .fenix-hero__content .fenix-hero__subtitle,
  .fenix-hero__content .fenix-hero__lead,
  .fenix-hero__content .fenix-hero__actions {
    max-width: none;
    margin-left: 0;
  }
  .fenix-hero__content h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
    margin-bottom: 10px;
  }
  .fenix-hero__subtitle {
    display: block;
    font-size: 16px;
  }
  .fenix-hero__lead {
    font-size: 15px;
    margin-bottom: 0;
    display: block;
    -webkit-line-clamp: unset;
    max-width: none;
  }
  .fenix-hero__actions {
    margin-top: 18px;
    gap: 10px;
  }
  .fenix-hero__actions .fenix-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
  .fenix-hero__scrim {
    background: linear-gradient(90deg, rgba(16, 32, 51, 0.28) 0%, rgba(16, 32, 51, 0.22) 40%, rgba(16, 32, 51, 0.45) 100%);
  }
  /* Lift CTA above compact cookie bar */
  body.fenix-cookie-open .fenix-hero {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
}

/* —— Footer —— */
.site-footer {
  background: var(--fenix-navy);
  color: #fff;
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fenix-gold);
}

.site-footer .fenix-wave {
  background: transparent;
  margin-top: -1px;
}

.fenix-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding: 24px 0 48px;
}

.fenix-footer__brand {
  font-family: var(--fenix-font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #fff;
}

.fenix-footer__nap {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.fenix-footer__nap a {
  color: #fff;
}

.fenix-footer h2 {
  font-family: var(--fenix-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fenix-gold);
  margin: 0 0 12px;
}

.fenix-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fenix-footer li {
  margin-bottom: 8px;
}

.fenix-footer li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fenix-copy {
  border-top: 1px solid rgba(232, 184, 74, 0.25);
  padding: 16px 0 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.fenix-copy__line,
.fenix-copy__legal {
  margin: 0;
}

.fenix-copy__legal {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

@media (max-width: 899px) {
  .fenix-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 559px) {
  .fenix-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Cookie banner —— */
.fenix-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--fenix-z-cookie);
  background: var(--fenix-surface-lowest);
  color: var(--fenix-ink);
  border-radius: var(--fenix-radius-md);
  box-shadow: var(--fenix-shadow-card-hover);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
  max-height: none;
}

.fenix-cookie.is-visible {
  display: flex;
}

body.fenix-cookie-open {
  padding-bottom: 88px;
}

.fenix-cookie p {
  margin: 0;
  font-size: 14px;
}

.fenix-cookie a {
  color: var(--fenix-primary);
}

.fenix-cookie__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .fenix-cookie {
    flex-direction: column;
    align-items: stretch;
    left: 10px;
    right: 10px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px;
    gap: 6px;
    max-height: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.18);
  }
  .fenix-cookie p {
    font-size: 11px;
    line-height: 1.3;
  }
  .fenix-cookie [data-fenix-cta] {
    width: 100%;
    height: 36px;
    min-height: 36px;
    font-size: 13px;
    padding: 0 12px;
  }
  /* Cookie is fixed — no body spacer that peeks as white under hero */
  body.fenix-cookie-open {
    padding-bottom: 0;
  }
}

/* —— Legal —— */
.fenix-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--fenix-space-xl) 0 var(--fenix-space-xxl);
}

.fenix-legal h1 {
  margin-bottom: 24px;
}

.fenix-legal h2 {
  margin-top: 1.6em;
}

/* —— 404 / search / stubs —— */
.fenix-stub,
.fenix-utility {
  padding: var(--fenix-space-xxl) 0;
  max-width: 720px;
}

.fenix-searchform {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.fenix-searchform input[type="search"] {
  flex: 1;
}

/* —— Sticky mobile CTA (hidden on zapisatsya) —— */
.fenix-sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .fenix-sticky-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 35;
  }
  .fenix-sticky-cta [data-fenix-cta="primary"] {
    width: 100%;
  }
  body.page-template-page-zapisatsya .fenix-sticky-cta,
  body.fenix-on-zapisatsya .fenix-sticky-cta,
  body.fenix-cookie-open .fenix-sticky-cta {
    display: none;
  }
}

/* —— FAQ —— */
[data-fenix-faq] {
  border-bottom: 0;
  padding: 0;
}

[data-fenix-faq] summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--fenix-font-body);
  color: var(--fenix-navy);
}

/* —— Icons inline SVG —— */
.fenix-icon {
  width: 40px;
  height: 40px;
  color: var(--fenix-navy);
}

.fenix-icon--gold {
  color: var(--fenix-gold);
}

/* —— Reduced motion LOCK —— */
@media (prefers-reduced-motion: reduce) {
  .fenix-phoenix,
  [data-fenix-phoenix] {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  [data-fenix-cta="primary"]:hover,
  [data-fenix-cta="primary"]:active,
  .fenix-btn:hover,
  [data-fenix-card="advantage"]:hover,
  [data-fenix-card="advantage"]:focus-visible,
  [data-fenix-card="post"]:hover,
  [data-fenix-card="trainer-text"]:hover,
  [data-fenix-card="trainer-photo"]:hover,
  [data-fenix-card="trainer-photo"]:focus-within,
  [data-fenix-card="contact"]:hover {
    transform: none !important;
  }

  .fenix-nav,
  .fenix-nav-panel,
  [data-fenix-nav-panel] {
    transition: none !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .fenix-nav.is-open,
  .fenix-nav-panel.is-open,
  [data-fenix-nav-panel].is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  [data-fenix-faq] {
    transition: none;
  }
}

/* —— PAGE BUILDER sections (front-page / inner pages) —— */
.fenix-hero {
  overflow: visible;
}
.fenix-hero__media {
  overflow: hidden;
  border-radius: 0;
}
.fenix-hero__media picture,
.fenix-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 42%;
}
@media (max-width: 767px) {
  .fenix-hero__media picture,
  .fenix-hero__media img {
    object-position: 10% 8%;
  }
}
.fenix-hero__content {
  z-index: 21;
}
.fenix-hero__subtitle {
  font-family: var(--fenix-font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 12px;
}
.fenix-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.fenix-hero .fenix-phoenix,
.fenix-hero [data-fenix-phoenix] {
  z-index: var(--fenix-z-hero-object);
  pointer-events: none;
}
.fenix-hero + .fenix-wave,
.fenix-hero + [data-fenix-wave] {
  position: relative;
  z-index: var(--fenix-z-wave);
  margin-top: -88px;
  margin-bottom: -2px;
  background: transparent;
  overflow: hidden;
}
.fenix-hero + [data-fenix-wave] + .fenix-advantages {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

@media (max-width: 767px) {
  .fenix-hero + .fenix-wave,
  .fenix-hero + [data-fenix-wave] {
    margin-top: -40px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .fenix-hero + .fenix-wave,
  .fenix-hero + [data-fenix-wave] {
    margin-top: -64px;
  }
}

.fenix-section-num {
  font-family: var(--fenix-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fenix-gold);
  margin: 0 0 8px;
}
.fenix-section-num--gold {
  color: var(--fenix-gold);
}
.fenix-lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 40rem;
}
.fenix-mid-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.fenix-adv-note {
  margin: 0;
  font-size: 15px;
}
.fenix-adv-note a {
  color: var(--fenix-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 58, 107, 0.28);
  text-underline-offset: 0.2em;
}
.fenix-adv-note a:hover {
  color: var(--fenix-primary);
  border-bottom-color: var(--fenix-primary);
}
.fenix-adv-link {
  margin-top: 24px;
}

.fenix-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fenix-related-links__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--fenix-radius-full);
  background: var(--fenix-surface-lowest);
  color: var(--fenix-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--fenix-shadow-card);
  border: 1px solid var(--fenix-outline-variant);
  transition: color var(--fenix-duration) var(--fenix-ease), border-color var(--fenix-duration) var(--fenix-ease), transform var(--fenix-duration) var(--fenix-ease);
}
.fenix-related-links__item:hover {
  color: var(--fenix-primary);
  border-color: rgba(199, 69, 31, 0.35);
  transform: translateY(-1px);
}

.fenix-prose {
  max-width: none;
}
.fenix-prose > p,
.fenix-prose > ul,
.fenix-prose > ol {
  max-width: 66ch;
}
.fenix-prose p + p,
.fenix-prose p + h2,
.fenix-prose h2 + p {
  margin-top: 1em;
}
.fenix-answer {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: var(--fenix-ink);
}
.fenix-geo-def {
  font-size: 16px;
  color: var(--fenix-navy);
}
.fenix-geo-grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.fenix-geo-grid--1 {
  grid-template-columns: 1fr;
}
.fenix-geo-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fenix-geo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fenix-geo-card {
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  padding: 28px 24px;
  box-shadow: var(--fenix-shadow-card);
  border: 1px solid var(--fenix-outline-variant);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.fenix-geo-card__num {
  margin: 0;
  font-family: var(--fenix-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fenix-gold);
  letter-spacing: -0.04em;
}
.fenix-geo-card__q {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: var(--fenix-navy);
}
.fenix-geo-card a {
  color: var(--fenix-primary);
  font-weight: 600;
}
.fenix-geo-card__cta {
  margin: 4px 0 0;
}
.fenix-for-whom-qa .fenix-lead {
  max-width: 40rem;
}

/* —— Запись: tighter stack + pack checklist —— */
[data-fenix-page="zapisatsya"] .fenix-signup.fenix-section--lg {
  padding: 28px 0 20px;
}
[data-fenix-page="zapisatsya"] .fenix-section {
  padding: 36px 0;
}
[data-fenix-page="zapisatsya"] .fenix-section + .fenix-section,
[data-fenix-page="zapisatsya"] .fenix-signup + .fenix-section {
  padding-top: 20px;
}
[data-fenix-page="zapisatsya"] .fenix-zap-block .fenix-lead {
  max-width: 42rem;
  margin-bottom: 0;
}
[data-fenix-page="zapisatsya"] .fenix-zap-block .fenix-geo-grid,
[data-fenix-page="zapisatsya"] .fenix-answers .fenix-geo-grid {
  margin-top: 20px;
}
.fenix-pack-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.fenix-pack-item {
  margin: 0;
  padding: 18px 16px;
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  box-shadow: var(--fenix-shadow-card);
  border: 1px solid var(--fenix-outline-variant);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--fenix-navy);
  text-align: center;
}
.fenix-zap-note {
  margin: 16px 0 0;
  max-width: 48rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fenix-ink);
}
.fenix-zap-contacts {
  padding-bottom: 48px;
}
.fenix-zap-contacts__card {
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  box-shadow: var(--fenix-shadow-card);
  border: 1px solid var(--fenix-outline-variant);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.fenix-zap-contacts__title {
  margin: 0;
  font-weight: 700;
  color: var(--fenix-navy);
  font-size: 18px;
}
.fenix-zap-contacts__nap {
  margin: 0;
  flex: 1 1 240px;
  font-size: 16px;
}
.fenix-zap-contacts__nap a {
  color: var(--fenix-primary);
  font-weight: 600;
}
.fenix-zap-contacts .fenix-related-links {
  margin: 0;
}
@media (max-width: 1099px) {
  .fenix-pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  [data-fenix-page="zapisatsya"] .fenix-section {
    padding: 28px 0;
  }
  [data-fenix-page="zapisatsya"] .fenix-section + .fenix-section,
  [data-fenix-page="zapisatsya"] .fenix-signup + .fenix-section {
    padding-top: 12px;
  }
  .fenix-pack-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fenix-zap-contacts__card {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Контакты: tighter stack + NAP layout —— */
[data-fenix-page="kontakty"] .fenix-section {
  padding: 36px 0;
}
[data-fenix-page="kontakty"] .fenix-section + .fenix-section {
  padding-top: 20px;
}
[data-fenix-page="kontakty"] .fenix-kont-block .fenix-lead,
[data-fenix-page="kontakty"] .fenix-answers .fenix-lead {
  max-width: 42rem;
  margin-bottom: 0;
}
[data-fenix-page="kontakty"] .fenix-geo-grid {
  margin-top: 20px;
}
.fenix-kont-nap .fenix-contact-card--lg {
  max-width: none;
  margin-bottom: 20px;
}
.fenix-contact-card__city {
  margin: 0 0 12px;
  color: var(--fenix-ink);
}
.fenix-contact-card__mail {
  margin: 0 0 20px;
}
.fenix-contact-card__mail a {
  color: var(--fenix-primary);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
}
.fenix-contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.fenix-contact-card .fenix-btn--ghost {
  border-color: rgba(27, 58, 107, 0.28);
  color: var(--fenix-navy);
  background: transparent;
}
.fenix-contact-card .fenix-btn--ghost:hover {
  border-color: var(--fenix-primary);
  color: var(--fenix-primary);
}
.fenix-kont-nap__notes {
  margin-top: 0;
}
.fenix-geo-card--cta .fenix-geo-card__cta {
  margin-top: 12px;
}
.fenix-geo-card--cta .fenix-btn {
  display: inline-flex;
}
@media (max-width: 767px) {
  [data-fenix-page="kontakty"] .fenix-section {
    padding: 28px 0;
  }
  [data-fenix-page="kontakty"] .fenix-section + .fenix-section {
    padding-top: 12px;
  }
  .fenix-contact-card__actions .fenix-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 1099px) {
  .fenix-geo-grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .fenix-geo-grid--2 {
    grid-template-columns: 1fr;
  }
  .fenix-geo-card {
    padding: 22px 18px;
  }
}

.fenix-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fenix-step {
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  padding: var(--fenix-space-lg);
  box-shadow: var(--fenix-shadow-card);
}
.fenix-step__num {
  display: block;
  font-family: var(--fenix-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fenix-gold);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.fenix-step h3 {
  font-size: 20px;
}

.fenix-programs h2,
.fenix-programs h3,
.fenix-programs p,
.fenix-programs a {
  color: #fff;
}
.fenix-programs a {
  text-decoration-color: var(--fenix-gold);
}
.fenix-program__media picture {
  display: block;
  width: 100%;
}

.fenix-program__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.fenix-program__body {
  padding: 24px;
  background: rgba(18, 42, 77, 0.55);
}
.fenix-for-whom {
  margin-top: 28px;
  width: 100%;
  max-width: none;
  padding: 28px 32px;
  border-radius: var(--fenix-radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 184, 74, 0.22);
  box-sizing: border-box;
}
.fenix-for-whom h3 {
  color: var(--fenix-gold);
  margin: 0 0 16px;
}
.fenix-for-whom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.fenix-for-whom p {
  max-width: none;
  margin: 0;
}
.fenix-mid-cta--programs {
  margin-top: 28px;
  align-items: center;
}
@media (max-width: 767px) {
  .fenix-for-whom {
    padding: 22px 18px;
  }
  .fenix-for-whom__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.fenix-team-photos__note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  max-width: 62ch;
  color: var(--fenix-outline);
}

.fenix-team-photos--overlap .fenix-team-strip {
  margin-top: 24px;
}
.fenix-team .fenix-lead {
  max-width: 52rem;
  margin-bottom: 8px;
}
.fenix-team-strip {
  margin-top: 28px;
}
.fenix-grid-trainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 8px;
  align-items: start;
}
.fenix-grid-trainers > .fenix-card,
.fenix-grid-trainers > [data-fenix-card="trainer-text"] {
  height: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fenix-trainer-card__role {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fenix-primary);
}
.fenix-trainer-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
}
.fenix-trainer-card__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fenix-ink);
}
.fenix-trainer-card p:last-child {
  margin-bottom: 0;
}
.fenix-trainer-cards .fenix-related-links {
  margin-top: 20px;
}
.fenix-trainer-cards .fenix-mid-cta {
  margin-top: 28px;
}
.fenix-note {
  font-size: 14px;
  color: var(--fenix-navy);
}

.fenix-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 16px;
}
.fenix-post-card__cover {
  display: block;
}
.fenix-post-card h3 {
  font-family: var(--fenix-font-display);
  font-size: 20px;
  line-height: 1.3;
}
.fenix-post-card h3 a {
  color: var(--fenix-navy);
  text-decoration: none;
}
.fenix-post-card h3 a:hover {
  color: var(--fenix-primary);
}

.fenix-faq-list {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 20px;
  row-gap: 12px;
  margin-top: 24px;
  align-items: start;
}
.fenix-faq-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 901px) {
  .fenix-faq-list {
    grid-template-columns: 1fr 1fr;
  }
}
.fenix-faq-item {
  border: 1px solid var(--fenix-outline-variant);
  border-radius: var(--fenix-radius-md);
  background: var(--fenix-surface-lowest);
  box-shadow: var(--fenix-shadow-card);
  padding: 0;
  overflow: hidden;
  height: auto;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fenix-faq-item:hover {
  border-color: rgba(199, 69, 31, 0.28);
}
.fenix-faq-item[open] {
  border-color: rgba(199, 69, 31, 0.35);
  box-shadow: var(--fenix-shadow-card-hover);
}
.fenix-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--fenix-font-body);
  color: var(--fenix-navy);
  list-style: none;
  padding: 14px 18px;
}
.fenix-faq-item summary::-webkit-details-marker {
  display: none;
}
.fenix-faq-item summary::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(199, 69, 31, 0.35);
  color: var(--fenix-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
  transition: background 0.2s ease;
}
.fenix-faq-item[open] summary::after {
  content: "−";
  background: rgba(199, 69, 31, 0.08);
  transform: none;
}
.fenix-faq-item__body {
  padding: 0 18px 16px;
}
.fenix-faq-item__body p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
}

[data-fenix-page="o-nas"] .fenix-section {
  padding: 36px 0;
}
[data-fenix-page="o-nas"] .fenix-section + .fenix-section,
[data-fenix-page="o-nas"] .fenix-section--lg + .fenix-section {
  padding-top: 20px;
}
[data-fenix-page="o-nas"] .fenix-section--lg {
  padding: 36px 0;
}
[data-fenix-page="o-nas"] [data-fenix-section="about"] {
  padding-bottom: 0;
}
[data-fenix-page="o-nas"] [data-fenix-section="photo-strip"] {
  padding-top: 0;
  padding-bottom: 28px;
}
.fenix-about-contact {
  margin-bottom: 0;
}
.fenix-about-qa .fenix-lead {
  max-width: 42rem;
  margin-bottom: 0;
}
.fenix-about-contact {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--fenix-surface-lowest);
  border-radius: var(--fenix-radius-md);
  box-shadow: var(--fenix-shadow-card);
  border: 1px solid var(--fenix-outline-variant);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.fenix-about-contact__label {
  margin: 0;
  font-weight: 700;
  color: var(--fenix-navy);
}
.fenix-about-contact__nap {
  margin: 0;
  flex: 1 1 220px;
}
.fenix-about-contact__nap a {
  color: var(--fenix-primary);
  font-weight: 600;
}
.fenix-about-contact .fenix-related-links {
  margin: 0;
}
.fenix-contacts-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.fenix-contacts-preview .fenix-contact-card {
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}
.fenix-contacts-preview .fenix-lead {
  max-width: 40rem;
  margin-bottom: 0;
}
.fenix-contacts-preview .fenix-geo-grid {
  margin-top: 0;
  height: 100%;
}
.fenix-contacts-preview .fenix-geo-card {
  height: 100%;
}
@media (max-width: 900px) {
  .fenix-contacts-preview__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  [data-fenix-page="o-nas"] .fenix-section,
  [data-fenix-page="o-nas"] .fenix-section--lg {
    padding: 28px 0;
  }
  [data-fenix-page="o-nas"] .fenix-section + .fenix-section {
    padding-top: 12px;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="about"] + [data-fenix-section="photo-strip"] {
    padding-top: 0;
  }
  .fenix-about-contact {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.fenix-form-note {
  margin-top: 16px;
  font-size: 14px;
}

.fenix-contact-card__name {
  font-family: var(--fenix-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fenix-navy);
  margin: 0 0 8px;
}
.fenix-tel-lg,
.fenix-tel-lg a {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--fenix-navy);
  text-decoration: none;
  white-space: nowrap;
}
.fenix-contact-card--lg {
  max-width: none;
}

.fenix-page-hero--caustics {
  min-height: 0;
  position: relative;
}
.fenix-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fenix-page-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fenix-page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 42, 77, 0.72) 0%, rgba(27, 58, 107, 0.78) 100%);
}
.fenix-page-hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 0 32px;
  max-width: none;
}
.fenix-page-hero .fenix-hero__lead {
  max-width: 38rem;
}

.fenix-cta-band {
  padding: var(--fenix-space-xl) 0;
}
.fenix-cta-band h2,
.fenix-cta-band p {
  color: #fff;
}
.fenix-cta-band .fenix-hero__actions {
  margin-top: 20px;
}

.fenix-mini-signup__card {
  max-width: none;
  background: var(--fenix-surface-low);
}

.fenix-pain {
  padding-top: 32px;
  padding-bottom: 0;
}
.fenix-pain + .fenix-advantages {
  padding-top: 40px;
}

@media (max-width: 1099px) {
  .fenix-steps,
  .fenix-grid-posts {
    grid-template-columns: 1fr 1fr;
  }
  .fenix-grid-trainers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .fenix-trainer-card h3 {
    font-size: 18px;
  }
  .fenix-trainer-card__bio {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .fenix-grid-trainers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .fenix-steps,
  .fenix-grid-trainers,
  .fenix-grid-posts {
    grid-template-columns: 1fr;
  }
  .fenix-hero__actions,
  .fenix-mid-cta .fenix-btn,
  .fenix-cta-band [data-fenix-cta="primary"],
  .fenix-hero [data-fenix-cta="primary"] {
    width: 100%;
  }
  .fenix-hero__actions .fenix-btn,
  .fenix-hero__actions [data-fenix-cta="primary"] {
    justify-content: center;
  }
  .fenix-team-photos--overlap .fenix-team-strip {
    margin-top: 16px;
  }
  .fenix-hero .fenix-phoenix,
  .fenix-hero [data-fenix-phoenix] {
    width: 38vw;
    max-width: 160px;
    right: 8px;
    bottom: 8%;
  }
  .fenix-tel-lg,
  .fenix-tel-lg a {
    font-size: 24px;
  }
}


.fenix-page-hero__content .fenix-eyebrow,
.fenix-page-hero__content h1,
.fenix-page-hero__content .fenix-hero__lead {
  max-width: 38rem;
}

/* —— BLOG INTEGRATOR: Excalibur single (editorial, left-led, full-bleed cover) —— */
.fenix-article {
  padding: 0 0 var(--fenix-space-xl);
}
.fenix-article__hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--fenix-navy);
}
.fenix-article__hero--plain {
  min-height: 0;
  align-items: flex-end;
  padding: 56px 0 40px;
}
.fenix-article__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fenix-article__hero-media picture,
.fenix-article__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.fenix-article__hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 32, 51, 0.92) 0%, rgba(16, 32, 51, 0.72) 38%, rgba(16, 32, 51, 0.28) 62%, rgba(16, 32, 51, 0.08) 100%),
    linear-gradient(180deg, rgba(16, 32, 51, 0.25) 0%, rgba(16, 32, 51, 0.55) 100%);
}
.fenix-article__hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--fenix-content-max));
  margin-inline: auto;
  padding: 72px 0 56px;
}
.fenix-article__hero-copy {
  max-width: 34rem;
  text-align: left;
}
.fenix-article__back {
  margin: 0 0 14px;
}
.fenix-article__back a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fenix-article__back a:hover {
  color: #fff;
}
.fenix-article__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fenix-gold);
}
.fenix-article__hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.fenix-article__lead {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--fenix-radius-md);
  background: rgba(16, 32, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.55;
  max-width: 34rem;
}
.fenix-article__shell {
  padding-top: 40px;
}
.fenix-article__body {
  max-width: 52rem;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fenix-ink);
}
.fenix-article__body > *:first-child {
  margin-top: 0;
}
.fenix-article__body p {
  margin: 0 0 1.15em;
  max-width: none;
}
.fenix-article__body h2 {
  margin: 1.75em 0 0.55em;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.25;
  color: var(--fenix-navy);
}
.fenix-article__body h3 {
  margin: 1.35em 0 0.45em;
  font-size: 22px;
  color: var(--fenix-navy);
}
.fenix-article__body ul,
.fenix-article__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.fenix-article__body li + li {
  margin-top: 0.35em;
}
.fenix-article__body a {
  color: var(--fenix-primary);
  font-weight: 600;
}
.fenix-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.fenix-article__body th,
.fenix-article__body td {
  border: 1px solid var(--fenix-outline-variant);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.fenix-article__body blockquote {
  margin: 1.5em 0;
  padding: 16px 18px;
  border-left: 4px solid var(--fenix-gold);
  background: var(--fenix-surface-low);
  border-radius: 0 var(--fenix-radius) var(--fenix-radius) 0;
}
.fenix-article__body figure,
.fenix-article__inline-cover {
  margin: 28px 0 36px;
  max-width: 100%;
}
.fenix-article__body img,
.fenix-article__inline-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--fenix-shadow-card);
  margin: 1.2em 0 0.4em;
}
.fenix-article__body img + br + i {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fenix-navy);
  margin: 0 0 1.2em;
}
.fenix-article__cta {
  max-width: 52rem;
  margin: 40px 0 0;
}
.fenix-article__related {
  max-width: 52rem;
  margin-top: 56px;
}
.fenix-article__related h2 {
  margin: 0 0 20px;
}
.fenix-article__related .fenix-grid-posts {
  grid-template-columns: repeat(2, 1fr);
}

[data-fenix-page="blog"] .fenix-section {
  padding: 36px 0;
}
[data-fenix-page="blog"] .fenix-section + .fenix-section {
  padding-top: 20px;
}
[data-fenix-page="blog"] .fenix-blog-block .fenix-lead,
[data-fenix-page="blog"] .fenix-answers .fenix-lead {
  max-width: 42rem;
  margin-bottom: 0;
}
[data-fenix-page="blog"] .fenix-geo-grid {
  margin-top: 20px;
}

@media (max-width: 1099px) {
  .fenix-article__hero {
    min-height: min(68vh, 640px);
  }
  .fenix-article__hero-copy {
    max-width: 30rem;
  }
}
@media (max-width: 767px) {
  .fenix-article__hero {
    min-height: 0;
  }
  .fenix-article__hero-scrim {
    background:
      linear-gradient(180deg, rgba(16, 32, 51, 0.35) 0%, rgba(16, 32, 51, 0.82) 55%, rgba(16, 32, 51, 0.94) 100%);
  }
  .fenix-article__hero-inner {
    padding: 40px 0 28px;
  }
  .fenix-article__hero h1 {
    font-size: clamp(1.55rem, 6.8vw, 2rem);
  }
  .fenix-article__body {
    font-size: 17px;
  }
  .fenix-article__related .fenix-grid-posts {
    grid-template-columns: 1fr;
  }
  [data-fenix-page="blog"] .fenix-section {
    padding: 28px 0;
  }
  [data-fenix-page="blog"] .fenix-section + .fenix-section {
    padding-top: 12px;
  }
}

/* —— MOTION IMPLEMENT 2026-08-24 (MSK) — CSS/SVG only. No GSAP, Three.js, WebGL, extra CDN. —— */

/* E03/E04: keyboard lift matches hover; post cards wrap links so :focus-within is canonical */
[data-fenix-card="advantage"]:focus-within,
[data-fenix-card="post"]:focus-within,
[data-fenix-card="trainer-text"]:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--fenix-shadow-card-hover);
}

[data-fenix-card="program"]:focus-within {
  box-shadow: var(--fenix-shadow-card-hover);
}

/* E05: hover #A33818 + translateY(-1px); slightly stronger CTA shadow; never outline:none on :focus-visible */
[data-fenix-cta="primary"]:hover,
.fenix-btn:hover {
  box-shadow: 0 12px 28px rgba(199, 69, 31, 0.36);
}

[data-fenix-cta="primary"]:focus-visible,
.fenix-btn:focus-visible {
  outline: 2px solid var(--fenix-gold);
  outline-offset: 3px;
}

/* Ice chrome: gold 2px / offset 3px + navy ring. Gold-only fails 1.71 on ice.
   Header is ice (not navy) — restore navy ring that THEME BASE stripped. */
.fenix-header :focus-visible,
.fenix-nav :focus-visible,
.fenix-cookie :focus-visible,
.fenix-form :focus-visible,
.fenix-faq :focus-visible,
.site-main :focus-visible {
  outline: 2px solid var(--fenix-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--fenix-navy);
}

/* Gold-only OK on navy / photo surfaces */
.site-footer :focus-visible,
.fenix-hero :focus-visible,
.fenix-band-navy :focus-visible,
.fenix-surface-high :focus-visible,
.fenix-cta-band :focus-visible,
.fenix-programs :focus-visible,
.fenix-page-hero :focus-visible {
  box-shadow: none;
}

/* E06: form fields on ice — gold ring + navy, not gold-only */
.fenix-field:focus-visible,
[data-fenix-field]:focus-visible,
.fenix-form input:focus-visible,
.fenix-form textarea:focus-visible,
.fenix-form select:focus-visible {
  border-color: var(--fenix-navy);
  outline: 2px solid var(--fenix-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--fenix-navy);
}

/* E06 success: opacity 240ms max. No confetti / emoji / bounce. */
@keyframes fenix-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fenix-form__status.is-success,
.fenix-form__status.is-error {
  animation: fenix-fade-in var(--fenix-duration) var(--fenix-ease);
}

/* E08: native <details>; opacity 160ms on answer; no height tween / no GSAP */
@keyframes fenix-faq-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-fenix-faq][open] > .fenix-faq-item__body {
  animation: fenix-faq-in var(--fenix-duration-fast) var(--fenix-ease);
}

/* E09: caustics stay photographic — no parallax, no WebGL */
.fenix-page-hero--caustics,
.fenix-page-hero__bg,
.fenix-hero__media img {
  background-attachment: scroll;
}

/* E10: cookie / sticky CTA — instant (display toggle). No slide over /zapisatsya/ form. */

/* 375: opacity/transform only. No parallax. Cutout stays under wave, not over CTA (z 20 < content 21 < wave 25). */
@media (max-width: 767px) {
  .fenix-hero,
  .fenix-hero__media,
  .fenix-hero__media img,
  .fenix-page-hero,
  .fenix-page-hero__media,
  .fenix-page-hero__bg {
    background-attachment: scroll !important;
  }
}

/* Reduced-motion LOCK (media query is the law; html.fenix-reduced-motion is JS enhancement).
   Disable float + hover translate. Keep gold focus rings and static two-crest SVG. */
@media (prefers-reduced-motion: reduce) {
  .fenix-phoenix,
  [data-fenix-phoenix] {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  [data-fenix-cta="primary"]:hover,
  [data-fenix-cta="primary"]:active,
  [data-fenix-cta="primary"]:focus-visible,
  .fenix-btn:hover,
  .fenix-btn:active,
  [data-fenix-card="advantage"]:hover,
  [data-fenix-card="advantage"]:focus-visible,
  [data-fenix-card="advantage"]:focus-within,
  [data-fenix-card="post"]:hover,
  [data-fenix-card="post"]:focus-visible,
  [data-fenix-card="post"]:focus-within,
  [data-fenix-card="trainer-text"]:hover,
  [data-fenix-card="trainer-text"]:focus-visible,
  [data-fenix-card="trainer-photo"]:hover,
  [data-fenix-card="trainer-photo"]:focus-within,
  [data-fenix-card="contact"]:hover,
  [data-fenix-card="contact"]:focus-visible {
    transform: none !important;
  }

  .fenix-nav,
  .fenix-nav-panel,
  [data-fenix-nav-panel] {
    transition: none !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .fenix-nav.is-open,
  .fenix-nav-panel.is-open,
  [data-fenix-nav-panel].is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  [data-fenix-faq][open] > .fenix-faq-item__body,
  .fenix-form__status.is-success,
  .fenix-form__status.is-error {
    animation: none !important;
  }
}

html.fenix-reduced-motion {
  scroll-behavior: auto;
}

html.fenix-reduced-motion .fenix-phoenix,
html.fenix-reduced-motion [data-fenix-phoenix] {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

html.fenix-reduced-motion [data-fenix-cta="primary"]:hover,
html.fenix-reduced-motion [data-fenix-cta="primary"]:active,
html.fenix-reduced-motion .fenix-btn:hover,
html.fenix-reduced-motion [data-fenix-card="advantage"]:hover,
html.fenix-reduced-motion [data-fenix-card="advantage"]:focus-visible,
html.fenix-reduced-motion [data-fenix-card="advantage"]:focus-within,
html.fenix-reduced-motion [data-fenix-card="post"]:hover,
html.fenix-reduced-motion [data-fenix-card="post"]:focus-visible,
html.fenix-reduced-motion [data-fenix-card="post"]:focus-within,
html.fenix-reduced-motion [data-fenix-card="trainer-text"]:hover,
html.fenix-reduced-motion [data-fenix-card="trainer-text"]:focus-visible,
html.fenix-reduced-motion [data-fenix-card="trainer-photo"]:hover,
html.fenix-reduced-motion [data-fenix-card="trainer-photo"]:focus-within,
html.fenix-reduced-motion [data-fenix-card="contact"]:hover {
  transform: none !important;
}

html.fenix-reduced-motion .fenix-nav,
html.fenix-reduced-motion .fenix-nav-panel,
html.fenix-reduced-motion [data-fenix-nav-panel] {
  transition: none !important;
  transform: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.fenix-reduced-motion .fenix-nav.is-open,
html.fenix-reduced-motion .fenix-nav-panel.is-open,
html.fenix-reduced-motion [data-fenix-nav-panel].is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

html.fenix-reduced-motion [data-fenix-faq][open] > .fenix-faq-item__body,
html.fenix-reduced-motion .fenix-form__status.is-success,
html.fenix-reduced-motion .fenix-form__status.is-error {
  animation: none !important;
}

/* Light scroll reveal: opacity + translate only, one-shot via IntersectionObserver */
.fenix-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.fenix-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fenix-reveal-d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .fenix-reveal,
  .fenix-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

html.fenix-reduced-motion .fenix-reveal,
html.fenix-reduced-motion .fenix-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* —— RESPONSIVE HARDENING 2026-03 —— */
/* Global overflow / stretch guards */
.fenix-grid > *,
.fenix-grid-trainers > *,
.fenix-pack-grid > *,
.fenix-steps > *,
.fenix-card,
.fenix-contact-block,
.fenix-qa-card,
.fenix-form-split > *,
.fenix-form-side {
  min-width: 0;
  max-width: 100%;
}

.fenix-btn {
  max-width: 100%;
  box-sizing: border-box;
}

.fenix-contact-block__phone,
.fenix-contact-block a,
.site-footer a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fenix-contact-block__actions {
  width: 100%;
}
.fenix-contact-block__actions .fenix-btn {
  flex: 1 1 140px;
  min-width: 0;
  white-space: normal;
  height: auto;
  min-height: 48px;
  line-height: 1.25;
  padding: 12px 14px;
  text-align: center;
}

.fenix-lead-form__actions .fenix-btn {
  max-width: 100%;
}

@media (max-width: 1099px) {
  .fenix-section {
    padding: 56px 0;
  }
  .fenix-section--lg {
    padding: 64px 0;
  }
  .fenix-programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fenix-for-whom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fenix-geo-grid--3 {
    grid-template-columns: 1fr;
  }
  .fenix-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fenix-steps {
    grid-template-columns: 1fr;
  }
  .fenix-contacts-preview .fenix-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .fenix-header__actions [data-fenix-cta="primary"] {
    display: none;
  }
  .fenix-article__title,
  .fenix-article__hero h1 {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
  }
}

@media (max-width: 767px) {
  :root {
    --fenix-section-y: 40px;
    --fenix-space-xl: 40px;
  }

  .fenix-wrap {
    width: min(100% - 32px, var(--fenix-content-max));
    padding-left: 0;
    padding-right: 0;
  }

  .fenix-section {
    padding: 40px 0;
  }
  .fenix-section--lg {
    padding: 48px 0;
  }
  .fenix-section__head {
    margin-bottom: 20px;
  }
  .fenix-section__head h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .fenix-grid--2,
  .fenix-grid--3,
  .fenix-grid--4,
  .fenix-programs-grid,
  .fenix-for-whom-grid,
  .fenix-pack-grid,
  .fenix-geo-grid,
  .fenix-geo-grid--3 {
    grid-template-columns: 1fr;
  }

  .fenix-card,
  .fenix-contact-block,
  .fenix-qa-card,
  .fenix-program-card,
  .fenix-trainer-card,
  .fenix-blog-card {
    padding: 18px 16px;
  }

  .fenix-contact-block__actions {
    flex-direction: column;
  }
  .fenix-contact-block__actions .fenix-btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .fenix-lead-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fenix-lead-form__actions .fenix-btn {
    width: 100%;
  }

  .fenix-sticky-cta {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .fenix-sticky-cta .fenix-btn {
    width: min(100%, 420px);
  }
  /* Fixed reserve for sticky CTA — no layout jump when leaving hero */
  body:has(.fenix-sticky-cta):not(.fenix-cookie-open) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .fenix-cookie {
    left: 10px;
    right: 10px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  body:has(.fenix-sticky-cta):not(.fenix-cookie-open) .fenix-cookie {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .fenix-article__hero {
    min-height: auto;
    min-height: unset;
  }
  .fenix-article__hero-inner {
    padding-top: calc(var(--fenix-header-h) + 20px);
    padding-bottom: 28px;
  }
  .fenix-article__kicker {
    font-size: 0.7rem;
  }
  .fenix-article__title,
  .fenix-article__hero h1 {
    font-size: clamp(1.55rem, 6.8vw, 2rem);
    max-width: none;
  }
  .fenix-article__lead {
    font-size: 0.92rem;
  }
  .fenix-contact-card__actions {
    flex-direction: column;
  }
  .fenix-contact-card__actions .fenix-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    height: auto;
    min-height: 48px;
  }
  .fenix-article__body-wrap {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .fenix-article__body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fenix-article__body table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
  }
  .fenix-article__body thead,
  .fenix-article__body tbody,
  .fenix-article__body tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  .fenix-article__body th,
  .fenix-article__body td {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    padding: 8px 6px;
  }
  .fenix-geo-card,
  .fenix-geo-grid {
    max-width: 100%;
    min-width: 0;
  }

  [data-fenix-page="o-nas"] .fenix-section,
  [data-fenix-page="zapisatsya"] .fenix-section,
  [data-fenix-page="kontakty"] .fenix-section,
  [data-fenix-page="blog"] .fenix-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="about"] {
    padding-bottom: 0;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="photo-strip"] {
    padding-top: 0 !important;
    padding-bottom: 28px;
  }
  [data-fenix-page="o-nas"] .fenix-about-contact {
    margin-bottom: 0;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="photo-strip"] .fenix-team-photos {
    margin-top: 0;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="photo-strip"] .fenix-team-strip {
    margin-top: 0;
  }
  [data-fenix-page="o-nas"] [data-fenix-section="photo-strip"] .fenix-wrap {
    padding-top: 0;
  }

  body.fenix-hero-inview .fenix-sticky-cta {
    display: none !important;
  }

  .fenix-page-hero,
  .fenix-page-hero__content {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .fenix-page-hero h1 {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem);
    margin-bottom: 8px;
  }
  .fenix-page-hero .fenix-hero__lead,
  .fenix-page-hero .fenix-hero__subtitle {
    font-size: 14px;
  }

  .site-footer__grid {
    gap: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .fenix-wrap {
    width: min(100% - 48px, var(--fenix-content-max));
    padding-left: 0;
    padding-right: 0;
  }
  .fenix-hero {
    --fenix-hero-min: 420px;
    min-height: min(72svh, 620px);
  }
  .fenix-hero__content h1 {
    font-size: clamp(2rem, 4.2vw, 2.75rem);
  }
  .fenix-article__hero {
    min-height: min(62svh, 520px);
  }
  .fenix-article__title {
    max-width: 18ch;
  }
}
