
    :root {
      --paper: #faf5e9;
      --paper-2: #f1e6cd;
      --paper-3: #e8dabb;
      --card: #fffdf6;
      --line: rgba(43, 32, 20, 0.14);
      --brick: #a8412f;
      --brick-deep: #7c2e22;
      --brick-bright: #bd4631;
      --gold: #a9761f;
      --gold-soft: #d0a259;
      --gold-deep: #7d5414;
      --teal: #355c54;
      --parchment: #fffdf6;
      --parchment-2: #ece0c7;
      --ink: #2a2117;
      --ivory: #fdf8ee;
      --ink-text: #2a2117;
      --muted: rgba(43, 32, 20, 0.62);
      --shadow: 0 30px 50px -28px rgba(60, 40, 20, 0.28);
      --radius: 6px;
      --ff-display: 'Fraunces', serif;
      --ff-body: 'Inter', sans-serif;
      --ff-mono: 'Space Mono', monospace;
      --ease: cubic-bezier(.16, .84, .44, 1);
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
      }
    }

    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--ff-body);
      font-size: 16px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    h1,
    h2,
    h3,
    h4 {
      font-family: var(--ff-display);
      font-weight: 500;
      margin: 0;
      color: var(--ink);
    }

    p {
      margin: 0 0 1.1em;
    }

    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 28px;
    }

    :focus-visible {
      outline: 2px solid var(--gold-soft);
      outline-offset: 3px;
    }

    .eyebrow {
      font-family: var(--ff-mono);
      font-size: 0.72rem;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--gold-soft);
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }

    .eyebrow::before {
      content: '';
      width: 26px;
      height: 1px;
      background: var(--gold-soft);
      display: inline-block;
    }

    /* ---------- gothic arch clip path (signature motif) ---------- */
    svg.defs {
      position: absolute;
      width: 0;
      height: 0;
    }

    .frame {
      position: relative;
      clip-path: url(#archClip);
      -webkit-clip-path: url(#archClip);
      overflow: hidden;
      background: linear-gradient(155deg, var(--brick-bright) 0%, var(--brick) 55%, var(--gold-deep) 100%);
    }

    .frame img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .frame .frame-fallback {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(246, 241, 230, 0.5);
    }

    .frame .frame-fallback svg {
      width: 34%;
      height: 34%;
      opacity: .8;
    }

    .frame .frame-tag {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      font-family: var(--ff-mono);
      font-size: 0.62rem;
      letter-spacing: .04em;
      color: rgba(246, 241, 230, 0.55);
      padding: 6px 10px 16px;
      text-align: center;
      pointer-events: none;
    }

    /* arch skyline divider */
    .skyline {
      display: flex;
      justify-content: center;
      gap: 6px;
      padding: 38px 0;
      opacity: .55;
    }

    .skyline span {
      width: 18px;
      height: 30px;
      clip-path: url(#archClipSmall);
      background: var(--gold);
    }

    .skyline span:nth-child(2n) {
      height: 42px;
      background: var(--brick-bright);
    }

    .skyline span:nth-child(3n) {
      height: 24px;
      background: var(--teal);
    }

    /* =================== HEADER / NAV =================== */
    header.site {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2147483647 !important;
      padding: 22px 0;
      transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
      border-bottom: 1px solid transparent;
    }

    header.site.scrolled {
      padding: 12px 0;
      background: rgba(250, 245, 233, 0.92);
      backdrop-filter: blur(10px);
      border-color: var(--line);
      box-shadow: 0 8px 24px -16px rgba(60, 40, 20, 0.25);
    }

    header.site .bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--ff-display);
    }

    .brand .mark {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid var(--gold-soft);
      position: relative;
      flex: none;
    }

    .brand .mark::before {
      content: '';
      position: absolute;
      inset: 7px;
      border-radius: 50%;
      background: var(--gold-soft);
      box-shadow: 0 0 12px 1px var(--gold-soft);
    }

    .brand .word {
      font-size: 1.18rem;
      letter-spacing: .01em;
      line-height: 1;
    }

    .brand .word small {
      display: block;
      font-family: var(--ff-mono);
      font-size: .6rem;
      letter-spacing: .18em;
      color: var(--muted);
      margin-top: 4px;
      text-transform: uppercase;
    }

    nav.primary {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    nav.primary>ul {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    nav.primary>ul>li {
      position: relative;
    }

    nav.primary>ul>li>a,
    nav.primary>ul>li>button {
      font-family: var(--ff-body);
      font-size: .92rem;
      font-weight: 500;
      color: var(--ink);
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      transition: background .2s var(--ease), color .2s var(--ease);
    }

    nav.primary>ul>li>a:hover,
    nav.primary>ul>li>button:hover,
    nav.primary>ul>li.open>button {
      background: rgba(168, 65, 47, 0.08);
      color: var(--brick);
    }

    nav.primary svg.chev {
      width: 10px;
      height: 10px;
      transition: transform .25s var(--ease);
    }

    nav.primary li.open svg.chev {
      transform: rotate(180deg);
    }

    .cta-call {
      font-family: var(--ff-mono);
      font-size: .74rem;
      letter-spacing: .05em;
      color: var(--ink);
      background: var(--gold-soft);
      padding: 10px 16px;
      border-radius: 999px;
      white-space: nowrap;
      transition: background .2s var(--ease), transform .2s var(--ease);
    }

    .cta-call:hover {
      background: var(--ivory);
      transform: translateY(-1px);
    }

    /* mega menu */
    .mega {
      position: absolute;
      top: calc(100% + 14px);
      left: 50%;
      transform: translate(-50%, 8px);
      width: min(880px, 86vw);
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: var(--shadow);
      padding: 28px;
      display: none;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px 28px;
      opacity: 0;
      transition: opacity .22s var(--ease), transform .22s var(--ease);
    }

    nav.primary li.open .mega {
      display: grid;
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .mega .col h4 {
      font-family: var(--ff-mono);
      font-size: .68rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--gold-soft);
      margin-bottom: 12px;
      font-weight: 700;
    }

    .mega .col ul li {
      margin-bottom: 7px;
    }

    .mega .col ul li a {
      font-size: .88rem;
      color: var(--muted);
      transition: color .15s var(--ease), padding-left .15s var(--ease);
      display: block;
    }

    .mega .col ul li a:hover {
      color: var(--brick);
      padding-left: 3px;
    }

    .mega.two-col {
      grid-template-columns: repeat(2, 1fr);
      width: min(460px, 86vw);
    }

    .menu-toggle {
      display: none;
      background: none;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 10px;
      cursor: pointer;
    }

    .menu-toggle span {
      display: block;
      width: 19px;
      height: 1.5px;
      background: var(--ink);
      margin: 4px 0;
      transition: transform .25s, opacity .25s;
    }

    header.open .menu-toggle span:nth-child(1) {
      transform: translateY(5.5px) rotate(45deg);
    }

    header.open .menu-toggle span:nth-child(2) {
      opacity: 0;
    }

    header.open .menu-toggle span:nth-child(3) {
      transform: translateY(-5.5px) rotate(-45deg);
    }

    /* =================== HERO =================== */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
      padding-bottom: 90px;
      background-color: var(--paper);
      background-image:
        radial-gradient(rgba(43, 32, 20, 0.07) 1px, transparent 1.5px),
        radial-gradient(140% 95% at 50% -10%, var(--paper-2) 0%, var(--paper) 62%);
      background-size: 24px 24px, 100% 100%;
      background-position: 0 0, 0 0;
      border-bottom: 1px solid var(--line);
    }

    .constellation {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      -webkit-mask-image: radial-gradient(ellipse at 25% 65%, transparent 10%, black 50%);
      mask-image: radial-gradient(ellipse at 25% 65%, transparent 10%, black 50%);
    }

    .constellation .links {
      stroke: var(--brick);
      stroke-width: 0.7;
      opacity: .32;
      fill: none;
    }

    .constellation .node circle {
      fill: var(--gold-deep);
    }

    .constellation .node circle.big {
      fill: var(--brick-bright);
    }

    .constellation .node text {
      font-family: var(--ff-mono);
      font-size: 10px;
      letter-spacing: .06em;
      fill: rgba(43, 32, 20, 0.6);
      text-transform: uppercase;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .hero-content .container {
      display: flex;
      flex-direction: column;
      gap: 26px;
    }

    .hero-eyebrow {
      font-family: var(--ff-mono);
      font-size: .78rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--gold-soft);
      display: flex;
      gap: 10px 18px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 8px;
    }

    .hero-eyebrow span {
      opacity: .7;
    }

    h1.hero-title {
      font-size: clamp(1.8rem, 4.8vw, 3.4rem);
      font-weight: 400;
      line-height: 1.2;
      max-width: 26ch;
      letter-spacing: -0.01em;
      text-shadow:
        0 0 15px var(--paper),
        0 0 30px var(--paper),
        0 0 45px var(--paper);
    }

    h1.hero-title em {
      font-style: italic;
      font-weight: 300;
      color: var(--brick);
    }

    .hero-sub {
      max-width: 46ch;
      font-size: 1.08rem;
      color: var(--muted);
      margin: 0;
      text-shadow:
        0 0 8px var(--paper),
        0 0 16px var(--paper);
    }

    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .btn {
      font-family: var(--ff-body);
      font-weight: 600;
      font-size: .92rem;
      padding: 14px 24px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
      border: 1px solid transparent;
    }

    .btn-primary {
      background: var(--brick-bright);
      color: var(--ivory);
    }

    .btn-primary:hover {
      background: var(--brick);
      transform: translateY(-2px);
    }

    .btn-ghost {
      border-color: var(--line);
      color: var(--ink);
    }

    .btn-ghost:hover {
      border-color: var(--brick);
      color: var(--brick);
    }

    .scroll-cue {
      position: absolute;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-family: var(--ff-mono);
      font-size: .62rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--muted);
      z-index: 2;
    }

    .scroll-cue .line {
      width: 1px;
      height: 34px;
      background: linear-gradient(var(--brick), transparent);
      animation: dropline 1.8s var(--ease) infinite;
    }

    @keyframes dropline {
      0% {
        transform: scaleY(0);
        transform-origin: top;
      }

      50% {
        transform: scaleY(1);
        transform-origin: top;
      }

      50.01% {
        transform-origin: bottom;
      }

      100% {
        transform: scaleY(0);
        transform-origin: bottom;
      }
    }

    /* =================== REVEAL =================== */
    .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity .8s var(--ease), transform .8s var(--ease);
    }

    .reveal.in-view {
      opacity: 1;
      transform: none;
    }

    /* =================== INTRO =================== */
    .intro {
      padding: 110px 0 30px;
      position: relative;
    }

    .intro-grid {
      display: grid;
      grid-template-columns: 1.7fr 1fr;
      gap: 64px;
      align-items: start;
    }

    .intro h2 {
      font-size: clamp(1.9rem, 3.4vw, 2.7rem);
      line-height: 1.18;
      margin-bottom: 22px;
      font-weight: 400;
    }

    .intro h2 em {
      color: var(--gold-soft);
      font-style: italic;
    }

    .intro p {
      color: var(--muted);
      font-size: 1.04rem;
    }

    .intro p strong {
      color: var(--ink);
      font-weight: 600;
    }

    .intro-note {
      border-left: 1px solid var(--line);
      padding-left: 26px;
      font-family: var(--ff-display);
      font-style: italic;
      font-size: 1.2rem;
      color: var(--gold-soft);
      line-height: 1.5;
      align-self: start;
      position: sticky;
      top: 130px;
    }

    .intro-note span {
      display: block;
      margin-top: 14px;
      font-family: var(--ff-mono);
      font-style: normal;
      font-size: .7rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* =================== STATS STRIP =================== */
    .container .stats {
      margin: 70px 0;
      padding: 34px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .stats .stat {
      padding: 0 24px;
      border-left: 1px solid var(--line);
    }

    .stats .stat:first-child {
      border-left: none;
      padding-left: 0;
    }

    .stats .stat .num {
      font-family: var(--ff-mono);
      font-size: 1.7rem;
      color: var(--gold-soft);
    }

    .stats .stat .lbl {
      font-family: var(--ff-mono);
      font-size: .66rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 6px;
    }

    /* =================== SECTION HEADS =================== */
    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 24px;
      margin-bottom: 46px;
      flex-wrap: wrap;
    }

    .section-head h2 {
      font-size: clamp(1.9rem, 3.4vw, 2.6rem);
      font-weight: 400;
      max-width: 18ch;
    }

    .section-head h2 em {
      font-style: italic;
      color: var(--gold-soft);
    }

    .section-head .more {
      font-family: var(--ff-mono);
      font-size: .76rem;
      letter-spacing: .06em;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 8px;
      padding-bottom: 6px;
      white-space: nowrap;
    }

    .section-head .more:hover {
      color: var(--gold-soft);
    }

    /* =================== HUB GRID =================== */
    .hub {
      padding: 70px 0 110px;
      background: var(--paper-2);
    }

    .hub-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 26px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
    }

    .card:hover {
      transform: translateY(-6px);
      border-color: var(--brick);
      background: var(--paper-2);
      box-shadow: var(--shadow);
    }

    .card .frame {
      width: 64px;
      height: 78px;
      flex: none;
    }

    .card .frame .frame-fallback svg {
      width: 46%;
      height: 46%;
    }

    .card h3 {
      font-size: 1.18rem;
      font-weight: 500;
    }

    .card p {
      color: var(--muted);
      font-size: .92rem;
      margin: 0;
      flex: 1;
    }

    .card .go {
      font-family: var(--ff-mono);
      font-size: .7rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--gold-soft);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
    }

    .card .go svg {
      width: 12px;
      height: 12px;
      transition: transform .25s var(--ease);
    }

    .card:hover .go svg {
      transform: translateX(4px);
    }

    .hub-grid .card.wide {
      grid-column: span 2;
      flex-direction: row;
      align-items: flex-start;
    }

    .hub-grid .card.wide .frame {
      width: 96px;
      height: 118px;
    }

    /* =================== ZABYTKI GALLERY =================== */
    .gallery-wrap {
      padding: 30px 0 110px;
    }

    .gallery {
      display: flex;
      gap: 22px;
      overflow-x: auto;
      padding: 10px 0 26px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }

    .gallery::-webkit-scrollbar {
      height: 6px;
    }

    .gallery::-webkit-scrollbar-thumb {
      background: var(--line);
      border-radius: 6px;
    }

    .gallery .g-card {
      flex: none;
      width: 248px;
      scroll-snap-align: start;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .gallery .g-card .frame {
      width: 100%;
      height: 300px;
    }

    .gallery .g-card h4 {
      font-size: 1.02rem;
      font-weight: 500;
    }

    .gallery .g-card .tag {
      font-family: var(--ff-mono);
      font-size: .66rem;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* =================== PERSONAL NOTE =================== */
    .note {
      padding: 30px 0 110px;
    }

    .note-card {
      background: var(--parchment);
      color: var(--ink-text);
      border-radius: 18px;
      padding: 60px;
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 50px;
      align-items: center;
      box-shadow: var(--shadow);
    }

    .note .frame {
      width: 100%;
      aspect-ratio: 3/3.6;
      background: linear-gradient(155deg, #d8c79e, #bfa56e);
    }

    .note .frame .frame-fallback {
      color: rgba(42, 33, 23, 0.45);
    }

    .note .eyebrow {
      color: var(--brick-deep);
    }

    .note .eyebrow::before {
      background: var(--brick-deep);
    }

    .note h2 {
      color: var(--ink-text);
      font-size: clamp(1.7rem, 3vw, 2.3rem);
      font-weight: 400;
      margin-bottom: 18px;
    }

    .note h2 em {
      font-style: italic;
      color: var(--brick-deep);
    }

    .note p {
      color: rgba(42, 33, 23, 0.78);
      font-size: 1.02rem;
    }

    .note .sig {
      font-family: var(--ff-display);
      font-style: italic;
      font-size: 1.3rem;
      color: var(--brick-deep);
      margin-top: 8px;
    }

    /* =================== FAQ (NOWA SEKCJA) =================== */
    .faq-wrap {
      padding: 40px 0 90px;
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 900px;
      margin: 0 auto;
    }

    .faq-item {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px 26px;
      transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    }

    .faq-item:hover {
      border-color: var(--brick);
      box-shadow: 0 8px 24px -12px rgba(60, 40, 20, 0.15);
    }

    .faq-item details>summary {
      list-style: none;
      cursor: pointer;
      font-family: var(--ff-display);
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--ink);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .faq-item details>summary::-webkit-details-marker {
      display: none;
    }

    .faq-item details>summary::after {
      content: '+';
      font-family: var(--ff-mono);
      color: var(--brick);
      font-size: 1.6rem;
      transition: transform .3s var(--ease);
      line-height: 1;
      margin-left: 16px;
      flex-shrink: 0;
    }

    .faq-item details[open]>summary::after {
      transform: rotate(45deg);
    }

    .faq-item details p {
      margin-top: 16px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    .faq-item details p strong {
      color: var(--ink);
    }

    /* =================== PLAN VISIT =================== */
    .plan {
      padding: 80px 0 120px;
      background: var(--paper-2);
    }

    .plan-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 18px;
    }

    .plan-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: border-color .25s var(--ease), background .25s var(--ease);
    }

    .plan-card:hover {
      border-color: var(--teal);
      background: rgba(60, 106, 97, 0.12);
    }

    .plan-card svg {
      width: 26px;
      height: 26px;
      color: var(--gold-soft);
    }

    .plan-card h4 {
      font-size: 1rem;
      font-weight: 500;
    }

    .plan-card span {
      font-family: var(--ff-mono);
      font-size: .78rem;
      color: var(--muted);
    }

    /* =================== FOOTER =================== */
    footer.site {
      background: var(--paper-3);
      border-top: 2px solid var(--brick);
      padding: 80px 0 30px;
    }

    .foot-top {
      display: grid;
      grid-template-columns: 1.4fr repeat(4, 1fr);
      gap: 40px;
      padding-bottom: 60px;
    }

    .foot-brand .word {
      font-family: var(--ff-display);
      font-size: 1.3rem;
    }

    .foot-brand p {
      color: var(--muted);
      font-size: .9rem;
      max-width: 32ch;
      margin-top: 14px;
    }

    footer h5 {
      font-family: var(--ff-mono);
      font-size: .68rem;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--brick-deep);
      margin-bottom: 16px;
      font-weight: 700;
    }

    footer .foot-col ul li {
      margin-bottom: 10px;
    }

    footer .foot-col ul li a {
      color: var(--muted);
      font-size: .88rem;
      transition: color .15s;
    }

    footer .foot-col ul li a:hover {
      color: var(--ink);
    }

    .foot-bottom {
      border-top: 1px solid var(--line);
      padding-top: 26px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      font-family: var(--ff-mono);
      font-size: .72rem;
      color: var(--muted);
    }

    /* =================== RESPONSIVE =================== */
    @media (max-width:1080px) {
      .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .intro-note {
        position: static;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 20px;
      }

      .hub-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .hub-grid .card.wide {
        grid-column: span 2;
        flex-direction: column;
      }

      .container .stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
      }

      .stats .stat:nth-child(3) {
        border-left: none;
      }

      .note-card {
        grid-template-columns: 1fr;
        padding: 40px;
      }

      .note .frame {
        max-width: 220px;
      }

      .plan-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .foot-top {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width:860px) {

      .hero-content {
        padding-top: 110px;
      }

      nav.primary {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      .cta-call {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      .cta-call {
        display: none;
      }

      header.site.open {
        backdrop-filter: none !important;
        background: var(--paper) !important;
      }

      header.site.open nav.primary {
        display: block;
        position: fixed;
        inset: 0;
        top: 58px;
        background: var(--paper);
        padding: 20px 24px;
        overflow-y: auto;
      }

      header.site.open nav.primary>ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
      }

      header.site.open nav.primary>ul>li>a,
      header.site.open nav.primary>ul>li>button {
        width: 100%;
        justify-content: space-between;
        padding: 16px 6px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
      }

      .mega {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: none;
        padding: 6px 0 6px 14px;
        grid-template-columns: 1fr 1fr;
        display: none;
      }

      nav.primary li.open .mega {
        display: grid;
      }

      .mega.two-col {
        width: 100%;
      }

      .hub-grid {
        grid-template-columns: 1fr;
      }

      .hub-grid .card,
      .hub-grid .card.wide {
        grid-column: span 1;
        flex-direction: row;
        align-items: center;
        padding: 16px;
        gap: 18px;
      }

      .hub-grid .card .frame,
      .hub-grid .card.wide .frame {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
      }

      .hub-grid .card p {
        display: none;
      }

      .plan-grid {
        grid-template-columns: 1fr 1fr;
      }

      .container .stats {
        grid-template-columns: 1fr 1fr;
      }

      .foot-top {
        grid-template-columns: 1fr;
        gap: 34px;
      }

      .gallery .g-card {
        width: 200px;
      }

      .gallery .g-card .frame {
        height: 240px;
      }
    }

    /* Przycisk powrotu na górę strony */
    #backToTop {
      position: fixed;
      right: 24px;
      bottom: 115px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--brick);
      color: var(--ivory);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2147483646;
      opacity: 0;
      visibility: hidden;
      transform: translateY(15px);
      transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s var(--ease);
      box-shadow: 0 4px 12px rgba(60, 40, 20, 0.25);
    }

    #backToTop.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    #backToTop:hover {
      background: var(--brick-deep);
    }

    @media (max-width: 860px) {
      #backToTop {
        right: 16px;
        bottom: 100px;
        width: 42px;
        height: 42px;
      }
    }