/* respond.css - media queries / responsywność */

@media (max-width: 980px) {
      nav {
        display: none;
      }

      .hero {
        min-height: auto;
        padding: 122px 0 76px;
      }

      .hero__grid,
      .section-head,
      .split,
      .join__grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }

      .hero-visual {
        min-height: 520px;
      }

      .floating-card {
        left: 18px;
        right: 18px;
        width: auto;
      }

      .section-head {
        gap: 24px;
      }

      .cards,
      .logos {
        grid-template-columns: 1fr;
      }

      .join {
        padding: 42px 28px;
        border-radius: 30px;
      }
    }


@media (max-width: 560px) {
      .container {
        width: min(100% - 28px, var(--max));
      }

      .topbar__inner {
        min-height: 70px;
      }

      .brand {
        font-size: 12px;
      }

      .logo-mark {
        width: 40px;
        height: 40px;
      }

      h1 {
        font-size: clamp(46px, 14vw, 68px);
      }

      .hero-visual {
        min-height: 470px;
      }

      .hero-photo {
        border-radius: 28px;
      }

      .floating-card {
        padding: 16px;
        border-radius: 22px;
      }

      .stats {
        grid-template-columns: 1fr;
      }

      section {
        padding: 76px 0;
      }

      .panel,
      .card {
        padding: 26px;
      }

      .photo,
      .panel,
      .map {
        min-height: 320px;
      }
    }


@media (max-width: 980px) {

  nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

}


@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


@media (min-width: 981px) {
  .hero__grid {
    grid-template-columns: .97fr 1.03fr;
  }

  .hero__grid > div:first-child {
    order: 2;
  }

  .hero__grid > .hero-visual {
    order: 1;
  }

  .floating-card {
    left: auto;
    right: -24px;
  }
}


@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 112px 0 76px;
  }

  .hero__grid {
    gap: 34px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
  }

  .floating-card {
    left: 22px;
    right: 22px;
    bottom: 22px;
    width: auto;
    max-width: none;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .card-illustration {
    aspect-ratio: 1.34 / 1;
  }
}


@media (max-width: 560px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero {
    padding: 94px 0 64px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-photo {
    border-radius: 28px;
  }

  .floating-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    border-radius: 20px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 12px 8px;
    border-radius: 16px;
  }

  .stat-number {
    margin-bottom: 8px;
    font-size: 28px;
  }

  .stat strong {
    margin-bottom: 3px;
    font-size: 15px;
    letter-spacing: -.05em;
  }

  .stat span {
    font-size: 8px;
    letter-spacing: .06em;
  }

  .card {
    padding: 24px;
  }

  .card-illustration {
    aspect-ratio: 1.18 / 1;
    margin-bottom: 22px;
    border-radius: 22px;
  }

  .card-thumb {
    width: 92px;
	height: 92px;
    right: -14px;
    top: -14px;
    border-width: 7px;
  }
}


@media (max-width: 390px) {
  .hero-visual {
    min-height: 360px;
  }

  .floating-card {
    padding: 10px;
  }

  .stat {
    padding: 10px 6px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat strong {
    font-size: 13px;
  }

  .card-illustration {
    aspect-ratio: 1.08 / 1;
  }
}
