:root {
  --mcfly-navy: #071426;
  --mcfly-ink: #10223a;
  --mcfly-muted: #657892;
  --mcfly-orange: #ff6a00;
  --mcfly-surface: #f4f6f8;
  --mcfly-line: #d8e0ea;
}

.mcfly-page {
  overflow-x: clip;
  background: #fff;
  color: var(--mcfly-ink);
}

.mcfly-page .site-header {
  position: absolute;
  z-index: 20;
  background: rgb(7 20 38 / 62%);
  backdrop-filter: blur(1rem);
}

.mcfly-page .site-header.site-header--scrolled {
  position: fixed;
  background: rgb(255 255 255 / 98%);
  backdrop-filter: none;
}

.mcfly-hero {
  position: relative;
  display: grid;
  min-height: min(52rem, 100vh);
  overflow: hidden;
  background: var(--mcfly-navy);
}

.mcfly-hero__image,
.mcfly-hero::after {
  position: absolute;
  inset: 0;
}

.mcfly-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mcfly-hero::after {
  background: linear-gradient(
    90deg,
    #071426 0%,
    rgb(7 20 38 / 96%) 34%,
    rgb(7 20 38 / 46%) 64%,
    rgb(7 20 38 / 4%) 100%
  );
  content: "";
}

.mcfly-hero__content,
.mcfly-intro,
.mcfly-contact {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
}

.mcfly-hero__content {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-top: 5rem;
  padding: 5rem 0 4.5rem;
  color: #fff;
}

.mcfly-hero h1,
.mcfly-intro h2,
.mcfly-tour h2,
.mcfly-erp h2,
.mcfly-contact h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.mcfly-hero h1 {
  max-width: 44rem;
  font-size: clamp(3rem, 5.6vw, 5.65rem);
  line-height: 0.98;
}

.mcfly-hero p {
  max-width: 37rem;
  margin: 1.45rem 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 1.1rem;
  line-height: 1.75;
}

.mcfly-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.mcfly-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.mcfly-button:hover {
  transform: translateY(-0.12rem);
}

.mcfly-button:focus-visible,
.mcfly-contact__form button:focus-visible {
  outline: 0.2rem solid rgb(255 255 255 / 82%);
  outline-offset: 0.18rem;
}

.mcfly-button--primary {
  background: var(--mcfly-orange);
  color: var(--mcfly-navy);
}

.mcfly-button--secondary {
  border-color: rgb(255 255 255 / 38%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.mcfly-button--secondary span {
  margin-left: 0.7rem;
}

.mcfly-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 9rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.mcfly-intro h2 {
  grid-column: 2;
  max-width: 49rem;
}

.mcfly-intro p {
  grid-row: 1;
  align-self: end;
  max-width: 22rem;
  margin: 0;
  padding-left: 1.1rem;
  border-left: 0.2rem solid var(--mcfly-orange);
  color: var(--mcfly-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.mcfly-intro h2,
.mcfly-tour h2,
.mcfly-erp h2,
.mcfly-contact h2 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.04;
}

.mcfly-tour {
  min-height: 500vh;
  background: var(--mcfly-surface);
}

.mcfly-tour__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.65fr);
  width: min(100% - 3rem, 82rem);
  height: 100vh;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-inline: auto;
}

.mcfly-tour__browser {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #27384e;
  border-radius: 0.85rem;
  background: #091727;
  box-shadow: 0 2.2rem 4.2rem rgb(7 20 38 / 24%);
}

.mcfly-browser__toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: clamp(2.1rem, 3.2vw, 2.65rem);
  align-items: center;
  gap: 0.65rem;
  padding: 0.32rem 0.8rem;
  border-bottom: 1px solid #243750;
  background: linear-gradient(180deg, #19344f, #0e2136);
}

.mcfly-browser__traffic {
  display: flex;
  gap: 0.35rem;
}

.mcfly-browser__traffic span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff5f57;
}

.mcfly-browser__traffic span:nth-child(2) {
  background: #febc2e;
}

.mcfly-browser__traffic span:nth-child(3) {
  background: #28c840;
}

.mcfly-browser__address {
  min-width: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 62%);
  font-size: clamp(0.54rem, 0.9vw, 0.82rem);
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcfly-tour__screens {
  position: relative;
  aspect-ratio: 1.95 / 1;
  overflow: hidden;
  background: #071b33;
}

.mcfly-tour__screens img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.mcfly-tour__screens img.is-current,
.mcfly-tour__screens img.is-incoming {
  visibility: visible;
}

.mcfly-tour__screens img.is-current {
  opacity: 1;
}

.mcfly-tour__screens img.is-incoming {
  z-index: 1;
}

.mcfly-tour__notice {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(255 106 0 / 35%);
  border-radius: 999px;
  background: #fff5ed;
  color: #a44700;
  font-size: 0.76rem;
  font-weight: 700;
}

.mcfly-tour__content {
  min-width: 0;
}

.mcfly-tour__controls {
  display: none;
}

.mcfly-tour__chapters {
  position: relative;
  min-height: 16rem;
}

.mcfly-tour__chapter {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
}

.mcfly-tour__chapter.is-current,
.mcfly-tour__chapter.is-incoming {
  visibility: visible;
}

.mcfly-tour__chapter.is-current {
  opacity: 1;
}

.mcfly-tour__chapter p,
.mcfly-contact__intro p {
  max-width: 37rem;
  margin: 1.25rem 0 0;
  color: var(--mcfly-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.mcfly-erp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.8fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 82rem) / 2));
  background: var(--mcfly-navy);
  color: #fff;
}

