.site-header {
  z-index: 60;
}

.brand-mark {
  font-size: clamp(30px, 2.65vw, 40px);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-logo {
  width: 230px;
  height: 70px;
  display: block;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}

/*
 * Platform examples must read as portfolio demonstrations, never as live
 * interfaces or endorsements. Keep this disclosure prominent at every
 * breakpoint so visual and automated classifiers receive the same context.
 */
.demo-disclosure {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: #071a32;
  color: rgba(255, 255, 255, 0.88);
  font: 700 10px/1.35 "Manrope", Arial, sans-serif;
  letter-spacing: 0.015em;
  box-shadow: 0 8px 20px rgba(7, 26, 50, 0.14);
}

.demo-disclosure strong {
  flex: 0 0 auto;
  color: #ffcf6c;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.example-disclosure {
  width: fit-content;
  margin: 0 0 13px;
  padding: 7px 10px;
  border: 1px solid rgba(8, 116, 203, 0.22);
  border-radius: 7px;
  background: rgba(228, 241, 255, 0.88);
  color: #075f9f;
  font: 700 10px/1.3 "Manrope", Arial, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ai-demo-mark,
.safe-platform-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 116, 203, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font: 700 8px/1 "Manrope", Arial, sans-serif;
}

.safe-platform-mark {
  width: 31px;
  height: 31px;
  border-color: rgba(7, 26, 50, 0.13);
  background: var(--ink);
  color: white;
}

.safe-platform-mark--small {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 7px;
}

.demo-interface-label {
  color: #36536e;
  font: 700 8px/1.25 "Manrope", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.google-intent-demo.google-serp-demo {
  gap: 0;
}

.google-intent-demo.google-serp-demo > .demo-disclosure {
  border-radius: 0;
}

.google-intent-demo.google-serp-demo .google-serp-header {
  grid-template-columns: 78px minmax(0, 1fr);
}

.google-intent-demo.google-serp-demo .google-serp-search {
  grid-template-columns: minmax(0, 1fr) 17px;
}

.google-intent-demo.google-serp-demo .google-serp-nav {
  padding-left: 110px;
}

.social-demand-demo.social-device-demo > .demo-disclosure {
  width: 100%;
}

/*
 * Fullpage's fixed header sits outside the art-directed compositions. Center
 * each remaining desktop content group inside the visible area below it,
 * while keeping background photography and slide numbers fixed.
 */
@media (min-width: 1101px) {
  /*
   * Ukrainian headings are materially longer than their English source copy.
   * Keep the Ukrainian composition inside the text columns without changing
   * the original English art direction.
   */
  html[lang="uk"] .geo-panel-local .geo-panel-copy {
    left: 52%;
    width: 42%;
  }

  html[lang="uk"] .geo-panel-local .geo-panel-copy h3 {
    font-size: 34px;
    line-height: 1.05;
    white-space: normal;
  }

  html[lang="uk"] .geo-panel-authority .geo-panel-copy h3 {
    font-size: 34px;
    line-height: 1.05;
    white-space: normal;
  }

  html[lang="uk"] .geo-panel-local .geo-panel-copy p {
    margin-left: 0;
    font-size: 18px;
    line-height: 1.35;
  }

  html[lang="uk"] .geo-panel-local .geo-panel-copy p span {
    display: inline;
  }

  html[lang="uk"] .geo-panel-local-art {
    width: 380px;
  }

  html[lang="uk"] .audit-copy h2 {
    width: 560px;
    font-size: 64px;
    line-height: 0.95;
    transform: none;
  }

  html[lang="uk"] .local-seo-copy h2 {
    width: 590px;
    font-size: 66px;
  }

  html[lang="uk"] .paid-acquisition-copy h2 {
    width: 560px;
    font-size: 64px;
    transform: none;
  }

  html[lang="uk"] .slide-nine-index {
    bottom: 24px;
  }

  html.fp-enabled .hero-copy {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  html.fp-enabled .slide-two-copy {
    justify-content: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  html.fp-enabled .dialogue-stack,
  html.fp-enabled .audit-copy,
  html.fp-enabled .local-seo-copy {
    top: calc(
      50% + (42px / var(--home-frame-scale, 1))
    );
    transform: translateY(-50%);
  }

  html.fp-enabled .dialogue-stack {
    top: calc(50% + 42px);
  }

  html.fp-enabled .lead-system-frame {
    top: clamp(
      0px,
      calc(
        42px +
          (
            100dvh -
              min(857px, 51.256vw)
          ) /
          2
      ),
      260px
    );
  }

  html.fp-enabled .lead-system-copy {
    translate: 0 32px;
  }

  html.fp-enabled .lead-system-phone-scene-reference {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 15%,
      #000 20%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 15%,
      #000 20%,
      #000 100%
    );
  }

  .lead-route-arrow::before,
  .lead-route-arrow::after {
    width: 16px;
    top: 0;
    right: 0;
  }
}

/*
 * On wide, short desktop viewports the Ukrainian slide-three subtitle and
 * slide-four process art need their own vertical lanes. The source English
 * copy is shorter, so keep this adjustment scoped to the Ukrainian route.
 */
@media (min-width: 1600px) {
  html[lang="uk"].fp-enabled .slide-three-copy h2,
  html[lang="uk"].fp-enabled .method-heading h2 {
    font-size: clamp(82px, 5.2vw, 94px);
  }

  html[lang="uk"].fp-enabled .slide-three-copy {
    translate: 0 clamp(-105px, calc(270px - 34dvh), -70px);
  }

  html[lang="uk"].fp-enabled .method-flow {
    top: calc(
      var(--fp-stage-offset) +
        clamp(95px, calc(34dvh - 250px), 125px)
    );
  }
}

/*
 * Ukrainian copy needs a little more horizontal and vertical room on laptops.
 * Keep the fullpage composition, but separate the type from the photography
 * and process artwork before the standard stacked breakpoint takes over.
 */
@media (max-width: 1599px) and (min-width: 1101px) {
  html[lang="uk"] .hero-copy {
    width: 48%;
  }

  html[lang="uk"] #hero-title {
    max-width: 560px;
    font-size: 70px;
    line-height: 0.98;
  }

  html[lang="uk"] .hero-actions {
    gap: 20px;
  }

  html[lang="uk"] .hero-actions .button-primary {
    min-width: 260px;
    font-size: 18px;
  }

  html[lang="uk"] .hero-actions .text-link {
    gap: 10px;
    padding-right: 0;
    padding-left: 0;
    font-size: 16px;
  }

  html[lang="uk"].fp-enabled .slide-three-copy {
    translate: 0 28px;
  }

  html[lang="uk"] .slide-three-copy h2 {
    font-size: 74px;
  }

  html[lang="uk"] .geo-panel-local-art {
    width: 300px;
  }

  html[lang="uk"].fp-enabled .method-heading h2 {
    max-width: 1000px;
    font-size: 72px;
  }

  html[lang="uk"].fp-enabled .method-flow {
    top: calc(var(--fp-stage-offset) + 90px);
  }
}

/* Keep the full desktop navigation clear at compact laptop widths. */
@media (max-width: 1440px) and (min-width: 1101px) {
  .site-header {
    grid-template-columns: minmax(190px, 0.8fr) auto minmax(120px, 0.55fr);
    gap: 14px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .desktop-nav ul,
  .desktop-nav li {
    gap: 16px;
  }

  .desktop-nav li {
    font-size: 13px;
  }

  .header-actions .ai-assistant-badge {
    display: none;
  }

  .header-actions .button {
    min-width: 120px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand-logo {
    width: 190px;
    height: 64px;
  }
}

@media (max-width: 1100px) {
  /*
   * Ukrainian headings wrap earlier than the English copy. Use a fluid,
   * readable scale in the stacked layout instead of carrying desktop-sized
   * type into compact windows.
   */
  html[lang="uk"] .hero-copy {
    min-height: 570px;
    padding-top: 64px;
    padding-bottom: 92px;
  }

  html[lang="uk"] .hero-city {
    transform: none;
  }

  html[lang="uk"] #hero-title {
    max-width: min(960px, calc(100vw - 48px));
    font-size: clamp(52px, 7vw, 72px);
    line-height: 0.98;
  }

  html[lang="uk"] .hero-subline {
    max-width: 660px;
    font-size: 20px;
    line-height: 1.5;
  }

  html[lang="uk"] .slide-two h2,
  html[lang="uk"] .slide-three-copy h2,
  html[lang="uk"] .method-heading h2 {
    max-width: 880px;
    font-size: clamp(50px, 7.2vw, 74px);
    line-height: 0.98;
  }

  html[lang="uk"] .slide-three-copy p,
  html[lang="uk"] .method-heading p {
    max-width: 720px;
    font-size: 20px;
  }

  html[lang="uk"] .audit-copy h2,
  html[lang="uk"] .local-seo-copy h2,
  html[lang="uk"] .paid-acquisition-copy h2,
  html[lang="uk"] .website-showcase-copy h2,
  html[lang="uk"] .lead-system-copy h2 {
    width: auto;
    max-width: 760px;
    font-size: clamp(48px, 6.8vw, 68px);
    line-height: 0.98;
  }

  html[lang="uk"] .final-cta h2 {
    font-size: clamp(52px, 7.2vw, 74px);
    line-height: 0.98;
  }

  .demo-disclosure {
    min-height: 0;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 9px;
    font-size: 9px;
  }

  .demo-disclosure strong {
    font-size: 8px;
  }

  .example-disclosure {
    margin-bottom: 10px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .google-intent-demo.google-serp-demo .google-serp-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .google-intent-demo.google-serp-demo .google-serp-search {
    grid-template-columns: minmax(0, 1fr) 13px;
  }

  .google-intent-demo.google-serp-demo .google-serp-nav {
    padding-left: 58px;
  }

  .demo-interface-label {
    font-size: 6px;
  }

  .mobile-nav {
    display: block;
    grid-template-rows: none;
  }

  .mobile-nav-open {
    padding-top: 8px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-nav > a,
  .mobile-nav-group > a {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
  }

  .mobile-nav > a span,
  .mobile-nav-group > a span {
    font: 9px/1 "Manrope", Arial, sans-serif;
    opacity: 0.5;
  }

  .mobile-nav-group > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 16px;
    padding: 10px 0 14px 35px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-group > div a {
    padding: 7px 0;
    color: rgba(7, 26, 50, 0.72);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-actions {
    align-items: center;
    margin-top: 4px;
  }

  .mobile-actions .ai-assistant-badge {
    min-width: 0;
  }

  .brand-logo {
    width: 160px;
    height: 56px;
  }
}

@media (max-width: 560px) {
  html[lang="uk"] .hero-copy {
    min-height: 520px;
    padding: 54px 20px 90px;
  }

  html[lang="uk"] #hero-title {
    max-width: 100%;
    font-size: clamp(46px, 13.5vw, 56px);
  }

  html[lang="uk"] .hero-subline {
    font-size: 17px;
  }

  html[lang="uk"] .slide-two h2,
  html[lang="uk"] .slide-three-copy h2,
  html[lang="uk"] .method-heading h2 {
    font-size: clamp(46px, 13vw, 58px);
  }

  html[lang="uk"] .audit-copy h2,
  html[lang="uk"] .local-seo-copy h2,
  html[lang="uk"] .paid-acquisition-copy h2,
  html[lang="uk"] .website-showcase-copy h2,
  html[lang="uk"] .lead-system-copy h2 {
    font-size: clamp(44px, 12.5vw, 56px);
  }

  html[lang="uk"] .final-cta h2 {
    font-size: clamp(46px, 13vw, 58px);
  }
}
