/* ==========================================================================
   Cosnek Dron — arkusz stylów
   Paleta wzięta z samych zdjęć: grafit nocy + bursztyn latarni.
   ========================================================================== */

:root {
  --tlo:        #0a0b0d;
  --tlo-2:      #0f1115;
  --tlo-3:      #15181d;
  --karta:      #131519;
  --obrys:      rgba(255, 255, 255, .085);
  --obrys-mocny:rgba(255, 255, 255, .18);
  --tekst:      #f1f3f6;
  --tekst-cichy:#99a1ab;
  --akcent:     #e9a33c;
  --akcent-ciepl:#f7c274;
  --cien:       0 24px 60px -20px rgba(0, 0, 0, .8);
  --promien:    14px;
  --naglowek:   'Sora', ui-sans-serif, system-ui, sans-serif;
  --tresc:      'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --szer:       1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: var(--tresc);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--naglowek);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.015em; }

p { margin: 0 0 1.1em; }

.kontener {
  width: 100%;
  max-width: var(--szer);
  margin-inline: auto;
  padding-inline: 24px;
}

.omin {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--akcent);
  color: #14161a;
  padding: 12px 20px;
  z-index: 200;
  font-weight: 600;
}
.omin:focus { left: 12px; top: 12px; }

/* --- nadtytuł i wstęp ---------------------------------------------------- */

.nadtytul {
  font-family: var(--naglowek);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--akcent);
  margin: 0 0 1rem;
}

.wstep {
  max-width: 56ch;
  color: var(--tekst-cichy);
  font-size: 1.08rem;
  margin-bottom: 3.2rem;
}

/* --- nawigacja ----------------------------------------------------------- */

.nawigacja {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}

.nawigacja.przyklejona {
  background: rgba(10, 11, 13, .86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--obrys);
}

.nawigacja-srodek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.marka {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.marka-znak {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--akcent);
  position: relative;
  flex-shrink: 0;
}
.marka-znak::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--akcent);
  box-shadow: 0 0 14px var(--akcent);
}

.marka-tekst {
  font-family: var(--naglowek);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.02em;
}
.marka-tekst span { color: var(--akcent); }

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 400;
  color: var(--tekst-cichy);
  transition: color .2s ease;
  white-space: nowrap;
}
.menu a:hover, .menu a:focus-visible { color: var(--tekst); }

.menu-cta {
  border: 1px solid var(--obrys-mocny);
  border-radius: 100px;
  padding: 9px 20px;
  color: var(--tekst) !important;
}
.menu-cta:hover { border-color: var(--akcent); color: var(--akcent) !important; }

.menu-przycisk {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu-przycisk span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tekst);
  transition: transform .3s ease, opacity .2s ease;
}
.menu-przycisk[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-przycisk[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-przycisk[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-tlo {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-tlo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: powolny-najazd 26s ease-out forwards;
}

@keyframes powolny-najazd {
  to { transform: scale(1); }
}

.hero-cien {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 11, 13, .96) 0%, rgba(10, 11, 13, .78) 42%, rgba(10, 11, 13, .34) 100%),
    linear-gradient(to top, var(--tlo) 2%, transparent 42%);
}

.hero-tresc {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 60px;
}

.hero h1 em {
  font-style: normal;
  color: var(--akcent);
}

.hero-opis {
  max-width: 46ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: #c9d0d8;
  margin-top: 1.6rem;
}

.hero-guziki {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4rem;
}

.hero-fakty {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 3rem 0 0;
  padding: 0;
  font-size: .87rem;
  color: var(--tekst-cichy);
  letter-spacing: .01em;
}
.hero-fakty li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-fakty li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--akcent);
  flex-shrink: 0;
}

.hero-strzalka {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--obrys-mocny);
  border-radius: 100px;
}
.hero-strzalka span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--akcent);
  animation: opadanie 1.9s ease-in-out infinite;
}
@keyframes opadanie {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(15px); opacity: .15; }
}

/* --- guziki -------------------------------------------------------------- */

.guzik {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--naglowek);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.guzik-glowny {
  background: var(--akcent);
  color: #16181d;
  box-shadow: 0 10px 34px -12px rgba(233, 163, 60, .8);
}
.guzik-glowny:hover {
  background: var(--akcent-ciepl);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(233, 163, 60, .9);
}

.guzik-obrys {
  border-color: var(--obrys-mocny);
  color: var(--tekst);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(6px);
}
.guzik-obrys:hover { border-color: var(--tekst); transform: translateY(-2px); }

.guzik-pelny { width: 100%; }

/* --- sekcje -------------------------------------------------------------- */

.sekcja { padding: clamp(72px, 11vw, 130px) 0; }
.sekcja-ciemna { background: var(--tlo-2); }
.sekcja-akcent {
  background:
    radial-gradient(1100px 460px at 12% 0%, rgba(233, 163, 60, .11), transparent 62%),
    var(--tlo-2);
  border-block: 1px solid var(--obrys);
}

/* --- karty usług --------------------------------------------------------- */

