/* Pan PV — przywrócony pasek desktopowy; menu pełnoekranowe wyłącznie na telefonie. */

@media (min-width: 761px) {
  .site-header {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  }

  .site-header .header-inner {
    width: 100%;
    min-height: 76px;
    height: auto;
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }

  .site-header .brand {
    position: static;
    width: 90px;
    height: 58px;
    flex: 0 0 90px;
  }

  .site-header .brand img {
    width: 90px;
    height: 90px;
    transform: translateY(-16px);
  }

  .site-header .main-nav,
  .site-header .main-nav.is-open {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    width: auto;
    height: auto;
    max-height: none;
    min-width: 0;
    flex: 1 1 auto;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 0 clamp(6px, .78vw, 16px);
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: clamp(10px, .73vw, 13px);
    line-height: 1.4;
  }

  .site-header .main-nav a,
  .site-header .main-nav a:link,
  .site-header .main-nav a:visited {
    display: block;
    min-height: 0;
    padding: 15px 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: none;
    font: inherit;
    letter-spacing: normal;
    line-height: 1.4;
    white-space: nowrap;
    text-shadow: none;
    animation: none;
  }

  .site-header .main-nav a::before,
  .site-header .main-nav a::after {
    content: none;
    display: none;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a:focus-visible,
  .site-header .main-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    text-shadow: none;
    animation: none;
  }

  .site-header .header-tools {
    position: static;
    z-index: auto;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: 0;
  }

  .site-header .theme-toggle {
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
  }

  .site-header .theme-toggle:hover { background: var(--panel); }
  .site-header .menu-toggle { display: none !important; }

  body.menu-open { overflow: auto; }
  body.menu-open .site-header {
    border-bottom-color: color-mix(in srgb, var(--line) 74%, transparent);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(24px);
  }
  body.menu-open .theme-toggle { color: var(--muted); background: none; }
}

@media (max-width: 760px) {
  .site-header .header-inner {
    height: 68px;
    padding: 0 18px;
    justify-content: space-between;
    gap: 10px;
  }

  .site-header .brand {
    position: relative;
    z-index: 104;
    width: 92px;
    height: 53px;
    flex-basis: 92px;
  }

  .site-header .brand img {
    width: 92px;
    height: 92px;
    transform: translateY(-20px);
  }

  .site-header .header-tools {
    position: relative;
    z-index: 104;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .site-header .theme-toggle {
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 0;
    background: none;
  }

  .site-header .menu-toggle,
  .site-header .menu-toggle[aria-expanded="false"],
  .site-header .menu-toggle[aria-expanded="true"] {
    display: inline-flex !important;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .site-header .menu-toggle::before { content: none; display: none; }
  .site-header .menu-toggle span,
  .site-header .menu-toggle span + span {
    display: block;
    width: 23px;
    height: 1.5px;
    margin: 0;
    background: currentColor;
  }

  .site-header .menu-toggle[aria-expanded="true"] { color: #fff; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .site-header .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 101;
    display: none;
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 96px 24px max(116px, calc(34px + env(safe-area-inset-bottom)));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border: 0;
    background:
      radial-gradient(circle at 8% 108%, rgba(0,104,213,.34), transparent 35%),
      radial-gradient(circle at 96% -6%, rgba(78,148,255,.17), transparent 30%),
      #080b15;
    color: #f7f9ff;
    counter-reset: pv-mobile-nav;
  }

  .site-header .main-nav.is-open { display: flex; }

  .site-header .main-nav a,
  .site-header .main-nav a:link,
  .site-header .main-nav a:visited {
    counter-increment: pv-mobile-nav;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    gap: 11px;
    align-items: center;
    min-height: 62px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    border-radius: 0;
    background: none;
    color: #dbe4f7;
    font-size: clamp(25px, 7.3vw, 35px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.045em;
    white-space: normal;
    text-shadow: none;
    animation: none;
  }

  .site-header .main-nav a::before {
    content: counter(pv-mobile-nav, decimal-leading-zero);
    display: block;
    color: #647087;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .site-header .main-nav a::after {
    content: "›";
    display: block;
    color: #69758b;
    font-size: 25px;
    font-weight: 300;
    text-align: right;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a:focus-visible,
  .site-header .main-nav a[aria-current="page"] {
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    animation: none;
  }

  .site-header .main-nav a[aria-current="page"]::before,
  .site-header .main-nav a[aria-current="page"]::after { color: #69bcff; }

  body.menu-open { overflow: hidden; }
  body.menu-open .site-header {
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
  }
  body.menu-open .theme-toggle { color: #c4cee0; background: rgba(255,255,255,.06); }
  body.menu-open .mobile-cta-bar,
  body.menu-open .floating-phone {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .site-header .header-inner { gap: 10px; padding-inline: 14px; }
  .site-header .brand { width: 76px; flex-basis: 76px; }
  .site-header .brand img { width: 76px; height: 76px; transform: translateY(-9px); }
  .site-header .main-nav { gap: 0 6px; font-size: 9px; }
  .site-header .main-nav a { padding-block: 10px; }
}
