/* KierMates — tablet, telefon i ograniczony ruch (specyfikacja, rozdz. 7 i 12). */

/* ---------- Tablet i małe okno ---------- */

@media (max-width: 900px) {
  .studio-intro {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 8px 18px 32px;
  }

  .ig-avatar {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
  }

  .hero-visual {
    height: 222px;
  }

  /* Węższe kafelki: status pod nazwą, żeby się nie ucinał */
  .visual-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .studio-intro {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }

  .ig-avatar {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }

  .ig-avatar-inner {
    font-size: 17px;
  }

  .ig-name h1 {
    font-size: 25px;
  }

  .hero-visual {
    height: 196px;
  }
}

/* ---------- Telefon ---------- */

@media (max-width: 650px) {
  .site {
    width: 100%;
    padding: 10px 0 22px;
  }

  .identity {
    width: calc(100% - 22px);
    height: 54px;
    margin-bottom: 19px;
    padding: 4px;
    border-radius: 15px;
  }

  .identity-btn {
    border-radius: 11px;
    padding: 0 8px;
  }

  /* Imiona znikają z ekranu, ale czytnik ekranu nadal je czyta */
  .identity-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mini-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 12px;
  }

  .online {
    width: 10px;
    height: 10px;
  }

  .km {
    font-size: 16px;
  }

  .studio-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 6px 18px 26px;
  }

  .ig-name h1 {
    font-size: 24px;
  }

  .studio-stats {
    gap: 4px 16px;
    margin-top: 14px;
    font-size: 12px;
  }

  .studio-stats b {
    font-size: 14px;
  }

  .studio-copy {
    font-size: 13px;
  }

  .social-tiles {
    max-width: none;
    gap: 4px;
  }

  .social-tile {
    min-height: 34px;
    gap: 4px;
    padding: 4px 3px;
    font-size: 10px;
  }

  .social-glyph {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .featured-kicker {
    height: 20px;
  }

  .hero-visual {
    height: 196px;
    gap: 8px;
  }

  .visual-caption {
    padding: 30px 9px 9px;
    font-size: 13px;
  }

  .visual-caption .status {
    padding: 4px 6px;
    font-size: 9px;
  }

  .app-icon {
    top: 9px;
    left: 9px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .tabs {
    height: 48px;
    gap: 4px;
    padding: 0 5px;
    justify-content: space-around;
  }

  .tab {
    min-width: 0;
    padding: 0 4px;
    font-size: 12px;
  }

  .tab-icon {
    margin-right: 4px;
    font-size: 12px;
  }

  .products-catalog {
    padding: 20px 12px 2px;
  }

  .catalog-head h2 {
    font-size: 21px;
  }

  .catalog-grid {
    gap: 6px;
  }

  .catalog-card {
    min-height: 160px;
    padding: 12px;
    border-radius: 14px;
  }

  .catalog-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
  }

  .catalog-card .status {
    padding: 4px 6px;
    font-size: 9px;
  }

  .catalog-card h3 {
    margin-top: 20px;
    font-size: 15px;
  }

  .catalog-card p {
    padding-right: 12px;
    font-size: 12px;
  }

  .catalog-arrow {
    right: 11px;
    bottom: 10px;
  }

  .grid {
    gap: 2px;
  }

  .tile-top {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .author {
    padding: 2px;
  }

  .author-dot {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
    font-size: 8px;
  }

  .author-dot + .author-dot {
    margin-left: -7px;
  }

  .author-name {
    display: none;
  }

  .tag {
    padding: 3px 6px;
    font-size: 9px;
  }

  .tile-copy {
    left: 7px;
    right: 7px;
    bottom: 7px;
  }

  .tile-copy b {
    font-size: 12px;
  }

  .tile-copy small,
  .graphic-text {
    display: none;
  }

  .graphic {
    padding: 7px;
  }

  .graphic .big {
    font-size: 24px;
  }

  .graphic-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 13px;
  }

  .graphic-title {
    font-size: 13px;
  }

  .visual-placeholder .placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .graphic-icons {
    gap: 3px;
    margin-bottom: 7px;
  }

  .graphic-icons i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 9px;
  }

  .faces {
    margin-bottom: 7px;
  }

  .face {
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 12px;
  }

  .founder .face {
    width: 46px;
    height: 46px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    padding: 18px 14px 0;
  }

  /* Panel zajmuje prawie cały ekran */
  .panel {
    inset: 7px;
    width: auto;
  }

  .panel h2 {
    font-size: 34px;
  }

  .panel-body {
    padding: 23px 16px;
  }

  .product-shot,
  .product-placeholder {
    height: 220px;
  }

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

  /* Podstrony */
  .page-top {
    height: 54px;
    margin: 0 11px 24px;
    padding: 0 12px 0 4px;
    border-radius: 15px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .site--page main {
    padding: 0 18px 36px;
  }

  .page-hero {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 0 0 24px;
  }

  .page-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-lead {
    font-size: 16px;
  }

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

  .post-head h1 {
    font-size: 31px;
  }

  .post-page p,
  .post-page li {
    font-size: 16px;
  }

  .post-page .post-lead {
    font-size: 18px;
  }
}

/* ---------- Ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .visual-card:hover,
  .visual-card:focus-visible,
  .catalog-card:hover,
  .catalog-card:focus-visible,
  .social-tile:hover,
  .visual-card:hover .visual-image img,
  .tile:hover .tile-bg img,
  .catalog-card:hover .catalog-arrow {
    transform: none;
  }
}