.karty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.karta {
  background: var(--karta);
  border: 1px solid var(--obrys);
  border-radius: var(--promien);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.karta:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 163, 60, .42);
  background: var(--tlo-3);
}

.karta-ikona {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(233, 163, 60, .12);
  color: var(--akcent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.karta-ikona svg { width: 24px; height: 24px; }

.karta p {
  color: var(--tekst-cichy);
  font-size: .96rem;
  margin-bottom: 1.4em;
}

.karta-lista {
  list-style: none;
  margin: auto 0 0;          /* listy w rzędzie kart trzymają jedną linię */
  padding: 20px 0 0;
  border-top: 1px solid var(--obrys);
  display: grid;
  gap: 10px;
  font-size: .89rem;
  color: #b6bec7;
}
.karta-lista li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.karta-lista li::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(233, 163, 60, .16);
  box-shadow: inset 0 0 0 1px rgba(233, 163, 60, .45);
}

/* --- galeria ------------------------------------------------------------- */

/* Trzy kolumny układają obecne 5 kadrów w pełny prostokąt bez dziur:
   duży 2×2, pionowy 1×2, a pod nimi trzy zwykłe kafle. */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 225px;
  gap: 14px;
}

.kafel {
  position: relative;
  padding: 0;
  border: 1px solid var(--obrys);
  border-radius: var(--promien);
  overflow: hidden;
  background: var(--tlo-3);
  cursor: zoom-in;
  grid-column: span 1;
  grid-row: span 1;
}
.kafel-duzy  { grid-column: span 2; grid-row: span 2; }
.kafel-wysoki{ grid-row: span 2; }

.kafel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
  filter: saturate(.94);
}
.kafel:hover img { transform: scale(1.06); filter: saturate(1.08); }

.kafel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, transparent 52%);
  opacity: .82;
  transition: opacity .3s ease;
  pointer-events: none;
}
.kafel:hover::after { opacity: .95; }

.kafel-podpis {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  z-index: 2;
  font-family: var(--naglowek);
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
  color: #fff;
  transform: translateY(4px);
  opacity: .88;
  transition: transform .3s ease, opacity .3s ease;
}
.kafel:hover .kafel-podpis { transform: translateY(0); opacity: 1; }

/* --- sprzęt -------------------------------------------------------------- */

.sprzet-uklad {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.sprzet-uklad p { color: var(--tekst-cichy); }
.sprzet-uklad strong { color: var(--tekst); font-weight: 600; }
.sprzet-uklad .guzik { margin-top: .8rem; }

.dane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dana {
  background: var(--karta);
  border: 1px solid var(--obrys);
  border-radius: var(--promien);
  padding: 26px 22px;
  display: grid;
  gap: 4px;
}

.dana-liczba {
  font-family: var(--naglowek);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--akcent);
}
.dana-opis {
  font-size: .82rem;
  color: var(--tekst-cichy);
  letter-spacing: .02em;
}

/* --- kroki --------------------------------------------------------------- */

.kroki {
  list-style: none;
  margin: 0 0 2.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  counter-reset: krok;
}

.kroki li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--obrys-mocny);
}
.kroki h3 { margin-bottom: .4em; }
.kroki p {
  color: var(--tekst-cichy);
  font-size: .94rem;
  margin: 0;
}

.krok-numer {
  display: inline-block;
  font-family: var(--naglowek);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--akcent);
  margin-bottom: 12px;
}

.dopisek {
  color: var(--tekst-cichy);
  font-size: .95rem;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--akcent);
}

/* --- kontakt i formularz ------------------------------------------------- */

.kontakt-uklad {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.kontakt-uklad > div p { color: var(--tekst-cichy); }

.kontakt-mail {
  font-family: var(--naglowek);
  font-size: clamp(1.05rem, 2.4vw, 1.42rem);
  font-weight: 600;
  margin-top: 1.8rem;
}
.kontakt-mail a {
  color: var(--akcent);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 163, 60, .35);
  padding-bottom: 2px;
  word-break: break-all;
}
.kontakt-mail a:hover { border-bottom-color: var(--akcent); }

.kontakt-obszar {
  font-size: .88rem;
  letter-spacing: .02em;
}

.formularz {
  background: var(--karta);
  border: 1px solid var(--obrys);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--cien);
}

.pole { margin-bottom: 18px; }

.pole label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #b6bec7;
  margin-bottom: 8px;
}

.pole input,
.pole select,
.pole textarea {
  width: 100%;
  background: #0c0e11;
  border: 1px solid var(--obrys);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--tekst);
  font-family: var(--tresc);
  font-size: .97rem;
  font-weight: 300;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pole textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.pole select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #99a1ab 50%), linear-gradient(135deg, #99a1ab 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.pole select option { background: #14161a; }

