/* SimpleGym manuals page */

.manuals-page {
  --manuals-max: 1200px;
  --manuals-surface: #111111;
  --manuals-surface-raised: #161616;
  --manuals-border: rgba(255, 255, 255, 0.09);
  --manuals-muted: #a7a7a7;
  overflow-x: clip;
  background: #000;
}

.manuals-page main {
  overflow: clip;
}

.manuals-page .burger-menu {
  border: 0;
  padding: 0;
  background: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sg-green);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.manuals-container {
  width: min(var(--manuals-max), 92vw);
  margin-inline: auto;
}

.manuals-eyebrow {
  margin: 0 0 18px;
  color: var(--sg-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.manuals-hero {
  position: relative;
  min-height: min(820px, calc(100svh - 104px));
  display: flex;
  align-items: center;
  padding: 34px 0 90px;
  isolation: isolate;
}

.manuals-hero::before {
  content: "";
  position: absolute;
  inset: -20% -15% auto 40%;
  height: 780px;
  z-index: -2;
  background: radial-gradient(circle at center, rgba(223, 255, 0, .13), rgba(223, 255, 0, .025) 34%, transparent 69%);
  pointer-events: none;
}

.manuals-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1200px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 255, 0, .42), transparent);
  transform: translateX(-50%);
}

.manuals-hero__inner {
  width: min(var(--manuals-max), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.manuals-hero__copy {
  position: relative;
  z-index: 2;
}

.manuals-hero h1 {
  margin: 0;
  max-width: 780px;
  color: #fff;
  font-size: clamp(48px, 6.5vw, 65px);
  font-weight: 600;
  line-height: .96;
}

.manuals-hero__lead {
  max-width: 620px;
  margin: 30px 0 38px;
  color: #c7c7c7;
  font-size: clamp(16px, 1.5vw, 16px);
  line-height: 1.6;
}

.manuals-hero__actions,
.manuals-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.manuals-hero__visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.manuals-hero__visual img {
  position: relative;
  z-index: 2;
  width: min(370px, 31vw);
  height: auto;
  filter: drop-shadow(0 38px 55px rgba(0, 0, 0, .75));
  transform: rotate(2deg);
}

.manuals-hero__orbit {
  position: absolute;
  border: 1px solid rgba(223, 255, 0, .15);
  border-radius: 50%;
  pointer-events: none;
}

.manuals-hero__orbit--one {
  width: 460px;
  height: 460px;
}

.manuals-hero__orbit--two {
  width: 610px;
  height: 610px;
  border-color: rgba(255, 255, 255, .055);
}

.manuals-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8e8e8e;
  font-size: 12px;
  text-decoration: none;
  transform: translateX(-50%);
}

.manuals-scroll-cue span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--sg-green), transparent);
}

.manuals-directory {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(180deg, #070707, #0c0c0c 62%, #070707);
}

.manuals-section-heading {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr);
  column-gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}

.manuals-section-heading .manuals-eyebrow {
  grid-column: 1 / -1;
}

.manuals-section-heading h2,
.manual-story__header h2,
.manuals-help h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 45px);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.manuals-help h2 {
  font-size: clamp(34px, 5vw, 40px);
  margin-top: 5px;
}

.manuals-section-heading > p:last-child,
.manuals-help p {
  margin: 0;
  color: var(--manuals-muted);
  line-height: 1.65;
}

.manual-story__header > p:last-child {
  margin: 0;
  color: var(--manuals-muted);
  line-height: 1.65;
  text-align: center;
}

.manuals-help p,
.manuals-help h2 {
  text-align: left;
}

