/* =====================================================================
   KUBA SYSTEM — arkusz stylów
   System: T1 "warm vellum / carbon" + akcent pomarańczowy z logo firmy.
   Paleta wyprowadzona z logo (antracyt + pomarańcz) i zdjęć budowlanych.
   ===================================================================== */

:root {
  /* Kolory bazowe (T1) */
  --vellum:      #f0efe9;  /* płótno strony */
  --paper:       #ffffff;  /* karty, panele */
  --carbon:      #322d2a;  /* tekst, ciemne powierzchnie, nawigacja */
  --onyx:        #0f0e12;  /* stopka */
  --mercury:     #8b8b8b;  /* tekst drugorzędny */

  /* Akcent z logo */
  --orange:      #e8791a;
  --orange-600:  #d16810;
  --orange-tint: #f7e3cf;  /* delikatne tło akcentu */

  --line:        #e0ddd4;  /* hairline na vellum */
  --line-dark:   #45403c;  /* hairline na carbon */

  /* Typografia */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rytm / kształty */
  --max:     1200px;
  --gap:     48px;
  --radius-card:   24px;   /* karty treści, formularz */
  --radius-media:  72px;   /* kontenery zdjęć — sygnaturowe „portholes" T1 */
  --radius-tile:   44px;   /* kafle galerii */
  --radius-nav:    16px;
  --radius-pill:   100px;
  --radius-sm:     14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / baza ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;  /* iOS: nie powiększaj tekstu w poziomie */
}
body {
  margin: 0;
  overflow-x: clip;               /* bezpiecznik: nigdy nie przewijamy strony w bok */
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--carbon);
  background: var(--vellum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Warstwy / kontener ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Typografia ---------- */
.display {
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.heading {
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #57514c; max-width: 60ch; margin: 0; }
.muted { color: var(--mercury); }
strong { font-weight: 600; }

/* Etykieta sekcji — sygnaturowy kwadracik + uppercase */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--carbon);
  margin-bottom: 20px;
}
.label::before { content: ""; width: 7px; height: 7px; background: var(--orange); display: inline-block; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn--primary { background: var(--carbon); color: #fff; }
.btn--primary:hover { background: var(--orange); }
.btn--accent { background: var(--orange); color: #fff; }
.btn--accent:hover { background: var(--orange-600); }
.btn--ghost { background: transparent; color: var(--carbon); border-color: var(--carbon); }
.btn--ghost:hover { background: var(--carbon); color: #fff; }
.btn:active { transform: translateY(1px); }

/* =====================================================================
   NAWIGACJA — pływająca ciemna pastylka
   ===================================================================== */
.nav-wrap { position: fixed; inset: 18px 0 auto; z-index: 100; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: var(--max); margin-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--carbon); color: #fff;
  border-radius: var(--radius-nav);
  padding: 10px 12px 10px 22px;
  isolation: isolate;
}
@media (min-width: 1249px) { .nav { margin-inline: auto; } }
.brand { display: flex; align-items: baseline; gap: 2px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brand b { font-weight: 700; }
.brand span { color: var(--orange); font-weight: 700; }

/* Slide-tabs: przesuwający się wskaźnik pod linkami */
.nav-links { position: relative; display: flex; align-items: center; }
/* „>" — żeby reguła nie łapała przycisków telefonicznych w menu mobilnym */
.nav-links > a {
  position: relative; z-index: 2;
  padding: 9px 17px; font-size: 14px; font-weight: 500; line-height: 1;
  color: #fff; mix-blend-mode: difference; white-space: nowrap; border-radius: var(--radius-pill);
}
.nav-cursor {
  position: absolute; z-index: 1; top: 50%; left: 0; width: 0; height: 38px; opacity: 0;
  transform: translateY(-50%); border-radius: var(--radius-pill); background: #fff;
  transition: left .32s var(--ease), width .32s var(--ease), opacity .2s var(--ease);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 10px 6px; }
.nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

/* Hamburger → krzyżyk. Środkowa kreska krótsza, żeby ikona nie była sztywna. */
.burger { display: block; position: relative; width: 22px; height: 16px; }
.burger i {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px; background: #fff;
  transition: transform .34s var(--ease), opacity .2s var(--ease), width .34s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 7px; width: 68%; }
.burger i:nth-child(3) { top: 14px; }
.nav.open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger i:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav.open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Przyciski telefoniczne — tylko w rozwiniętym menu mobilnym */
.nav-menu-cta { display: none; }

/* =====================================================================
   HERO — split: logo + nagłówek | zdjęcie z 80px zaokrągleniem
   ===================================================================== */
.hero { padding-top: clamp(110px, 14vw, 150px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-logo { width: min(360px, 78%); margin-bottom: 26px; }
.hero .display { margin-bottom: 20px; }
.hero-sub { font-size: 1.12rem; color: #57514c; max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: clamp(340px, 46vw, 560px); object-fit: cover;
  border-radius: clamp(44px, 6vw, 80px);
}
.hero-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: var(--carbon); color: #fff; border-radius: 18px;
  padding: 14px 18px; max-width: 62%;
}
.hero-badge .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 4px; }
.hero-badge .v { font-size: 14px; line-height: 1.35; }

/* ---------- Pasek zaufania / fakty ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 34px 12px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 300; color: var(--carbon); line-height: 1; }
.fact .n em { color: var(--orange); font-style: normal; }
.fact .t { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mercury); margin-top: 10px; }

/* =====================================================================
   O NAS
   ===================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.about-media img { width: 100%; height: clamp(320px, 42vw, 480px); object-fit: cover; border-radius: var(--radius-media); }
.about-copy p { color: #57514c; margin: 0 0 16px; }
.about-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.about-list svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 2px; }

/* =====================================================================
   OFERTA — siatka 8 kart
   ===================================================================== */
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px; min-height: 210px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: var(--carbon); }
.card-idx { font-size: 13px; letter-spacing: 0.06em; color: var(--orange); font-weight: 600; }
/* margin:0 — h3/p mają domyślne marginesy przeglądarki, które dodawały się
   do gap flexa i robiły przypadkowe dziury w kartach */
.card-title { font-size: 1.05rem; font-weight: 500; line-height: 1.28; margin: 0; }
.card-desc { font-size: 13.5px; color: #6a6560; line-height: 1.5; flex: 1; margin: 0; }
.card-link { font-size: 13px; font-weight: 500; color: var(--carbon); display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; }
.card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card:hover .card-link { color: var(--orange); }

/* =====================================================================
   REALIZACJE — zakładki + galeria
   ===================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab {
  background: var(--paper); border: 1px solid var(--line); color: var(--carbon);
  padding: 11px 18px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500;
  transition: all .2s var(--ease);
}
.tab:hover { border-color: var(--carbon); }
.tab[aria-selected="true"] { background: var(--carbon); color: #fff; border-color: var(--carbon); }
.tab[aria-selected="true"] .dot { background: var(--orange); }
.tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mercury); margin-right: 8px; vertical-align: middle; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  position: relative; border: 0; padding: 0; background: var(--line);
  border-radius: var(--radius-tile); overflow: hidden; aspect-ratio: 4/3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15,14,18,.82), rgba(15,14,18,0));
  color: #fff; font-size: 13px; padding: 30px 16px 14px; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.shot:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.shot figcaption span { display: block; font-weight: 400; font-size: 12px; color: #d9d5cf; margin-top: 3px; }
.gallery-note { font-size: 12.5px; color: var(--mercury); margin-top: 22px; max-width: 70ch; }

/* Pusty / ładowany stan galerii */
.gallery-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px;
  min-height: 300px; padding: 48px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tile);
}
.gallery-state .mark { width: 12px; height: 12px; background: var(--orange); }
.gallery-state .gs-title { font-size: 1.15rem; font-weight: 400; color: var(--carbon); margin: 4px 0 0; }
.gallery-state .gs-sub { font-size: 14px; color: var(--mercury); max-width: 46ch; margin: 0; }
.gallery-state code { background: var(--vellum); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.gallery-state .spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(15,14,18,.9); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; width: auto; border-radius: 20px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; }
.lightbox-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #d9d5cf; font-size: 14px; }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ccard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; min-height: 200px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .25s var(--ease);
}
.ccard .label { margin-bottom: 6px; }
.ccard-phone { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 300; letter-spacing: -0.01em; color: var(--carbon); }
.ccard-cta { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--carbon); display: inline-flex; align-items: center; gap: 7px; }
.ccard-cta svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.ccard--call:hover { border-color: var(--carbon); }
.ccard--call:hover .ccard-cta { color: var(--orange); }
.ccard--call:hover .ccard-cta svg { transform: translateX(4px); }
.ccard--call:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ccard-mail { font-size: 15px; color: var(--carbon); word-break: break-word; transition: color .2s var(--ease); }
.ccard-mail:hover { color: var(--orange); }
.ccard-area { font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 300; color: var(--carbon); line-height: 1.15; }

/* =====================================================================
   STOPKA
   ===================================================================== */
.footer { background: var(--onyx); color: #cfcbc4; padding-top: clamp(56px, 8vw, 92px); padding-bottom: 24px; overflow: hidden; }
.label--light { color: #fff; }

/* Band CTA */
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line-dark); }
.footer-cta-title { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.04; letter-spacing: -0.01em; color: #fff; margin: 10px 0 0; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--lightghost { background: transparent; color: #fff; border-color: #55504b; }
.btn--lightghost:hover { background: #fff; color: var(--onyx); border-color: #fff; }

/* Kolumny */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(36px, 5vw, 56px); }
.footer-brandcol .brand { color: #fff; font-size: 22px; margin-bottom: 12px; }
.footer-brandcol .brand span { color: var(--orange); }
.footer-tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mercury); margin: 0 0 14px; }
.footer-note2 { font-size: 14px; color: #a8a49d; max-width: 34ch; margin: 0; line-height: 1.55; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mercury); margin: 0 0 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 15px; color: #e4e0d9; margin-bottom: 13px; transition: color .2s var(--ease); }
.footer-col a span { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mercury); margin-bottom: 3px; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--mercury); }
.footer-bottom a { color: #cfcbc4; }
.footer-bottom a:hover { color: var(--orange); }

/* =====================================================================
   ANIMACJE — reveal on scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSYWNOŚĆ
   ===================================================================== */
/* Krótszy napis na przycisku CTA pojawia się dopiero na wąskich ekranach */
.cta-short { display: none; }

/* ---------- iPad poziomo / małe laptopy ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  .nav-links > a { padding: 9px 13px; }
  .nav-cta .btn { padding: 12px 18px; }
}

/* ---------- iPad pionowo / duże telefony poziomo ---------- */
@media (max-width: 900px) {
  /* Hero: najpierw logo + hasło, zdjęcie POD spodem.
     Odwrotna kolejność dawała zdjęcie, a pod nim osierocone wielkie logo. */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { width: min(230px, 58%); margin-bottom: 22px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-cta { align-items: flex-start; }
  .nav-cursor, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  /* ---- MENU MOBILNE -------------------------------------------------
     Rozwija się płynnie wewnątrz pastylki (osobna linia pod logo).
     Zamknięte: zerowa wysokość + visibility, żeby linki nie łapały Taba. */
  /* row-gap:0 — przy zawijaniu „gap" dotyczy też odstępu między wierszami,
     więc zamknięte menu dokładało pustą przerwę i rozdymało pastylkę */
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-links {
    order: 3; width: 100%;
    display: flex; flex-direction: column; align-items: stretch;
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    margin-top: 0; padding-top: 0; border-top: 1px solid transparent;
    transition: max-height .36s var(--ease), opacity .2s var(--ease),
                margin-top .36s var(--ease), padding-top .36s var(--ease),
                border-color .3s var(--ease), visibility 0s .38s;
  }
  .nav.open .nav-links {
    max-height: 480px; opacity: 1; visibility: visible;
    margin-top: 8px; padding-top: 6px; border-top-color: var(--line-dark);
    transition: max-height .42s var(--ease), opacity .28s .05s var(--ease),
                margin-top .42s var(--ease), padding-top .42s var(--ease),
                border-color .3s var(--ease), visibility 0s 0s;
  }

  /* Pozycje menu: pełna szerokość, hairline, pomarańczowa strzałka */
  .nav-links > a {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 15px 4px; border-radius: 0;
    font-size: 15.5px; font-weight: 500; line-height: 1.2;
    color: #e9e6e1; mix-blend-mode: normal; white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: color .2s var(--ease);
  }
  .nav-links > a::after {
    content: ""; flex: none; width: 7px; height: 7px;
    border-right: 1.6px solid var(--orange); border-top: 1.6px solid var(--orange);
    transform: rotate(45deg); opacity: .5;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-links > a:active { color: #fff; }
  .nav-links > a:active::after { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }

  /* Pozycje wjeżdżają kaskadą */
  .nav.open .nav-links > a { animation: navItemIn .34s var(--ease) both; }
  .nav.open .nav-links > a:nth-child(1) { animation-delay: .06s; }
  .nav.open .nav-links > a:nth-child(2) { animation-delay: .11s; }
  .nav.open .nav-links > a:nth-child(3) { animation-delay: .16s; }
  .nav.open .nav-links > a:nth-child(4) { animation-delay: .21s; }

  /* Telefony na dole menu — na komórce to najważniejsza akcja */
  .nav-menu-cta { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 6px; }
  .nav-menu-cta .btn { justify-content: center; padding: 14px 20px; font-size: 14px; mix-blend-mode: normal; }
  .nav.open .nav-menu-cta { animation: navItemIn .34s var(--ease) .26s both; }
}
@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-9px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  /* zdjęcia: mniej ekstremalne zaokrąglenia na mniejszym kadrze */
  .about-media img { border-radius: clamp(32px, 7vw, 60px); }
}

/* ---------- Telefony ---------- */
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact { padding: 26px 12px; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .card { min-height: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .ccard { min-height: 0; padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  /* Nawigacja: zwężamy pastylkę, skracamy CTA — inaczej rozpycha ekran */
  .nav { margin-inline: 14px; padding: 8px 8px 8px 16px; column-gap: 10px; row-gap: 0; }
  .brand { font-size: 16px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 11px 16px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { padding: 6px; }

  /* Zakładki galerii: pasek przewijany w bok zamiast czterech rzędów */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -24px; padding-inline: 24px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; padding: 12px 18px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shot { border-radius: 22px; }
  .gallery-state { border-radius: 22px; min-height: 220px; padding: 36px 20px; }
  .about-media img { border-radius: clamp(28px, 8vw, 44px); }

  /* --- HERO NA TELEFONIE ---------------------------------------------
     Kolejność: logo → hasło → opis → przyciski → zdjęcie.
     Zdjęcie jest wyższe (pionowy kadr), żeby nie było paskiem. */
  .hero { padding-top: clamp(96px, 25vw, 124px); }
  .hero-grid { gap: 28px; }
  .hero-logo { width: 172px; margin-bottom: 18px; }
  .hero .display { font-size: clamp(2.15rem, 9vw, 2.85rem); line-height: 1.06; margin-bottom: 16px; }
  .hero-sub { font-size: 1.03rem; line-height: 1.55; margin-bottom: 24px; }
  .hero-media img { height: min(96vw, 430px); border-radius: clamp(28px, 8vw, 40px); }
  .hero-badge { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 13px 16px; border-radius: 16px; }
  .hero-badge .v { font-size: 13.5px; }

  /* Przyciski w hero na całą szerokość — wygodniej w kciuk */
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Lightbox bliżej krawędzi, żeby zdjęcie było większe */
  .lightbox { padding: 14px; }
  .lightbox img { max-height: 74vh; border-radius: 16px; }
  .lightbox-close { top: 8px; right: 12px; font-size: 40px; padding: 4px 10px; }
  .lightbox-cap { bottom: 14px; padding-inline: 20px; }
}

/* ---------- Małe telefony ---------- */
@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .shot { border-radius: 26px; }
  .container { padding-inline: 18px; }
  .tabs { margin-inline: -18px; padding-inline: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Dostępność — mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