.pole input::placeholder,
.pole textarea::placeholder { color: #5d666f; }

.pole input:focus,
.pole select:focus,
.pole textarea:focus {
  outline: none;
  border-color: var(--akcent);
  box-shadow: 0 0 0 3px rgba(233, 163, 60, .14);
}

.pole.blad input,
.pole.blad textarea { border-color: #e06a5b; }

.pole-pulapka {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.zgoda {
  font-size: .78rem;
  line-height: 1.55;
  color: #7e8791;
  margin: 4px 0 20px;
}

.odpowiedz {
  margin: 16px 0 0;
  font-size: .9rem;
  min-height: 1.2em;
}
.odpowiedz.ok    { color: #6dcf8e; }
.odpowiedz.zle   { color: #e88a7c; }

/* --- stopka -------------------------------------------------------------- */

.stopka {
  background: var(--tlo-2);
  border-top: 1px solid var(--obrys);
  padding: 52px 0 44px;
  text-align: center;
}
.stopka p {
  color: var(--tekst-cichy);
  font-size: .9rem;
  margin: 14px 0 0;
}
.stopka a { color: var(--akcent); text-decoration: none; }
.stopka a:hover { text-decoration: underline; }
.stopka-drobne { font-size: .78rem !important; color: #6c757e !important; margin-top: 8px !important; }

/* --- lupa (powiększenie zdjęcia) ----------------------------------------- */

.lupa {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 7, 9, .96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 5vw;
  opacity: 0;
  transition: opacity .28s ease;
}
.lupa.widoczna { opacity: 1; }

/* bez tego autorskie display:flex bije domyślne [hidden] i overlay
   przykrywa całą stronę, choć jest "schowany" */
.lupa[hidden] { display: none; }

.lupa-ramka {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lupa-ramka img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 30px 90px -30px #000;
}
.lupa-ramka figcaption {
  font-family: var(--naglowek);
  font-size: .88rem;
  font-weight: 500;
  color: var(--tekst-cichy);
  text-align: center;
}

.lupa-zamknij,
.lupa-strzalka {
  position: absolute;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--obrys);
  color: var(--tekst);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, border-color .2s ease;
  line-height: 1;
}
.lupa-zamknij:hover,
.lupa-strzalka:hover { background: rgba(255, 255, 255, .14); border-color: var(--obrys-mocny); }

.lupa-zamknij {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 1.9rem;
  padding-bottom: 4px;
}

.lupa-strzalka {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2.1rem;
  padding-bottom: 5px;
}
.lupa-wstecz { left: 20px; }
.lupa-dalej  { right: 20px; }

/* --- odsłanianie przy przewijaniu ---------------------------------------- */

/* chowamy tylko wtedy, gdy JS działa — inaczej strona zostałaby pusta */
.js .odsloniecie {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.2, .7, .3, 1), transform .75s cubic-bezier(.2, .7, .3, 1);
}
.js .odsloniecie.widac {
  opacity: 1;
  transform: none;
}

/* --- responsywność ------------------------------------------------------- */

@media (max-width: 960px) {
  .sprzet-uklad,
  .kontakt-uklad { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .kafel-duzy { grid-column: span 2; }
  .kafel-wysoki { grid-row: span 1; }   /* przy dwóch kolumnach 5 kafli układa się bez dziur */
}

@media (max-width: 780px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 16px; }

  .menu-przycisk { display: flex; }

  .menu {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 11, 13, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--obrys);
    padding: 10px 24px 26px;
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.3, .8, .3, 1);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
  }
  .menu.otwarte { transform: translateY(0); }
  .menu a {
    padding: 15px 0;
    border-bottom: 1px solid var(--obrys);
    font-size: 1.02rem;
  }
  .menu-cta {
    margin-top: 18px;
    border-bottom: 1px solid var(--obrys-mocny);
    text-align: center;
  }

  .nawigacja-srodek { height: 64px; }
  .nawigacja { background: rgba(10, 11, 13, .8); backdrop-filter: blur(12px); }

  /* na wąskich telefonach "z powietrza" nie mieściło się w jednej linii */
  h1 { font-size: clamp(2.05rem, 9vw, 3.2rem); }
  h2 { font-size: clamp(1.65rem, 6.5vw, 2.4rem); }

  .hero { min-height: 92svh; }
  .hero-cien {
    background:
      linear-gradient(180deg, rgba(10, 11, 13, .82) 0%, rgba(10, 11, 13, .6) 45%, rgba(10, 11, 13, .93) 100%);
  }
  .hero-guziki .guzik { flex: 1 1 100%; }
  .hero-fakty { gap: 10px 20px; font-size: .82rem; }
  .hero-strzalka { display: none; }

  .galeria { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .kafel-duzy, .kafel-wysoki { grid-column: span 1; grid-row: span 1; }

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

  .lupa { padding: 0; }
  .lupa-ramka { gap: 12px; padding: 70px 12px; }
  .lupa-ramka img { max-height: 68vh; }
  .lupa-strzalka { top: auto; bottom: 26px; transform: none; width: 46px; height: 46px; }
  .lupa-wstecz { left: 26px; }
  .lupa-dalej  { right: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .odsloniecie { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--akcent);
  outline-offset: 3px;
  border-radius: 4px;
}
