/* Wersja na telefon i tablet (do 1023 px). Wersja na komputer – style.css, bez zmian. */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800&family=Open+Sans:wght@400;600&display=swap');

.m-site { display: none; }

@media (max-width: 1023px) {
  html { scroll-behavior: smooth; scroll-padding-top: 76px; }
  body { background: #060606; min-width: 0; -webkit-text-size-adjust: 100%; }
  .container { display: none; }
  .m-site { display: block; color: #e9e9e9; font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.55;
            max-width: 760px; margin: 0 auto; overflow-x: hidden; }
  /* reset bez wagi (:where) – klasy niżej zawsze wygrywają */
  :where(.m-site) * { box-sizing: border-box; }
  :where(.m-site) a { color: inherit; text-decoration: none; }
  :where(.m-site) img { display: block; max-width: 100%; }
  :where(.m-site) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  :where(.m-site) :is(h1, h2, h3, h4) { font-family: Barlow, "Open Sans", sans-serif; color: #fff; margin: 0; }
  :where(.m-site) p { margin: 0; }
  :where(.m-site) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
  :where(.m-site) svg { flex: 0 0 auto; }

  /* pasek u góry */
  .m-bar { position: sticky; top: 0; z-index: 1000; height: 60px; display: flex; align-items: center; justify-content: space-between;
           padding: 0 20px 0 16px; background: #060606; border-bottom: 1px solid #262626; }
  .m-logo { display: block; width: 56px; height: 45px; background: #000 url('i/m-logo.png') center / contain no-repeat; }
  .m-burger { width: 44px; height: 44px; position: relative; z-index: 1002; }
  .m-burger span { position: absolute; left: 0; height: 3px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s, width .25s; }
  .m-burger span:nth-child(1) { top: 12px; width: 44px; }
  .m-burger span:nth-child(2) { top: 21px; width: 44px; }
  .m-burger span:nth-child(3) { top: 30px; width: 34px; }
  .m-open .m-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); width: 40px; left: 2px; }
  .m-open .m-burger span:nth-child(2) { opacity: 0; }
  .m-open .m-burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); width: 40px; left: 2px; }

  /* menu na cały ekran */
  .m-menu { position: fixed; inset: 60px 0 0 0; z-index: 999; background: #060606; display: flex; flex-direction: column; justify-content: space-between;
            visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; overflow-y: auto; }
  .m-open .m-menu { visibility: visible; opacity: 1; }
  .m-menu ol { padding: 32px 24px 0; }
  .m-menu li a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid #262626;
                 font-family: Barlow, sans-serif; font-weight: 700; font-size: 36px; letter-spacing: .04em; color: #fff; line-height: 1.1; }
  .m-menu li small { font-family: Barlow, sans-serif; font-size: 13px; font-weight: 600; color: #ff3030; letter-spacing: .08em; width: 26px; }
  .m-menu-foot { border-top: 2px solid #e00000; padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
  .m-social-round { display: flex; gap: 10px; margin-top: 20px; }
  .m-social-round a { width: 50px; height: 50px; border: 1px solid #3a3a3a; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .m-open { overflow: hidden; }

  /* ogólne */
  .m-pad { padding: 0 20px; }
  .m-sec { padding: 56px 20px 8px; }
  .m-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
  .m-head h2 { font-size: 34px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
  .m-line { flex: 1; height: 2px; background: #e00000; }
  .m-count { color: #9a9a9a; font-size: 14px; white-space: nowrap; }
  .m-kicker { color: #ff3030; font-family: Barlow, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; margin: 34px 0 18px; }
  .m-head + .m-kicker { margin-top: 0; }
  .m-h3 { font-size: 30px; font-weight: 700; line-height: 1.15; margin-bottom: 18px; }
  .m-text { margin-bottom: 10px; }
  .m-muted { color: #9a9a9a; font-size: 14px; }
  .m-lead { font-size: 16px; color: #ddd; margin-bottom: 24px; }
  .m-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 14px; padding: 12px 20px;
           border-radius: 8px; font-family: Barlow, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .14em; color: #fff; text-align: center; }
  .m-btn-red { background: #e00000; }
  .m-btn-line { border: 2px solid #f2f2f2; }
  .m-btn svg { width: 18px; height: 18px; }
  .m-sec > .m-btn-line { margin-top: 24px; }

  /* hero */
  .m-hero-img { aspect-ratio: 780 / 640; background: #000 url('i/m-hero.jpg') center top / cover no-repeat; position: relative; }
  .m-hero-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to bottom, rgba(6,6,6,0), #060606); }
  .m-hero .m-kicker { margin: 10px 0 8px; }
  .m-hero h1 { font-size: clamp(28px, 8.6vw, 44px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
  .m-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 26px; }
  .m-pills li { border: 1px solid #3c3c3c; border-radius: 999px; padding: 6px 13px; font-family: Barlow, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .06em; color: #f0f0f0; }

  /* news */
  .m-news { display: grid; gap: 14px; }
  .m-news img { width: 100%; border-radius: 8px; }

  /* info */
  .m-award { background: #141414; border: 1px solid #262626; border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
  .m-award img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .m-award > div { padding: 20px 18px 22px; }
  .m-award h3 { font-family: "Open Sans", sans-serif; font-weight: 600; font-size: 16px; line-height: 1.5; margin: 6px 0 4px; }
  .m-award p { color: #9a9a9a; font-size: 14px; }
  .m-year { font-family: Barlow, sans-serif; font-weight: 700; font-size: 22px; color: #ff3030; line-height: 1.1; }
  .m-awards li { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #262626; }
  .m-awards .m-year { width: 64px; flex: 0 0 auto; padding-top: 4px; }
  .m-awards small { display: block; color: #9a9a9a; font-size: 13px; letter-spacing: .08em; }
  .m-awards p { font-size: 15px; }
  .m-awards b, .m-links b { color: #fff; font-weight: 600; }
  .m-links li a, .m-links li > span { display: flex; flex-direction: column; padding: 14px 16px; margin-bottom: 10px; background: #141414; border: 1px solid #262626; border-radius: 8px; }
  .m-links li span span, .m-links a span { color: #9a9a9a; font-size: 14px; }
  .m-activity { margin-top: 44px; }
  .m-tabs { display: flex; gap: 10px; overflow-x: auto; margin: 6px -20px 6px; padding: 4px 20px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .m-tabs::-webkit-scrollbar { display: none; }
  .m-tabs button { flex: 0 0 auto; min-width: 74px; padding: 8px 16px; border: 1px solid #3c3c3c; border-radius: 999px; font-family: Barlow, sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
  .m-tabs button.on { background: #e00000; border-color: #e00000; }
  .m-events { display: none; }
  .m-events.on, .m-nojs .m-events { display: block; }
  .m-events li { position: relative; padding: 18px 0 18px 26px; border-bottom: 1px solid #262626; }
  .m-events li::before { content: ''; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: #e00000; }
  .m-events h4 { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
  .m-events p { color: #cfcfcf; font-size: 15px; }
  .m-events .m-meta { color: #ff4a4a; font-size: 14px; margin-top: 4px; }

  /* realizacje */
  .m-video { border: 1px solid #b00000; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
  .m-video iframe { width: 100%; height: 100%; border: 0; display: block; }
  .m-yt { position: relative; width: 100%; height: 100%; display: block; }
  .m-yt img { width: 100%; height: 100%; object-fit: cover; }
  .m-play { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #e00000; color: #fff; }
  .m-play svg { width: 20px; height: 20px; }
  .m-yt .m-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); }
  .m-vtitle { font-size: 22px; font-weight: 700; margin-top: 14px; }
  .m-vsub { color: #9a9a9a; font-size: 14px; }
  .m-vtitle:empty, .m-vsub:empty { display: none; }
  .m-strip { display: flex; gap: 12px; overflow-x: auto; margin: 18px -20px 0; padding: 0 20px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 20px; }
  .m-strip::-webkit-scrollbar { display: none; }
  .m-thumb { position: relative; flex: 0 0 62%; aspect-ratio: 16 / 9; border: 1px solid #2c2c2c; border-radius: 8px; overflow: hidden; scroll-snap-align: start; background: #111; }
  .m-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .m-thumb .m-play { position: absolute; left: 10px; bottom: 10px; width: 40px; height: 40px; }
  .m-thumb .m-play svg { width: 16px; height: 16px; }
  .m-sounds { display: grid; gap: 12px; }
  .m-sound { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #141414; border: 1px solid #262626; border-radius: 10px; }
  .m-sound > div { flex: 1; min-width: 0; }
  .m-sound b { display: block; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-wave { display: block; height: 18px; background: repeating-linear-gradient(90deg, #5a5a5a 0 3px, transparent 3px 7px);
            -webkit-mask: linear-gradient(#000 0 0) center / 100% 40% no-repeat, repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 14px) center / 100% 100%;
                    mask: linear-gradient(#000 0 0) center / 100% 40% no-repeat, repeating-linear-gradient(90deg, #000 0 3px, transparent 3px 14px) center / 100% 100%; }
  .m-sound.playing { display: block; padding: 0; overflow: hidden; }
  .m-sound iframe { display: block; width: 100%; height: 120px; border: 0; }

  /* foty */
  .m-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-photos a { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 0.93; background: #111; }
  .m-photos a.m-big { grid-column: 1 / -1; aspect-ratio: 1 / 0.66; }
  .m-photos img { width: 100%; height: 100%; object-fit: cover; }
  .m-photos a.m-hide { display: none; }
  .m-more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; }
  .m-more b { font-family: Barlow, sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
  .m-photos.all .m-more { display: none; }

  /* kontakt */
  .m-cta { display: flex; align-items: center; gap: 18px; padding: 16px 22px; margin-bottom: 14px; border: 2px solid #f2f2f2; border-radius: 8px; }
  .m-cta-red { background: #e00000; border-color: #e00000; }
  .m-cta small { display: block; font-family: Barlow, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .16em; }
  .m-cta b { display: block; font-family: Barlow, sans-serif; font-size: 22px; line-height: 1.2; word-break: break-all; }
  .m-cta-red b { font-size: 27px; }
  .m-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-social a { display: flex; align-items: center; gap: 14px; padding: 18px 16px; background: #141414; border: 1px solid #262626; border-radius: 8px; font-weight: 600; color: #fff; }
  .m-foot { margin-top: 56px; padding: 26px 20px 34px; border-top: 1px solid #262626; text-align: center; color: #8a8a8a; font-size: 14px; }
  .m-foot a { color: #bbb; }

  /* pasek cookies – nad treścią, czytelny na telefonie */
  .cookies { font-size: 12px !important; line-height: 1.4 !important; padding: 8px 70px 8px 0; background: rgba(0,0,0,.92) !important; }
  .cookies .close-cookie { right: 14px !important; }

  @media (min-width: 600px) {
    .m-sec { padding-left: 40px; padding-right: 40px; }
    .m-pad { padding: 0 40px; }
    .m-tabs, .m-strip { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; scroll-padding: 0 40px; }
    .m-pills { flex-direction: row; flex-wrap: wrap; }
    .m-thumb { flex-basis: 44%; }
  }
}
