* { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Open Sans', sans-serif;
      overflow: hidden;
      background: #000;
      -webkit-overflow-scrolling: touch;
    }
    body.animation-complete { overflow-y: auto; }

    /* ══════════════════════════════════
       INTRO WRAPPER
    ══════════════════════════════════ */
    #intro-animation {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: #000;
      overflow: hidden;
    }
    #intro-animation.fade-out {
      opacity: 0;
      transition: opacity 800ms ease;
      pointer-events: none;
    }

    /* ══════════════════════════════════
       GWIAZDA (centrum)
       ZMIANA: top: 50% STAŁE - animacja tylko przez transform
    ══════════════════════════════════ */
    .intro-logo {
      position: fixed;
      left: 50%;
      top: 50%;                         /* ← STAŁE, nigdy nie zmienia się */
      width: clamp(260px, 30vw, 400px);
      height: auto;
      transform: translate(-50%, -50%) scale(0);
      z-index: 10003;
      opacity: 0;
      filter: drop-shadow(0 0 20px rgba(255,255,255,0.55)) drop-shadow(0 0 40px rgba(255,255,255,0.25)) brightness(1.05);
      will-change: transform, opacity;
    }
    .intro-logo.show {
      animation: logoAppear 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    .intro-logo.move-up {
      animation: logoMoveUp 0.8s cubic-bezier(0.34, 0.56, 0.64, 1) forwards;
    }

    @keyframes logoAppear {
      0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
      60%  { opacity: 1; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    /*
      NAPRAWA ANIMATORA: zamiast animować 'top' (layout reflow),
      przesuwamy gwiazdę o równoważny dystans przez transform.
      top: 50% → 27% = przesunięcie w górę o 23vh
    */
    @keyframes logoMoveUp {
      0%   { transform: translate(-50%, -50%) scale(1);                   opacity: 1; }
      100% { transform: translate(-50%, calc(-50% - 23vh)) scale(0.75);  opacity: 1; }
    }

    /* ══════════════════════════════════
       LOGO KMG
       NAPRAWA: bottom STAŁE = 7vh, animacja tylko transform
    ══════════════════════════════════ */
    #kmgFloating {
      position: fixed;
      left: 50%;
      bottom: 7vh;                               /* ← STAŁE */
      transform: translateX(-50%) translateY(300px); /* ← start: poza ekranem */
      width: clamp(120px, 14vw, 190px);
      height: auto;
      z-index: 10003;
      opacity: 0;
      filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8)) drop-shadow(0 0 40px rgba(0,0,0,0.6)) drop-shadow(0 2px 8px rgba(0,0,0,1));
      will-change: transform, opacity;
      pointer-events: none;
    }
    #kmgFloating.slide-up {
      animation: kmgSlideUp 0.9s cubic-bezier(0.34, 0.56, 0.64, 1) forwards;
    }

    /*
      NAPRAWA: zamiast animować 'bottom', animujemy translateY
      Od: translateY(300px) = schowany pod ekranem
      Do: translateY(0) = na pozycji bottom: 7vh
    */
    @keyframes kmgSlideUp {
      0%   { transform: translateX(-50%) translateY(300px); opacity: 0; }
      20%  { opacity: 1; }
      100% { transform: translateX(-50%) translateY(0);     opacity: 1; }
    }

    /* ══════════════════════════════════
       LOGA BOCZNE
       NAPRAWA: left/right STAŁE (ustawiane przez JS),
                animacja tylko przez transform
    ══════════════════════════════════ */
    #logoLeft, #logoRight {
      position: fixed;
      top: 27%;                          /* ← STAŁE */
      height: auto;
      z-index: 10003;
      opacity: 0;
      /* Domyślny stan: schowane poza ekranem przez transform */
      filter: drop-shadow(0 4px 16px rgba(0,0,0,0.8)) drop-shadow(0 0 40px rgba(0,0,0,0.6)) drop-shadow(0 2px 8px rgba(0,0,0,1));
      will-change: transform, opacity;
      pointer-events: none;
    }

    #logoLeft {
      width: clamp(180px, 20vw, 270px);
      /* left ustawiane dynamicznie przez JS */
      transform: translateY(-50%) translateX(-600px); /* start: poza ekranem */
    }
    #logoRight {
      width: clamp(180px, 20vw, 270px);
      /* right ustawiane dynamicznie przez JS */
      transform: translateY(-50%) translateX(600px);  /* start: poza ekranem */
    }

    #logoLeft.slide-in {
      animation: logoSlideInLeft 0.9s cubic-bezier(0.34, 0.56, 0.64, 1) forwards;
    }
    #logoRight.slide-in {
      animation: logoSlideInRight 0.9s cubic-bezier(0.34, 0.56, 0.64, 1) forwards;
    }

    /*
      NAPRAWA: keyframes generowane w JS teraz animują tylko transform,
      nie left/right. Domyślne tutaj jako fallback.
    */
    @keyframes logoSlideInLeft {
      0%   { transform: translateY(-50%) translateX(-600px); opacity: 0; }
      20%  { opacity: 1; }
      100% { transform: translateY(-50%) translateX(0);      opacity: 1; }
    }
    @keyframes logoSlideInRight {
      0%   { transform: translateY(-50%) translateX(600px);  opacity: 0; }
      20%  { opacity: 1; }
      100% { transform: translateY(-50%) translateX(0);      opacity: 1; }
    }

    /* ══════════════════════════════════
       PANELE
    ══════════════════════════════════ */
    .slide-image {
      position: fixed;
      top: 0;
      width: 50%;
      height: 100vh;
      z-index: 10001;
      will-change: transform;
      overflow: hidden;
      background: #0a0a0a;
      contain: layout style paint;
    }

    .slide-bg {
      position: absolute;
      inset: 0;
      background-image: url('/assets/img/Generated-Image-February-21-2026---8_46PM-mlwtzmtc.webp');
      background-repeat: no-repeat;
      background-size: 200% 100%;
      opacity: 0;
      z-index: 1;
      transition: opacity 0.8s ease;
    }
    .slide-left  .slide-bg { background-position: left center; }
    .slide-right .slide-bg { background-position: right center; }
    .slide-bg.loaded { opacity: 0.82; }

    .slide-bg-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      z-index: 1;
      transition: opacity 0.8s ease;
      display: none;
    }
    .slide-bg-img.loaded { opacity: 0.82; }

    .slide-overlay {
      position: absolute;
      inset: 0;
      background: rgba(24, 28, 33, 0.70);
      z-index: 2;
    }

    .slide-left  { left: 0;  transform: translateX(-100%); }
    .slide-right { right: 0; transform: translateX(100%); }

    .slide-left.move-in  { animation: slideInLeft  1.4s cubic-bezier(0.34,0.56,0.64,1) forwards; }
    .slide-right.move-in { animation: slideInRight 1.4s cubic-bezier(0.34,0.56,0.64,1) forwards; }

    @keyframes slideInLeft  { from { transform: translateX(-100%); } to { transform: translateX(0); } }
    @keyframes slideInRight { from { transform: translateX(100%);  } to { transform: translateX(0); } }

    /* ══════════════════════════════════
       LOGA NA PANELACH
    ══════════════════════════════════ */
    .panel-logos {
      position: absolute;
      z-index: 10;
      display: flex;
      flex-direction: column;
      gap: clamp(10px, 1.6vh, 22px);
      top: clamp(20px, 3vh, 40px);
      opacity: 0;
      transform: translateY(-16px);
      transition: opacity 0.8s ease, transform 0.8s ease;
      will-change: opacity, transform;
    }
    .panel-logos.left-logos  { left: clamp(20px, 2.8vw, 40px); align-items: flex-start; }
    .panel-logos.right-logos { right: clamp(20px, 2.8vw, 40px); align-items: flex-end; }

    .slide-image .panel-logos {
      display: none !important;
    }

    /* ══════════════════════════════════
       CTA
    ══════════════════════════════════ */
    .panel-cta {
      position: absolute;
      top: 56%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.8s ease;
      z-index: 10;
      width: 85%;
      text-align: center;
      will-change: opacity;
    }
    .slide-image.show-cta .panel-cta {
      opacity: 1;
      pointer-events: auto;
    }

    .panel-cta a {
      display: inline-block;
      width: 100%;
      padding: clamp(32px, 5.5vh, 56px) clamp(20px, 3vw, 40px);
      background: rgba(200, 200, 210, 0.18);
      backdrop-filter: blur(28px) saturate(180%) brightness(1.15);
      -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.15);
      border: 1.5px solid rgba(255, 255, 255, 0.60);
      border-radius: 24px;
      color: #fff;
      text-decoration: none;
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: clamp(1.8em, 3.6vw, 2.8em);
      letter-spacing: 4px;
      text-transform: uppercase;
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      text-shadow: 0 2px 14px rgba(0,0,0,0.9);
      box-shadow:
        0 8px 32px rgba(0,0,0,0.5),
        0 20px 60px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
    }
    .panel-cta a:hover {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.85);
      /* NAPRAWA: usunięto transform: scale() z :hover - powodował compositing layer */
      box-shadow: 0 12px 40px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.25);
    }

    /* ══════════════════════════════════
       MAIN CONTENT
    ══════════════════════════════════ */
    #main-content {
      position: fixed;
      inset: 0;
      background: radial-gradient(ellipse at center,rgba(80,20,20,0.4) 0%,rgba(20,10,10,0.8) 50%,#000 100%);
      display: none;                     /* NAPRAWA: display:none zamiast opacity:0+flex */
      z-index: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      pointer-events: none;
    }
    #main-content.show {
      display: flex;
      opacity: 1;
      pointer-events: auto;
    }

    .content-wrapper {
      height: 100%; width: 100%;
      display: flex; flex-direction: column;
      justify-content: flex-start; align-items: center;
      text-align: center; padding: 60px 40px 40px; color: #fff;
    }
    .shark-logo { display: block; width: 200px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 0 30px rgba(255,255,255,0.3)); }
    h1 { font-family: 'Saira Stencil One', cursive; font-size: 3.8em; letter-spacing: 6px; text-transform: uppercase; margin: 0 0 35px; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.2); line-height: 1.25; }
    .description { font-size: 1.1em; line-height: 1.75; max-width: 950px; margin-bottom: 60px; opacity: 0.95; }
    .cta-buttons { display: flex; gap: 50px; flex-wrap: wrap; justify-content: center; align-items: stretch; }
    .cta-card { position: relative; width: 450px; height: 220px; border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; border: 3px solid rgba(60,60,60,0.6); box-shadow: 0 5px 25px rgba(0,0,0,0.5); text-decoration: none; color: inherit; display: block; }
    .cta-card:hover { transform: translateY(-8px); border-color: rgba(100,100,100,0.8); box-shadow: 0 15px 45px rgba(0,0,0,0.7); }
    .cta-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(100%) brightness(0.4); transition: filter 0.4s ease, transform 0.4s ease; }
    .cta-card:hover .cta-card-bg { filter: grayscale(0%) brightness(0.5); transform: scale(1.05); }
    .card-kravmaga .cta-card-bg { background-image: url('/assets/img/Generated-Image-January-11-2026---4_37PM-mk9wuu1o.jpg'); }
    .card-obrony  .cta-card-bg { background-image: url('/assets/img/Generated-Image-January-11-2026---4_46PM-mk9wuwy0.jpg'); }
    .cta-card-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(139,0,0,0.4),rgba(0,0,0,0.7)); transition: background 0.4s ease; }
    .cta-card:hover .cta-card-overlay { background: linear-gradient(to bottom,rgba(139,0,0,0.6),rgba(0,0,0,0.5)); }
    .cta-card-content { position: relative; height: 100%; display: flex; justify-content: center; align-items: center; padding: 30px; z-index: 2; }
    .cta-card-text { font-family: 'Saira Stencil One', cursive; font-size: 1.55em; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,0.8); line-height: 1.3; }

    /* ══════════════════════════════════
       DESKTOP RESPONSIVE
       NAPRAWA: wszystkie top% → calc(-50% - Xvh) w transform
       Przelicznik: jeśli cel = T%, to przesunięcie = (50-T)vh
    ══════════════════════════════════ */
    /* 1366px → cel top: 25%, przesunięcie = 25vh */
    @media (max-width: 1366px) and (min-height: 700px) {
      @keyframes logoMoveUp {
        0%   { transform: translate(-50%, -50%) scale(1);                  opacity: 1; }
        100% { transform: translate(-50%, calc(-50% - 25vh)) scale(0.75); opacity: 1; }
      }
    }
    @media (max-width: 1024px) {
      .cta-buttons { flex-direction: column; align-items: center; }
      .cta-card { width: 90%; max-width: 450px; }
    }
    /* 1920px+ → cel top: 24%, przesunięcie = 26vh */
    @media (min-width: 1920px) {
      @keyframes logoMoveUp {
        0%   { transform: translate(-50%, -50%) scale(1);                  opacity: 1; }
        100% { transform: translate(-50%, calc(-50% - 26vh)) scale(0.75); opacity: 1; }
      }
    }
    /* Wysoki ekran → cel top: 22%, przesunięcie = 28vh */
    @media (min-height: 1200px) {
      @keyframes logoMoveUp {
        0%   { transform: translate(-50%, -50%) scale(1);                 opacity: 1; }
        100% { transform: translate(-50%, calc(-50% - 28vh)) scale(0.7); opacity: 1; }
      }
    }
    /* Niski ekran → cel top: 28%, przesunięcie = 22vh */
    @media (max-height: 700px) and (min-width: 769px) {
      @keyframes logoMoveUp {
        0%   { transform: translate(-50%, -50%) scale(1);                  opacity: 1; }
        100% { transform: translate(-50%, calc(-50% - 22vh)) scale(0.75); opacity: 1; }
      }
    }

    /* ══════════════════════════════════
       MOBILE - max 768px
    ══════════════════════════════════ */
    @media (max-width: 768px) {
      .intro-logo { width: clamp(140px, 38vw, 200px); }

      /* Mobile → cel top: 16%, przesunięcie = 34vh */
      @keyframes logoMoveUp {
        0%   { transform: translate(-50%, -50%) scale(1);                  opacity: 1; }
        100% { transform: translate(-50%, calc(-50% - 34vh)) scale(0.52); opacity: 1; }
      }
      .intro-logo.move-up { z-index: 10004 !important; }

      #logoLeft, #logoRight {
        display: block !important;
        width: clamp(110px, 32vw, 170px);
      }

      /*
        left/right STAŁE (pozycja finalna).
        transform BEZ !important - animacja musi to nadpisać.
        CSS animations nie mogą override'ować !important - logo by nie wyjeżdżało.
      */
      #logoLeft  {
        top: 54vh !important;
        left: 4vw !important;
        transform: translateX(-400px);
      }
      #logoRight {
        top: 26vh !important;
        right: 4vw !important;
        transform: translateX(400px);
      }

      #logoLeft.slide-in {
        animation: mobileLogoLeft 0.9s cubic-bezier(0.34, 0.56, 0.64, 1) forwards !important;
      }
      #logoRight.slide-in {
        animation: mobileLogoRight 0.9s cubic-bezier(0.34, 0.56, 0.64, 1) forwards !important;
      }

      @keyframes mobileLogoLeft {
        0%   { transform: translateX(-400px); opacity: 0; }
        20%  { opacity: 1; }
        100% { transform: translateX(0);      opacity: 1; }
      }
      @keyframes mobileLogoRight {
        0%   { transform: translateX(400px);  opacity: 0; }
        20%  { opacity: 1; }
        100% { transform: translateX(0);      opacity: 1; }
      }

      /* KMG mobile: bottom: 6vh STAŁE */
      #kmgFloating {
        width: clamp(80px, 20vw, 110px);
        bottom: 6vh;                              /* ← STAŁE dla mobile */
      }
      /* Keyframes bez zmian - translateY działa tak samo */

      /* Panele */
      .slide-image {
        width: 100% !important;
        height: 50vh !important;
        height: 50svh !important;
        left: 0  !important;
        right: 0 !important;
        contain: none !important;
      }
      .slide-right { top: 0 !important;     left: 0 !important; right: 0 !important; transform: translateY(-100%) !important; }
      .slide-left  { top: 50vh !important;  left: 0 !important; right: 0 !important; transform: translateY(100%)  !important; }
      .slide-left  { top: 50svh !important; }
      .slide-left.move-in, .slide-right.move-in { transform: translateY(0) !important; }
      .slide-right.move-in { animation: slideInTop    1.4s cubic-bezier(0.34,0.56,0.64,1) forwards !important; }
      .slide-left.move-in  { animation: slideInBottom 1.4s cubic-bezier(0.34,0.56,0.64,1) forwards !important; }

      @keyframes slideInTop    { from { transform: translateY(-100%); } to { transform: translateY(0); } }
      @keyframes slideInBottom { from { transform: translateY(100%);  } to { transform: translateY(0); } }

      .slide-bg     { display: none !important; }
      .slide-bg-img { display: block !important; }

      .panel-cta {
        width: 84% !important;
        transform: translateX(-50%) !important;
        left: 50% !important;
        top: 50% !important;
      }
      .slide-right .panel-cta { top: 75% !important; }
      .slide-left  .panel-cta { top: 30% !important; }

      .panel-cta a {
        font-size:      clamp(1.3em, 5vw, 1.8em) !important;
        padding:        clamp(14px, 2.8vh, 24px) clamp(12px, 4vw, 22px) !important;
        letter-spacing: 3px !important;
        border-radius:  16px !important;
      }

      .content-wrapper { padding: 40px 20px 20px; }
      h1 { font-size: 2em; letter-spacing: 3px; margin-bottom: 25px; }
      .description { font-size: 0.9em; margin-bottom: 40px; }
      .shark-logo { width: 160px; }
      .cta-card { height: 180px; }
      .cta-card-text { font-size: 1.2em; }
      .cta-buttons { gap: 24px; }
    }

    @media (max-width: 768px) {
      #seamHider { display: none !important; }
    }

    @media (max-width: 380px) {
      .panel-cta a { font-size: 1.2em !important; padding: 14px 12px !important; letter-spacing: 2px !important; }
    }

    @media (max-width: 768px) and (max-height: 450px) and (orientation: landscape) {
      .slide-image { height: 50vh !important; }
      .slide-right { top: 50vh !important; }
      .panel-cta a { font-size: 1.1em !important; padding: 10px 16px !important; }
      #logoLeft, #logoRight, #kmgFloating, .intro-logo { display: none !important; }
    }

    @media (prefers-reduced-motion: reduce) {
      #intro-animation { display: none !important; }
      #main-content { display: flex !important; opacity: 1 !important; pointer-events: auto !important; }
      body { overflow-y: auto !important; }
    }
