html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Visual debloat: section titles already carry the meaning, so repeated
   eyebrow labels and the standalone divider only add noise. Functional
   markers inside forms, cards and progress controls remain visible. */
.glow > .shell > div:first-child > .kicker,
.pain-copy > .kicker,
.wheel-head > .kicker,
.section-head > .kicker,
.phead > .kicker,
#intrebari > .shell-narrow > .kicker,
main > .rule {
  display: none !important;
}

.pain-h2,
.wheel-head h2,
.section-head h2,
.phead h2,
#intrebari > .shell-narrow > h2 {
  margin-top: 0 !important;
}

@media (min-width: 860px) {
  .section {
    padding-block: clamp(4.5rem, 5.5vw, 5rem) !important;
  }

  .section-beat {
    padding-block: clamp(5.5rem, 7vw, 6.5rem) !important;
  }

  .section-beat.pt-0 {
    padding-top: 0 !important;
  }
}

.sr-only input {
  width: 1px !important;
  height: 1px !important;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 1023px) {
  .wheel[data-astro-cid-ampnwsdf] {
    height: auto !important;
    padding-block: clamp(4rem, 12vw, 6rem) !important;
  }

  .wheel-stage[data-astro-cid-ampnwsdf] {
    position: static !important;
    top: auto !important;
    height: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  .wheel-inner[data-astro-cid-ampnwsdf] {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 2.5rem !important;
  }

  .wheel-head[data-astro-cid-ampnwsdf] {
    position: static !important;
  }

  .wheel-viewport[data-astro-cid-ampnwsdf] {
    position: static !important;
    height: auto !important;
    perspective: none !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .wheel-band[data-astro-cid-ampnwsdf] {
    display: none !important;
  }

  .wheel-drum[data-astro-cid-ampnwsdf] {
    position: relative !important;
    height: auto !important;
    transform: none !important;
    transform-style: flat !important;
  }

  .wheel-item[data-astro-cid-ampnwsdf] {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 640px) {
  .footer-top {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .footer-top > .shell > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.5rem 1.5rem !important;
  }

  .footer-top > .shell > .grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-top nav[aria-label="Programe"] ul {
    justify-items: start;
  }

  .footer-top nav[aria-label="Instrumente"] {
    text-align: right;
  }

  .footer-top nav[aria-label="Instrumente"] ul {
    justify-items: end;
  }

  .footer-top nav[aria-label="Contact"] {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .footer-top nav[aria-label="Contact"] ul {
    width: 100%;
    margin-inline: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem .5rem;
    justify-items: stretch;
    text-align: center;
  }

  .footer-top nav[aria-label="Contact"] li {
    grid-column: span 2;
  }

  .footer-top nav[aria-label="Contact"] li:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .footer-top nav[aria-label="Contact"] a {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
    font-size: .84rem;
    line-height: 1.2;
  }

  .footer-top > .shell > .rule {
    display: none;
  }

  .footer-top .close-band {
    margin-top: 2.5rem;
    padding-top: 0;
  }

  .hub-tool {
    min-width: 0;
    width: 100%;
    padding: 1.5rem !important;
  }

  .hub-tool h2,
  .hub-tool__lead,
  .hub-feats,
  .hub-feats li {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hub-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem .75rem !important;
  }

  .hub-specs > div {
    min-width: 0;
  }

  .quiz-form-intro h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .form-shell,
  .offer-survey {
    min-width: 0;
  }

  .form-shell input,
  .form-shell select,
  .form-shell textarea,
  .phone-hero__country,
  .phone-hero__input {
    width: 100%;
    max-width: 100%;
  }

  .form-shell label[for="consent"] {
    display: grid !important;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    width: 100%;
    min-width: 0;
  }

  .form-shell label[for="consent"] input[type="checkbox"] {
    width: 1rem !important;
    min-width: 1rem;
    max-width: 1rem !important;
    height: 1rem !important;
    margin-top: .2rem;
  }

  .form-shell label[for="consent"] span {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 859px) {
  .section {
    padding-block: 3rem !important;
  }

  .section-beat {
    padding-block: 3.5rem !important;
  }

  .section-beat.pt-0 {
    padding-top: 0 !important;
  }

  .wheel[data-astro-cid-ampnwsdf] {
    padding-block: 3rem !important;
  }

  .team-row[data-astro-cid-lkegjp3u] {
    gap: 1.25rem;
  }

  .team-figure[data-astro-cid-lkegjp3u] {
    width: 82%;
    max-width: 28rem;
    justify-self: center;
  }

  .team-badge[data-astro-cid-lkegjp3u] {
    top: .75rem;
    left: .75rem;
  }
}

@media (max-width: 699px) {
  .pscroll {
    height: 340vh !important;
  }

  .mviewport {
    height: clamp(27rem, 60svh, 32rem) !important;
  }

  .mface .pcard {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: 1.15rem !important;
  }

  .mface .pcard-line,
  .mface .pspecs {
    margin-bottom: .9rem !important;
  }

  .mface .pspecs > div {
    padding-block: .45rem !important;
  }

  .mface .pcard-foot {
    margin-top: .8rem !important;
    flex-wrap: wrap;
    padding-top: .85rem !important;
  }

  .mface .pprice {
    font-size: 1.35rem;
  }

  .mprogress {
    margin-top: .8rem !important;
  }
}

@media (max-width: 360px) {
  .mviewport {
    height: 27rem !important;
  }

  .mface .pcard {
    padding: 1rem !important;
  }

  .mface .pcard h3 {
    font-size: 1.35rem;
  }

  .mface .pcard-line,
  .mface .pspecs {
    margin-bottom: .7rem !important;
  }
}

/* On short screens, let the title scroll first and give the 3D cube its own
   sticky viewport. The programs script adds .programs-short and moves the
   heading immediately before the sticky stage. */
@media (max-width: 699px) and (max-height: 640px) {
  .pscroll.programs-short {
    height: calc(340vh + 12rem) !important;
    padding-block: 0 !important;
  }

  .pscroll.programs-short > .phead {
    width: min(1280px, calc(100% - (var(--spacing-gutter) * 2)));
    height: auto !important;
    margin-inline: auto;
    padding-top: clamp(1.75rem, 6svh, 2.5rem);
    padding-bottom: .75rem;
  }

  .programs-short .pstage {
    position: sticky !important;
    top: 0;
    height: 100svh !important;
    overflow: hidden !important;
  }

  .programs-short .pstage-inner {
    position: relative;
    height: 100%;
    padding-block: .75rem !important;
    gap: 0 !important;
  }

  .programs-short .mstack {
    display: block;
    position: absolute !important;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%) !important;
  }

  .programs-short .mviewport {
    position: relative;
    z-index: 1;
    height: min(23rem, calc(100svh - 3.5rem)) !important;
    perspective: 1800px !important;
  }

  .programs-short .pprogress {
    display: none !important;
  }

  .programs-short .mprogress {
    position: relative;
    z-index: 10;
    margin-top: 2rem !important;
    padding-block: .35rem;
    background: linear-gradient(
      90deg,
      transparent,
      var(--color-ink-950) 22%,
      var(--color-ink-950) 78%,
      transparent
    );
  }

  .programs-short ~ .pricing {
    position: relative;
    z-index: 2;
    margin-top: -10rem;
  }
}

@media (max-width: 699px) and (min-height: 500px) and (max-height: 640px) {
  .programs-short .mstack {
    top: 40%;
  }
}

@media (max-width: 350px) {
  .phone-hero__row {
    grid-template-columns: 1fr !important;
  }

  .phone-hero {
    padding: 1rem !important;
  }

  .form-shell {
    padding: 1rem !important;
  }

  .offer-survey {
    padding: 1.1rem !important;
  }

  .offer-option {
    padding-inline: 1rem !important;
  }
}