.manual-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manual-choice {
  position: relative;
  min-height: 124px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--manuals-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.manual-choice::before {
  content: "";
  position: absolute;
  inset: auto -50px -90px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(223, 255, 0, .08);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .2s ease;
}

.manual-choice:hover,
.manual-choice:focus-visible,
.manual-choice.is-active {
  border-color: rgba(223, 255, 0, .35);
  background: rgba(223, 255, 0, .05);
  transform: translateY(-3px);
}

.manual-choice:hover::before,
.manual-choice:focus-visible::before,
.manual-choice.is-active::before {
  opacity: 1;
}

.manual-choice__number {
  color: var(--sg-green);
  font-size: 12px;
  font-weight: 700;
}

.manual-choice__copy {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.manual-choice__copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.manual-choice__copy small {
  color: #898989;
  font-size: 12px;
  line-height: 1.4;
}

.manual-choice__arrow {
  color: #777;
  font-size: 18px;
  line-height: 1;
}

.manual-story[hidden] {
  display: none;
}

.manual-story {
  position: relative;
  padding: clamp(92px, 11vw, 150px) 0 100px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 14% 30%, rgba(223, 255, 0, .045), transparent 30%),
    #050505;
}

.manual-story__header {
  margin-bottom: 70px;
}

header.manual-story__header {
  z-index: inherit;
}

.manual-story__header > p:last-child {
  margin-top: 22px;
  font-size: 16px;
}

.manual-story__layout {
  display: grid;
  grid-template-columns: minmax(330px, .84fr) minmax(430px, 1.16fr);
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.manual-phone-column {
  min-width: 0;
  height: 100%;
}

.manual-phone {
  position: sticky;
  top: 142px;
  min-height: calc(100vh - 168px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center;
  justify-items: center;
  margin: 0;
}

.manual-phone__glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(223, 255, 0, .12);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.manual-phone__image {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: min(70vh, 670px);
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .7));
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .32s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
}

.manual-phone__image.is-changing {
  opacity: 0;
  transform: translateY(10px) scale(.98);
}

.manual-phone figcaption {
  width: min(350px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 3px;
  color: #8f8f8f;
  font-size: 11px;
  line-height: 1.4;
}

.manual-phone__counter {
  color: var(--sg-green);
  font-weight: 700;
  letter-spacing: .08em;
}

.manual-phone__progress {
  width: min(350px, 100%);
  height: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.manual-phone__progress span {
  display: block;
  width: var(--step-progress, 20%);
  height: 100%;
  background: var(--sg-green);
  transition: width .35s ease;
}

.manual-steps {
  min-width: 0;
}

.manual-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px clamp(28px, 4vw, 54px);
  border-left: 1px solid rgba(255, 255, 255, .07);
  opacity: .34;
  transition: opacity .3s ease, border-color .3s ease, transform .3s ease;
}

.manual-step.is-active {
  border-left-color: var(--sg-green);
  opacity: 1;
  transform: translateX(10px);
}

.manual-step__number {
  margin-bottom: 22px;
  color: var(--sg-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.manual-step h3 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 37px);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.manual-step p {
  max-width: 570px;
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 1.7;
}

.manual-step p strong {
  color: #e7e7e7;
}

.manual-step__media {
  display: none;
}

.manual-back-to-list {
  display: block;
  width: fit-content;
  margin: 58px auto 0;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(223, 255, 0, .45);
  color: #d5d5d5;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.manual-back-to-list:hover,
.manual-back-to-list:focus-visible {
  border-color: var(--sg-green);
  color: var(--sg-green);
}

.manuals-help {
  padding: 110px 0;
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.manuals-help__inner {
  width: min(var(--manuals-max), 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}


.manuals-help p:last-child {
  max-width: 710px;
  margin-top: 20px;
}

.manuals-page footer {
  margin-top: 0;
}

@media (max-width: 1100px) and (min-width: 992px) {
  .manual-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-story__layout {
    grid-template-columns: minmax(300px, .75fr) minmax(390px, 1.25fr);
    gap: 40px;
  }

  .manual-phone__image {
    height: min(63vh, 590px);
  }
}

@media (max-width: 991px) {
  .manuals-page [id] {
    scroll-margin-top: 28px;
  }

  .manuals-hero {
    min-height: auto;
    padding: 65px 0 100px;
  }

  .manuals-hero__inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .manuals-hero h1 {
    font-size: clamp(47px, 8vw, 78px);
  }

  .manuals-hero__lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .manuals-hero__visual {
    min-height: 430px;
  }

  .manuals-hero__visual img {
    width: min(275px, 70vw);
  }

  .manuals-hero__orbit--one {
    width: 330px;
    height: 330px;
  }

  .manuals-hero__orbit--two {
    width: 430px;
    height: 430px;
  }

  .manuals-scroll-cue {
    bottom: 20px;
  }

  .manuals-section-heading {
    display: block;
    margin-bottom: 40px;
    text-align: center;
  }

  .manuals-section-heading h2 {
    margin-bottom: 22px;
  }

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

  .manual-story__header {
    margin-bottom: 42px;
    text-align: center;
  }

  .manual-story__layout {
    display: block;
  }

  .manual-phone-column {
    display: none;
  }

  .manual-steps {
    display: grid;
    gap: 18px;
  }

  .manual-step,
  .manual-step.is-active {
    min-height: 0;
    padding: 24px;
    border: 1px solid var(--manuals-border);
    border-radius: 20px;
    background: var(--manuals-surface);
    opacity: 1;
    transform: none;
    text-align: center;
  }

  .manual-step p,
  .manual-step h3 {
    width: auto;
    max-width: none;
  }

  .manual-step__media {
    display: grid;
    place-items: center;
    min-height: 360px;
    margin: -6px -6px 26px;
    padding: 12px;
    overflow: hidden;
    border-radius: 16px;
    background:
      radial-gradient(circle at center, rgba(223, 255, 0, .08), transparent 58%),
      #080808;
  }

  .manual-step__media img {
    width: auto;
    max-width: 100%;
    height: min(63svh, 650px);
    object-fit: contain;
  }

  .manual-step h3 {
    font-size: clamp(27px, 7vw, 38px);
  }

  .manual-back-to-list {
    margin-top: 44px;
  }

  .manuals-help__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .manuals-container,
  .manuals-hero__inner,
  .manuals-help__inner {
    width: min(100% - 32px, var(--manuals-max));
  }

  .manuals-hero {
    padding-top: 54px;
  }

  .manuals-hero__actions,
  .manuals-help__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .manuals-hero__actions a,
  .manuals-help__actions a {
    text-align: center;
  }

  .manuals-hero__visual {
    min-height: 390px;
  }

  .manuals-hero__orbit--two {
    width: 370px;
    height: 370px;
  }

  .manual-choices {
    grid-template-columns: 1fr;
  }

  .manual-choice {
    min-height: 108px;
    padding: 20px;
  }

  .manual-story {
    padding-top: 78px;
  }

  .manual-story__header > p:last-child {
    font-size: 15px;
  }

  .manual-step {
    padding: 18px;
  }

  .manual-step__media {
    min-height: 320px;
    margin-bottom: 22px;
  }

  .manual-step__media img {
    height: min(59svh, 570px);
  }

  .manual-step p {
    font-size: 15px;
  }
}

/* Kompaktnejší desktop: sticky storytelling ostáva aktívny aj v užšom náhľade. */
@media (min-width: 820px) and (max-width: 991px) {
  .manual-story__layout {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(340px, 1.22fr);
    gap: 30px;
    align-items: start;
  }

  .manual-phone-column {
    display: block;
    height: 100%;
  }

  .manual-phone {
    top: 34px;
    min-height: calc(100vh - 68px);
  }

  .manual-phone__image {
    height: min(68vh, 590px);
  }

  .manual-steps {
    display: block;
  }

  .manual-step,
  .manual-step.is-active {
    min-height: 62vh;
    display: flex;
    padding: 46px 28px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
    background: transparent;
    opacity: .34;
    transform: none;
    text-align: left;
  }

  .manual-step.is-active {
    border-left-color: var(--sg-green);
    opacity: 1;
    transform: translateX(8px);
  }

  .manual-step__media {
    display: none;
  }

  .manual-step h3 {
    font-size: clamp(28px, 4vw, 38px);
  }
}

@media (max-width: 526px) { 
  p.manuals-hero__lead br {
    display: none;
  }
}

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