/* ==========================================================================
   mobile.css – wersja responsywna Sunflower Cast
   Dotyczy ekranów o szerokości ≤ 600 px
   ========================================================================= */

@media (max-width: 600px) {

  /* --- Układ globalny --- */
  body {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
  }

  header {
    padding: 40px 10px 20px;
    text-align: center;
  }

  header img {
    width: 180px;
    height: auto;
  }

  header h1 {
    font-size: 22px;
  }

  header p {
    font-size: 15px;
  }

  main {
    padding: 20px;
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: none;
  }

  h2 {
    font-size: 20px;
    margin-top: 16px;
  }

  footer {
    font-size: 13px;
    margin: 30px 0 20px;
  }

  /* --- Nawigacja --- */
  .topnav {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 0.85rem;
    padding: 8px 10px;
    text-align: center;
  }

  .topnav .sep {
    display: none;
  }

  .topnav a {
    display: inline-block;
    padding: 4px 6px;
  }

  /* --- Formularze --- */
  form,
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  form input,
  form textarea,
  form select {
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }

  form label {
    font-size: 0.95rem;
  }

  .btn,
  button,
  input[type="submit"] {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* --- Kafelki i układy panelu --- */
  .tiles {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tile {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  #pvParams {
    grid-template-columns: 1fr !important;
  }

  .param-grid,
  .two-col,
  .flex-row {
    flex-direction: column;
    align-items: stretch;
  }

  .param-grid > *,
  .two-col > *,
  .flex-row > * {
    width: 100%;
  }

  /* --- Tabele i dane --- */
  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    font-size: 14px;
  }

  th,
  td {
    white-space: nowrap;
    padding: 6px 8px;
  }

  /* --- Sekcje linków i stopka --- */
  section.links div {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }

  section.links span {
    display: none;
  }

  /* --- Baner cookies i modal --- */
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cookie-modal {
    width: 95%;
    max-width: 400px;
    font-size: 0.85rem;
    padding: 18px;
  }

  .cookie-modal__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  /* --- Elementy wykresów / długich treści --- */
  .plot-container,
  .chart-box,
  .chart {
    width: 100% !important;
    height: auto !important;
  }

  .scroll-box {
    overflow-x: auto;
  }

  /* --- Przyciski akcji w panelu --- */
  .tile .btn,
  .btn.secondary {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  /* --- Sekcje kontakt / info --- */
  p {
    text-align: left;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* --- Modalne okna / alerty --- */
  .modal {
    width: 90%;
    max-width: 400px;
    padding: 18px;
  }

  .modal-content {
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    margin: 0;
    border-radius: 0;
  }

  fieldset {
    width: 100%;
    padding: 10px;
    margin: 0;
  }

  input, label, textarea, select, button {
    max-width: 100%;
    width: 100%;
  }

  #registerForm > div {
    flex-direction: column;
  }

  .cookie-banner__inner {
    width: 100%;
    padding: 10px;
  }

  .cookie-modal {
    width: 90%;
    max-width: 400px;
    padding: 16px;
  }
}
  section div {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    text-align: center;
  }

  section div a,
  section div span {
    display: inline-block;
    font-size: 14px;
  }
