/* 1920 → margines (1920-1320)/2 = 300px automatycznie; 1440 → 60px */
@media (min-width: 1024px) {
  /* pk_line: początek kolumny 7. Przy 1920px: 300 + 6 × 112 = 972px.
     Węższy desktop zachowuje wspólną linię w obrębie wyśrodkowanego grida. */
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) [pk_line] repeat(6, minmax(0, 1fr));
  }
  .artists__head { grid-column: 1 / pk_line; }
  .about__text, .artists__aside { grid-column: pk_line / -1; }
  .artists__aside { container-type: inline-size; }
  .stages { flex-wrap: nowrap; }
  .stages .stage-tag {
    white-space: nowrap;
    justify-content: center;
    font-size: clamp(14px, 3.7cqi, 24pt);
    padding-inline: clamp(8px, 1.8cqi, 16px);
  }
}
@media (max-width: 1439px) {
  :root { --fs-h1: 96px; --fs-h2: 64px; --fs-h3: 44px; }
}
@media (max-width: 1199px) {
  :root { --fs-h1: 84px; --fs-h2: 56px; --header-h: 80px; }
  .nav__list { gap: 20px; }
  .header-social { margin-left: 20px; }
}
/* Menu mobilne */
@media (max-width: 1279px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 7px; width: 44px; height: 44px;
    padding: 8px; border: 0; background: transparent;
    color: var(--color-white); cursor: pointer;
  }
  .nav__toggle-line { display: block; width: 28px; height: 2px; background: currentColor; }
  .nav__toggle[aria-expanded="true"] { color: var(--color-pink); }
  .header-right { position: static; }
  .nav__panel { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--color-navy); padding: 16px var(--page-margin) 32px; border-bottom: var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav__panel.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: var(--line); }
  .nav__link { display: block; padding: 16px 0; font-size: 18px; }
  .header-social { margin: 24px 0 0; }
}
/* Tablet: 8 kolumn */
@media (max-width: 1023px) {
  :root { --grid-cols: 8; --gutter: 16px; --page-margin: 32px; --fs-h1: 76px; --fs-h2: 52px; --fs-h3: 36px; --section-pad: 80px; --section-pad-compact: 72px; --capsule-h: 340px; --capsule-radius: 64px; }
  .about__head, .artists__head, .gallery-teaser__head { grid-column: 1 / -1; }
  .about__text, .artists__aside { grid-column: 1 / span 6; padding-top: 40px; }
  .stages { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .gallery-teaser__desc { grid-column: 1 / span 6; }
  .gallery-teaser__cta { grid-column: 1 / span 6; justify-self: start; margin-top: 32px; }
  .sponsor-list li { grid-column: span 2; }
  .slogan-scene { margin-top: 80px; }
}
/* Mobile: 4 kolumny */
@media (max-width: 767px) {
  :root { --grid-cols: 4; --gutter: 12px; --page-margin: 20px; --fs-h1: 58px; --fs-h2: 44px; --fs-h3: 30px; --fs-h4: 20px; --fs-body: 16px; --fs-lead: 19px; --fs-cta: 16px; --section-pad: 64px; --section-pad-compact: 56px; --capsule-h: 240px; --capsule-radius: 44px; --card-h: 280px; }
  .h1, .h2 { overflow-wrap: anywhere; hyphens: auto; }
  /* Szeroki krój Expanded: pełna nazwa galerii bez osamotnionej litery. */
  .page-head .h1 { font-size: clamp(24px, 6.4vw, 48px); }
  .about__text, .artists__aside, .gallery-teaser__desc { grid-column: 1 / -1; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .slogan__small { font-size: 22px; }
  .hero__year { font-size: 150px; }
  .hero__logo .placeholder { height: 88px; }
  .brand-logo .placeholder { width: 140px; height: 44px; }
  .btn { width: 100%; justify-content: center; }
  .sponsor-list li { grid-column: span 2; }
  .site-footer { padding-top: 96px; }
  .footer__bottom { margin-top: 64px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 374px) {
  :root { --fs-h1: 54px; --fs-h2: 38px; }
  .hero__year { font-size: 128px; }
}
/* Dopasowanie makiety — responsywność */
@media (max-width: 1023px) {
  .about__head .h2 { max-width: none; }
  .about__text { grid-column: 1 / -1; }
  .sponsor-list li { grid-column: span 4; }
  .hero__cta { margin-top: 96px; }
}
@media (max-width: 767px) {
  .hero__year { font-size: 112px; }
  .hero__title { width: 100%; }
  .gallery-teaser .grid { min-height: 0; padding-bottom: 0; }
  .capsule { position: relative; inset: auto; height: var(--capsule-h); margin-top: 32px; }
  .hero__cta { margin-top: 64px; }
  .slogan__small { font-size: clamp(24px, 8.4vw, 56px); }
  .slogan__logo { gap: clamp(14px, 4.2vw, 27px); }
  .gallery-teaser__cta { width: auto; justify-self: start; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* Skala dostarczonej typografii poniżej makiety desktopowej 1920px. */
@media (max-width: 1919px) {
  .hero__name { font-size: clamp(26px, 7.7778vw, 112pt); }
  .hero__year { font-size: clamp(112px, 12.6389vw, 182pt); }
  .hero__cta, .gallery-teaser__cta { font-size: clamp(20px, 2.0833vw, 30pt); }
  .about__head .h2 { font-size: clamp(38px, 5vw, 72pt); }
  .about__text, .artists__intro { font-size: clamp(20px, 1.6667vw, 24pt); }
  .artists__head .h2, .info .h2 { font-size: clamp(38px, 5vw, 72pt); }
  .gallery-teaser__head .h2 { font-size: clamp(38px, 4.4444vw, 64pt); }
  .info .facts__key, .info .facts__val, .info .terms { font-size: clamp(20px, 1.9444vw, 28pt); }
  .info .faq__q { font-size: clamp(20px, 1.6667vw, 24pt); }
  .info .faq__a { font-size: clamp(17px, 1.3194vw, 19pt); line-height: 1.3; }
  .artists__year { font-size: clamp(112px, 10vw, 144pt); }
  .stage-tag { font-size: clamp(18px, 1.6667vw, 24pt); }
  .artists__text, .gallery-teaser__desc {
    font-size: clamp(17px, 1.3194vw, 19pt);
    line-height: 1.2631579;
  }
  #o-wydarzeniu .facts__key, #o-wydarzeniu .facts__val { font-size: clamp(16px, 1.25vw, 18pt); }
}
@media (max-width: 1023px) {
  .hero__content { padding-top: calc(var(--header-h) + 64px); }
  .hero__name { font-size: 7.4vw; }
  .about__head .h2 { font-size: clamp(38px, 7vw, 64px); }
}
@media (max-width: 767px) {
  .hero__name { font-size: 7.35vw; }
  .hero__cta { padding-inline: 18px; }
  :root { --fs-label: 14px; }
  .info .h2 { font-size: clamp(28px, 7.4vw, 48px); }
  .info .facts__row { grid-template-columns: 1fr; }
  .gallery-teaser__head .h2 { font-size: clamp(24px, 7.4vw, 48px); }
  .gallery-teaser__cta { grid-column: 1 / -1; justify-self: start; padding-inline: 18px; }
  #o-wydarzeniu .facts__row { grid-template-columns: 1fr; }
}
