/* RESPONSYWNOŚĆ */

/* Najmniejsze ekrany – telefony pionowo */
@media (max-width: 639px) and (orientation: portrait) {
  .wrapper {
    flex-direction: column;
  }

  .left {
    width: 100%;
    height: 25vh; /* biała część u góry */
    clip-path: none;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right {
    width: 100%;
    height: 75vh; /* fioletowa część */
    clip-path: none;
    background-color: #4c2580;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Logo – o połowę mniejsze */
  .logo {
    max-height: 40%;
    max-width: 40%;
  }

  /* Kółko czatu – o połowę mniejsze */
  .profile-circle {
    width: 25px;
    height: 25px;
    background: #fff;
    position: fixed;
    bottom: 10px;
    right: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 0.5rem;
    cursor: pointer;
  }

  .profile-circle i {
    color: #4c2580;
    animation: pulse 1.5s infinite;
  }

  /* Stopka – "Wszelkie prawa zastrzeżone" w drugiej linii */
  .footer {
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.2;
  }

  .footer span:last-child {
    display: block;
  }

  /* Newsletter – przycisk jako strzałka zamiast tekstu */
  .form-fields button {
    position: relative;
    font-size: 0 !important;  /* całkowicie ukrywa tekst "Zapisz się" */
    color: transparent !important; /* zabezpieczenie przed dziedziczeniem koloru */
    text-indent: -9999px; /* przesuwa ewentualny tekst poza ekran */
    width: 45px;
    height: 35px;
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
  }

  .form-fields button::after {
    content: "➤"; /* strzałka */
    font-size: 1.2rem;
    color: #4c2580;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}






/* Małe telefony i ultra małe netbooki */
@media (min-width: 401px) and (max-width: 639px) {
  .logo { max-width: 300px; }
  .animated-text { font-size: 0.85rem; }
  .sub-text { font-size: 0.7rem; }
  .dots span { font-size: 0.85rem; }
  .chatbox { width: 170px; height: 230px; font-size: 0.75rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.75rem; }
}

/* Netbooki i stare laptopy – 640px do 799px */
@media (min-width: 640px) and (max-width: 799px) {
  .logo { max-width: 400px; }
  .animated-text { font-size: clamp(1rem, 2vw, 1.2rem); }
  .sub-text { font-size: clamp(0.7rem, 1.5vw, 0.85rem); }
  .chatbox { width: 180px; height: 250px; font-size: 0.75rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.75rem; }
}

/* Małe laptopy – 800px do 1175px */
@media (min-width: 800px) and (max-width: 1175px) {
  .logo { max-width: 450px; }
  .animated-text { font-size: clamp(1.1rem, 2vw, 1.4rem); }
  .sub-text { font-size: clamp(0.75rem, 1.5vw, 0.9rem); }
  .chatbox { width: 200px; height: 270px; font-size: 0.8rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.8rem; }
}

/* Laptopy standardowe – 1176px do 1366px */
@media (min-width: 1176px) and (max-width: 1366px) {
  .logo { max-width: 500px; }
  .animated-text { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
  .sub-text { font-size: clamp(0.8rem, 1.8vw, 1rem); }
  .chatbox { width: 220px; height: 300px; font-size: 0.8rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.8rem; }
}

/* Laptopy HD i Full HD – 1367px do 1920px */
@media (min-width: 1367px) and (max-width: 1920px) {
  .logo { max-width: 600px; }
  .animated-text { font-size: clamp(1.4rem, 3vw, 1.8rem); }
  .sub-text { font-size: clamp(0.9rem, 2vw, 1.1rem); }
  .chatbox { width: 250px; height: 350px; font-size: 0.85rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.85rem; }
}

/* Monitory QHD – 1921px do 2560px */
@media (min-width: 1921px) and (max-width: 2560px) {
  .logo { max-width: 600px; }
  .animated-text { font-size: clamp(1.6rem, 3vw, 2rem); }
  .sub-text { font-size: clamp(1rem, 2vw, 1.3rem); }
  .chatbox { width: 280px; height: 380px; font-size: 0.9rem; }
  .chatbox-input input, .chatbox-input button { font-size: 0.9rem; }
}

/* Monitory 4K – 2561px do 3840px */
@media (min-width: 2561px) and (max-width: 3840px) {
  .logo { max-width: 600px; }
  .animated-text { font-size: clamp(1.8rem, 4vw, 3rem); }
  .sub-text { font-size: clamp(1.2rem, 3vw, 1.6rem); }
  .chatbox { width: 300px; height: 400px; font-size: 1rem; }
  .chatbox-input input, .chatbox-input button { font-size: 1rem; }
}

/* Ultra duże ekrany – powyżej 3840px */
@media (min-width: 3841px) {
  .logo { max-width: 1200px; }
  .animated-text { font-size: clamp(1.8rem, 5vw, 4rem); }
  .sub-text { font-size: clamp(1.2rem, 3vw, 1.6rem); }
  .dots span { font-size: 1.8rem; }
  .chatbox { width: 350px; height: 450px; font-size: 1.1rem; }
  .chatbox-input input, .chatbox-input button { font-size: 1.1rem; }
}

/* === Blokada dla tabletów i smartfonów: modal informacyjny === */
/* pokaż overlay dla ekranów <= 1024px (tablety+smartfony) */
@media (max-width: 1024px) {
  /* Klasa dodawana do body/ wrapper gdy blokujemy widok */
  body.device-blocked .wrapper {
    filter: blur(6px);
    pointer-events: none; /* zablokuj interakcje z tłem */
    user-select: none;
  }

  /* Modal overlay - centrowane okienko */
  .mobile-block-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55); /* przyciemnia tło */
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
  }

  .mobile-block-box {
    background: #fff;
    color: #222;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    pointer-events: auto; /* modal jest interaktywny */
  }

  .mobile-block-box h2 {
    margin: 0 0 10px;
    font-family: 'Lato', Verdana, sans-serif;
    font-size: 1.15rem;
    color: #4c2580;
  }

  .mobile-block-box p {
    margin: 12px 0 18px;
    line-height: 1.4;
    font-size: 0.98rem;
    color: #333;
  }

  .mobile-block-actions {
    display:flex;
    gap:10px;
    justify-content:center;
    margin-top: 8px;
  }

  .mobile-block-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Lato', Verdana, sans-serif;
    font-size: 0.95rem;
  }

  .mobile-block-btn.close {
    background: #7A3CC7;
    color: #fff;
  }

  .mobile-block-btn.fallback {
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
  }

  /* na małych telefonach jeszcze bardziej kompaktowy wygląd */
  @media (max-width: 420px) {
    .mobile-block-box { padding: 18px; border-radius: 12px; }
    .mobile-block-box h2 { font-size: 1rem; }
    .mobile-block-box p { font-size: 0.95rem; }
    .mobile-block-btn { padding: 9px 14px; font-size: 0.9rem; }
  }
}
