/* PETRYK FITNESS mobile hero only. Desktop and tablet geometry are untouched. */
@media (max-width: 767px) {
  .header {
    position: absolute;
    z-index: 40;
    inset: 0 0 auto;
    width: 100%;
    height: 72px;
    padding: 0 14px;
    gap: 9px;
    background: linear-gradient(180deg, rgba(5, 6, 11, .96), rgba(5, 6, 11, .72) 70%, transparent);
    border-bottom-color: rgba(255, 255, 255, .08);
  }

  .header .brand-logo {
    width: 132px;
    height: 50px;
    flex: 0 0 132px;
  }

  .header > .button { display: none !important; }
  .header .language-switcher { margin-left: auto; }
  .header .language-trigger { min-width: 64px; height: 44px; padding-inline: 10px; }
  .header .menu-toggle { display: block; order: 3; width: 44px; height: 44px; margin-left: 0; }

  .header .nav {
    position: absolute;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    top: 72px;
    left: 0;
    right: 0;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    background: rgba(7, 8, 14, .98);
    border-bottom: 1px solid rgba(154, 136, 255, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .4s ease, opacity .22s ease, padding .4s ease, visibility .22s;
  }

  .header.menu-open .nav {
    max-height: 680px;
    padding: 12px 16px 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-flow {
    position: relative;
    overflow: clip;
    background: #06070b;
  }

  .hero-flow::before,
  .hero-flow::after,
  .hero::before { content: none; }

  .hero {
    --hero-title-x: -28px;
    --hero-outline-x: -20px;
    --hero-photo-y: 0px;
    --hero-title-opacity: .94;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 1280px;
    padding: 0 0 30px;
    overflow: clip;
    background: #06070b;
  }

  .hero__photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 1030px;
    background-color: #06070b;
    background-image: url('coach-stage-web.jpg');
    background-repeat: no-repeat;
    background-size: auto 1050px;
    background-position: 58% -120px;
    filter: saturate(.86) contrast(1.06) brightness(.78);
    transform: translate3d(0, var(--hero-photo-y), 0);
    transform-origin: center top;
    will-change: transform;
  }

  .hero__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    height: 1080px;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(4, 5, 10, .94) 0%, rgba(4, 5, 10, .78) 34%, rgba(4, 5, 10, .22) 68%, rgba(4, 5, 10, .04) 100%),
      linear-gradient(180deg, rgba(4, 5, 10, .06) 0%, rgba(4, 5, 10, .04) 54%, rgba(4, 5, 10, .72) 78%, #06070b 100%);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__content,
  .hero__content.visible {
    position: relative;
    z-index: 3;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    padding: 245px 18px 0;
    opacity: 1;
    transform: none;
  }

  .hero .eyebrow {
    width: min(58vw, 220px);
    max-width: none;
    margin: 0 0 14px;
    gap: 10px;
    color: #d0ced8;
    font-size: clamp(8px, 2.35vw, 10px);
    line-height: 1.55;
    letter-spacing: .17em;
  }

  .hero .eyebrow span {
    width: 28px;
    flex: 0 0 28px;
    background: #8f75ff;
    box-shadow: 0 0 12px rgba(125, 94, 255, .46);
  }

  .hero h1 {
    width: min(66vw, 278px);
    max-width: none;
    min-height: 0;
    margin: 0 0 22px 28px;
    font-size: clamp(3.35rem, 16.8vw, 4.35rem);
    line-height: .84;
    letter-spacing: -.045em;
    opacity: var(--hero-title-opacity);
  }

  .hero h1 > span,
  .hero h1 > em {
    display: inline-block;
    width: min(66vw, 278px);
    white-space: normal;
    will-change: transform;
  }

  .hero h1 > span { transform: translate3d(var(--hero-title-x), 0, 0); }
  .hero h1 > em {
    margin-top: .08em;
    color: transparent;
    -webkit-text-stroke: 1.5px #8d72ff;
    text-shadow: 0 0 18px rgba(112, 81, 255, .16);
    transform: translate3d(var(--hero-outline-x), 0, 0);
  }

  .hero__lead {
    width: min(78vw, 330px);
    max-width: none;
    min-height: 0;
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(1rem, 4.4vw, 1.16rem);
    line-height: 1.38;
  }

  .hero__text {
    width: min(76vw, 320px);
    max-width: none;
    margin: 0;
    color: #aeb0ba;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.58;
  }

  .hero .actions {
    display: flex;
    flex-direction: column;
    width: min(100%, 394px);
    max-width: none;
    min-height: 0;
    margin: 24px 0 0;
    gap: 11px;
  }

  .hero .actions .button,
  .hero .actions .hero__scroll {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 9px;
  }

  .hero .actions .button {
    border-color: rgba(194, 184, 255, .72);
    background: linear-gradient(135deg, #6847ff, #3f24d7);
    color: #fff;
    box-shadow: 0 5px 0 #26157f, 0 12px 26px rgba(91, 58, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
  }

  .hero .actions .hero__scroll {
    justify-content: center;
    border-color: rgba(158, 139, 255, .56);
    background: rgba(10, 10, 18, .58);
    color: #eeeefa;
  }

  .hero__benefits {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 394px);
    max-width: none;
    margin-top: 28px;
    border: 0;
  }

  .hero__benefits > div,
  .hero__benefits > div + div {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .hero__benefits span { color: #9076ff; font-size: 30px; }
  .hero__benefits p { color: #fff; font-size: 12px; line-height: 1.45; letter-spacing: .07em; }
  .hero__benefits small { color: #92949e; font-size: 11px; }

  .hero__statement,
  .hero__statement.visible {
    position: relative;
    z-index: 3;
    right: auto;
    bottom: auto;
    display: block;
    width: calc(100% - 36px);
    min-height: 106px;
    margin: 28px 18px 0;
    padding: 20px 72px 20px 20px;
    border: 1px solid rgba(146, 126, 255, .32);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 26, 40, .94), rgba(13, 13, 22, .94));
    color: #858791;
    text-align: left;
    font-size: 10px;
    line-height: 1.55;
    opacity: 1;
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 38px rgba(0, 0, 0, .24);
  }

  .hero__statement strong { color: #fff; font-size: 12px; letter-spacing: .13em; }
  .hero__statement strong span { color: #9a82ff; }
  .hero__statement::after {
    content: "ϟ";
    position: absolute;
    top: 18px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 58px;
    border: 1px solid rgba(145, 124, 255, .3);
    border-radius: 10px;
    color: #957cff;
    font: 500 34px/1 Oswald, sans-serif;
    background: rgba(91, 67, 194, .09);
  }

  html[data-language="ru"] .hero__statement strong,
  html[data-language="uk"] .hero__statement strong,
  html[data-language="en"] .hero__statement strong,
  html[data-language="es"] .hero__statement strong { color: #fff; }

  .intro-copy { position: relative; z-index: 2; }
}

@media (max-width: 350px) {
  .header { padding-inline: 10px; gap: 6px; }
  .header .brand-logo { width: 116px; flex-basis: 116px; }
  .header .language-trigger { min-width: 58px; padding-inline: 8px; }
  .hero__photo { background-size: auto 1000px; background-position: 57% -108px; }
  .hero__content, .hero__content.visible { padding: 236px 14px 0; }
  .hero h1 { width: 68vw; font-size: clamp(3.2rem, 16.3vw, 3.55rem); }
  .hero h1 > span, .hero h1 > em { width: 68vw; }
  .hero__statement, .hero__statement.visible { width: calc(100% - 28px); margin-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .hero { --hero-title-x: 0px !important; --hero-outline-x: 0px !important; --hero-photo-y: 0px !important; --hero-title-opacity: 1 !important; }
  .hero__photo, .hero h1 > span, .hero h1 > em { transition: none !important; will-change: auto; }
}