.mcfly-erp p {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  color: rgb(255 255 255 / 72%);
  line-height: 1.75;
}

.mcfly-erp ol {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcfly-erp li {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.mcfly-erp strong,
.mcfly-erp span {
  display: block;
}

.mcfly-erp strong {
  color: var(--mcfly-orange);
}

.mcfly-erp span {
  margin-top: 0.3rem;
  color: rgb(255 255 255 / 78%);
}

.mcfly-contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.mcfly-contact__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(16rem, 0.7fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: 2.5rem;
}

.mcfly-contact__intro p {
  max-width: 27rem;
  margin: 0;
}

.mcfly-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.85fr);
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 1.6rem 4rem rgb(7 20 38 / 12%);
}

.mcfly-contact__form {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.mcfly-contact__form label {
  display: grid;
  gap: 0.35rem;
  color: #394a61;
  font-size: 0.84rem;
  font-weight: 700;
}

.mcfly-contact__form b {
  color: var(--mcfly-orange);
}

.mcfly-contact__form em {
  color: #758398;
  font-style: normal;
  font-weight: 500;
}

.mcfly-contact__form input,
.mcfly-contact__form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #d2dce8;
  border-radius: 0.7rem;
  color: var(--mcfly-ink);
  font: inherit;
}

.mcfly-contact__form textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.mcfly-contact__form input:focus,
.mcfly-contact__form textarea:focus {
  border-color: var(--mcfly-orange);
  outline: 2px solid rgb(255 106 0 / 14%);
}

.mcfly-contact__form > p {
  margin: -0.5rem 0 0;
  color: var(--mcfly-muted);
  font-size: 0.73rem;
}

.mcfly-contact__consent {
  grid-template-columns: 1rem 1fr;
  align-items: start;
}

.mcfly-contact__consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--mcfly-orange);
}

.mcfly-contact__form button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--mcfly-orange);
  color: var(--mcfly-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mcfly-contact__card figure {
  min-height: 100%;
  margin: 0;
  background: var(--mcfly-navy);
}

.mcfly-contact__card figure img {
  width: 100%;
  height: 100%;
  min-height: 39rem;
  object-fit: cover;
}

.mcfly-contact__feedback {
  color: #b3261e;
}

@media (max-width: 62rem) {
  .mcfly-page .site-header {
    background: rgb(8 21 38 / 76%);
  }

  .mcfly-hero {
    min-height: 44rem;
  }

  .mcfly-hero::after {
    background: linear-gradient(
      90deg,
      rgb(8 21 38 / 94%),
      rgb(8 21 38 / 58%),
      rgb(8 21 38 / 25%)
    );
  }

  .mcfly-hero__image img {
    object-position: 64% center;
  }

  .mcfly-intro,
  .mcfly-erp {
    grid-template-columns: 1fr;
  }

  .mcfly-intro h2,
  .mcfly-intro p {
    grid-column: auto;
    grid-row: auto;
  }

  .mcfly-tour {
    min-height: 0;
    padding: 6rem 0 4.5rem;
  }

  .mcfly-tour__sticky {
    position: static;
    display: block;
    width: min(100% - 3rem, 42rem);
    height: auto;
  }

  .mcfly-tour__notice {
    position: static;
    width: fit-content;
    margin-top: 1rem;
  }

  .mcfly-tour__content {
    padding-top: 2rem;
  }

  .mcfly-tour__controls {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .mcfly-tour__controls button {
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--mcfly-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mcfly-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
  }

  .mcfly-tour__controls button.is-current {
    border-color: var(--mcfly-orange);
    background: #fff0e5;
    color: var(--mcfly-ink);
  }

  .mcfly-tour__chapters {
    min-height: 0;
  }

  .mcfly-tour__chapter {
    position: static;
    display: none;
    visibility: visible;
    padding: 1.7rem;
    border-radius: 1rem;
    background: #fff;
    opacity: 1;
    transform: none;
  }

  .mcfly-tour__chapter.is-current {
    display: block;
  }

  .mcfly-contact__card {
    grid-template-columns: 1fr;
  }

  .mcfly-contact__intro {
    grid-template-columns: 1fr;
  }

  .mcfly-contact__card figure {
    order: -1;
    max-height: 30rem;
  }

  .mcfly-contact__card figure img {
    min-height: 0;
    max-height: 30rem;
    object-position: center 35%;
  }
}

@media (max-width: 40rem) {
  .mcfly-hero {
    min-height: 43rem;
  }

  .mcfly-hero__content,
  .mcfly-intro,
  .mcfly-contact {
    width: min(100% - 2rem, 82rem);
  }

  .mcfly-hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.65rem);
  }

  .mcfly-hero__content {
    align-self: end;
    margin-top: 0;
    padding: 10rem 0 3rem;
  }

  .mcfly-hero::after {
    background: linear-gradient(
      180deg,
      rgb(7 20 38 / 12%) 0%,
      rgb(7 20 38 / 34%) 38%,
      rgb(7 20 38 / 88%) 72%,
      rgb(7 20 38 / 98%) 100%
    );
  }

  .mcfly-hero p {
    font-size: 0.98rem;
  }

  .mcfly-hero__actions {
    display: grid;
  }

  .mcfly-button {
    width: 100%;
  }

  .mcfly-intro,
  .mcfly-contact {
    padding-block: 4.5rem;
  }

  .mcfly-erp {
    padding: 4.5rem 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcfly-button,
  .mcfly-tour__screens img,
  .mcfly-tour__chapter {
    transition: none;
  }

  .mcfly-button:hover {
    transform: none;
  }
}
