
.navbar__burger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {
  html, body { overflow-x: hidden; }
  .page { width: 100%; max-width: 100%; }

  .slogan, .services, .stats, .projects, .process,
  .about, .partners, .reviews, .faq, .cta, .footer { margin-top: 0; }

  .cta { position: relative; height: auto; }

  .t-h2, .t-h2-thin { font-size: 40px; line-height: 48px; }
  .t-h2 { letter-spacing: -0.02em; }
  .t-h2-thin { letter-spacing: -0.08em; }

  .hero { width: 100%; height: auto; min-height: 100svh; display: flex; flex-direction: column; }

  .hero__sep {
    background-image: url('/assets/ui/dash-line-mobile.svg');
    background-size: 375px 16px;
    background-repeat: repeat-x;
  }

  .hero__main {
    position: relative; inset: auto; z-index: 2;
    flex: 1 1 auto;
    width: auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(88px + env(safe-area-inset-bottom, 0px));
    gap: 24px;
    justify-content: space-between;
  }

  .khero__nav, .khontakt-hero__nav, .polhero__nav, .dhero__nav, .phero__nav { margin-top: env(safe-area-inset-top, 0px); }
  .ohero__nav { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }

  .navbar {
    width: 100%; height: 72px;
    padding: 10px 16px 10px 24px;
    border-radius: 0 20px 0 20px;
  }
  .navbar__nav, .navbar__quote { display: none; }
  .navbar__cta { gap: 8px; }

  .navbar__lang-wrap .lang-menu { right: 0; }
  .navbar__burger {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--light-8);
    color: var(--light-white);
    border-radius: 0 var(--r-btn) 0 var(--r-btn);
    --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 100%);
    transition: background-color .3s ease;
  }
  .navbar__burger:hover { background: var(--light-16); }
  .navbar__burger svg { width: 22px; height: 22px; }

  .navbar__burger .corner { display: none; }
  .navbar__burger .corner--tl,
  .navbar__burger .corner--br { display: block; --corner-color: var(--light-white); }

  .burger { position: relative; display: block; width: 22px; height: 22px; }
  .burger i {
    position: absolute; left: 0; height: 1.65px;
    background: currentColor; border-radius: 2px;
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), opacity .2s ease;
  }
  .burger i:nth-child(1) { width: 11px;   left: 2.75px; top: 4.675px; }
  .burger i:nth-child(2) { width: 16.5px; left: 2.75px; top: 10.175px; }
  .burger i:nth-child(3) { width: 11px;   left: 8.25px; top: 15.675px; }

  .navbar__burger[aria-expanded="true"] .burger i:nth-child(1),
  .mobile-menu.is-open .mobile-menu__close .burger i:nth-child(1) { transform: translate(2.75px, 5.5px) rotate(45deg) scaleX(1.6); }
  .navbar__burger[aria-expanded="true"] .burger i:nth-child(2),
  .mobile-menu.is-open .mobile-menu__close .burger i:nth-child(2) { opacity: 0; }
  .navbar__burger[aria-expanded="true"] .burger i:nth-child(3),
  .mobile-menu.is-open .mobile-menu__close .burger i:nth-child(3) { transform: translate(-2.75px, -5.5px) rotate(-45deg) scaleX(1.6); }

  .hero__content { width: 100%; gap: 16px; }

  .hero__head {
    position: static; width: 100%; height: auto;
    display: flex; flex-direction: column; gap: 0;
  }
  .hero__head .hl-1,
  .hero__head .hl-2 { position: static; left: auto; top: auto; white-space: normal; letter-spacing: 0; }
  .hero__head .hl-1 { font: 400 64px/72px "Geologica Cursive", sans-serif; margin-bottom: -13px; letter-spacing: -0.08em; }
  .hero__head .hl-2 {
    font: 700 64px/51px "adineue PRO Cyr", sans-serif;
    align-self: stretch; text-align: right; padding-left: 32px;
  }

  .hero__badge { position: static; left: auto; top: auto; order: -1; align-self: flex-start; margin-bottom: 16px; }

  .hero__row { flex-direction: column; align-items: stretch; gap: 32px; width: 100%; }
  .hero__overview { gap: 24px; align-items: stretch; width: 100%; }
  .hero__desc { width: 100%; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

  .btn-split { width: 100%; }
  .btn-split__text { flex: 1 0 0; justify-content: center; }

  .hero__cta-card { width: 100%; height: 172px; }

  .hero__phone { display: flex; width: 64px; height: 64px; right: 16px; bottom: 16px; }

  .mobile-menu {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 0; z-index: 60;
    background: rgba(17, 17, 17, 0.64);
    -webkit-backdrop-filter: blur(17.5px); backdrop-filter: blur(17.5px);
    padding: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }

  .mobile-menu__bar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 72px;
    padding: 10px 16px 10px 24px;
    border-radius: 0 var(--r-nav) 0 0;
    --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(-12px);
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-menu.is-open .mobile-menu__bar { transform: translateY(0); }
  .mobile-menu__logo { height: 36px; width: auto; }

  .mobile-menu__nav {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 0 0 0 var(--r-nav);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1) .12s, opacity .3s ease .12s;
  }
  .mobile-menu.is-open .mobile-menu__nav { transform: scaleY(1); opacity: 1; }

  .mobile-menu__item {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 8px 16px;
    color: var(--light-64);
    transition: color .2s ease;
  }
  .mobile-menu__item:hover { color: var(--light-white); }

  .mobile-menu__item.is-active {
    color: var(--light-white);
    border-top: 1px solid var(--light-32);
    border-bottom: 1px solid var(--light-32);
    --glass-border: transparent;
  }

  .mobile-menu__div {
    width: 2px; height: 2px; flex: none;
    border-radius: 0.643px;
    background: var(--light-32);
  }

  .mobile-menu__quote {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 48px; margin-top: 4px;
    background: var(--light-8);
    color: var(--light-white);
    border-radius: 0 var(--r-btn) 0 var(--r-btn);
    --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 100%);
    text-transform: uppercase; letter-spacing: 0.02em;
    transition: background-color .3s ease;
  }
  .mobile-menu__quote:hover { background: var(--light-16); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

@media (min-width: 1440px) {
  .page { width: 100%; }

  .hero, .stats, .cta, .ohero, .phero, .polhero,
  .khero, .khontakt-hero { width: 100%; max-width: 100%; }
  .page--inwestorzy .stats { width: 100%; }

  .hero, .ohero, .khero, .khontakt-hero, .dhero { height: 816px; min-height: 0; }

  .kjobs, .ikorzysci, .kform { margin-top: 0; }

  .hero__sep { background-size: 100% 16px; }

  .hero__main, .ohero__nav, .phero__nav, .dhero__nav { left: calc(50% - 696px); }

  .cta__content, .cta__tag,
  .ohero__content,
  .phero__head, .phero__stats,
  .polhero__title, .polhero__date,
  .khero__title-thin, .khero__sub { left: calc(50% - 640px); }
  .khero__title-bold { left: calc(50% - 401px); }
  .khero__btn { right: calc(50% - 640px); }

  .khontakt-hero__content { padding-left: calc(50% - 640px); padding-right: calc(50% - 640px); }

  .about, .partners, .reviews, .slogan, .process__block { width: 100%; max-width: 100%; }

  .about__tag, .about__content { left: calc(50% - 640px); }
  .about__cta { right: calc(50% - 640px); }
  .about__content { max-width: var(--content-w); }

  .partners__head { left: calc(50% - 640px); }

  .process__block { padding-left: calc(50% - 640px); padding-right: calc(50% - 640px); }
  .reviews__inner { padding-left: calc(50% - 640px); padding-right: calc(50% - 640px); }

  .footer { width: 100%; }
  .footer__addr { left: calc(50% + 12px); }
  .footer__row { padding-left: calc(50% - 640px); padding-right: calc(50% - 640px); }
  .footer__bottom { margin-left: calc(50% - 640px); margin-right: calc(50% - 640px); }

  .mform__panel, .ksuccess__panel { max-width: 100%; }
  .mform__close, .ksuccess__close { right: calc(50% - 672px); }

  .faq { width: 100%; }
  .faq__header { left: calc(50% - 640px); }
  .faq__topics { left: calc(50% - 660px); }
  .faq__list   { left: calc(50% - 24px); }

  .ohistoria, .owartosci, .ozespol, .ocerty,
  .kjobs, .kproces, .kopinie,
  .projekty, .poldoc, .pspecs, .kform,
  .dhero, .pgallery, .ptask, .popinion { width: 100%; max-width: 100%; }

  .dhero__content, .pgallery__tag, .pgallery__caption { left: calc(50% - 640px); }
}
