/*
DimonFPV — dimonfpv.com
Ciemny motyw one-page dla operatora dronów (klasyczne i FPV), filmowca i fotografa.
Autor: Damian Miller
*/

/* ======================================================================
   ZMIENNE / DESIGN TOKENS
   ====================================================================== */
:root {
  --bg:            #0a0b0e;
  --bg-soft:       #101218;
  --bg-card:       #14161d;
  --bg-card-hover: #191c25;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);
  --text:          #eef1f6;
  --text-soft:     #aab1c0;
  --text-dim:      #6b7180;
  --accent:        #00e0d0;   /* turkus z loga */
  --accent-2:      #009bb0;   /* morski błękit */
  --accent-grad:   linear-gradient(120deg, #00e0d0 0%, #009bb0 100%);
  --radius:        0;
  --radius-sm:     0;
  --maxw:          1180px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:        0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ======================================================================
   RESET / BAZA
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--text-soft); }

::selection { background: var(--accent); color: #03231f; }

/* Pasek przewijania */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262b36; border-radius: 0; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #333a48; }

/* ======================================================================
   LAYOUT
   ====================================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
}
.section-title .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-lead { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; }

.section-head { margin-bottom: 60px; max-width: 720px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ======================================================================
   PRZYCISKI
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 0;
  border: 0;
  line-height: 1;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary {
  background-image: var(--accent-grad);
  color: #032b26;
  box-shadow: 0 14px 30px -14px rgba(0, 190, 180, 0.6);
}
.btn--primary:hover { box-shadow: 0 20px 40px -16px rgba(0, 190, 180, 0.75); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ======================================================================
   NAGŁÓWEK / NAWIGACJA
   ====================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding: 13px 0;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 0; background: var(--accent-grad); box-shadow: 0 0 14px var(--accent); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent-grad); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: inline-flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px auto; transition: transform 0.35s var(--ease), opacity 0.35s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================================
   HERO + FILM YOUTUBE W TLE
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Skalowanie iframe YouTube tak, aby zawsze pokrywał ekran (cover) */
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;          /* 16:9 względem szerokości */
  min-height: 100vh;
  min-width: 177.78vh;      /* 16:9 względem wysokości  */
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video::after {
  /* przyciemnienie + winieta dla czytelności tekstu */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,14,0.55) 0%, rgba(10,11,14,0.35) 40%, rgba(10,11,14,0.92) 100%),
    radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(10,11,14,0.6) 100%);
}
.hero-fallback {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 70% 10%, #1b2230 0%, #0a0b0e 60%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 90px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--text-soft); max-width: 56ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-dim); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 0; position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--accent); border-radius: 0; animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:1;transform:translate(-50%,0)} 100%{opacity:0;transform:translate(-50%,14px)} }

/* ======================================================================
   "CZYM SIĘ ZAJMUJĘ"
   ====================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--bg-card-hover); }
.pillar .ico {
  width: 56px; height: 56px; border-radius: 0; display: grid; place-items: center;
  background: rgba(0, 224, 208,0.1); color: var(--accent); margin-bottom: 22px;
}
.pillar .ico svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { margin: 0; font-size: 0.98rem; }

/* ======================================================================
   OFERTA
   ====================================================================== */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.offer-card::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.offer-card:hover { transform: translateY(-6px); }
.offer-card:hover::before { opacity: 1; }
.offer-card .num { font-size: 13px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.1em; }
.offer-card .ico { width: 46px; height: 46px; color: var(--accent); margin: 14px 0 18px; }
.offer-card .ico svg { width: 100%; height: 100%; }
.offer-card h3 { font-size: 1.25rem; }
.offer-card p { margin: 0; font-size: 0.95rem; }
.offer-card .tag {
  display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600;
  color: var(--accent-2); background: rgba(0, 155, 176,0.12); padding: 5px 12px; border-radius: 0;
}

/* ======================================================================
   SPRZĘT
   ====================================================================== */
.gear-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gear-item {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.gear-item:hover { transform: translateX(6px); border-color: var(--line-strong); background: var(--bg-card-hover); }
.gear-item .ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 0; display: grid; place-items: center;
  background: var(--accent-grad); color: #032b26;
}
.gear-item .ico svg { width: 26px; height: 26px; }
.gear-item .cat { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.gear-item h3 { font-size: 1.15rem; margin: 4px 0 4px; }
.gear-item p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* ======================================================================
   O MNIE
   ====================================================================== */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,14,0.75) 100%);
}
.about-photo .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: var(--text-dim); font-size: 14px; padding: 20px;
}
.about-photo .frame-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-soft);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 0;
  border: 1px solid var(--line);
}
.about-text h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.about-stats { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.about-stats .stat .n { font-size: 2.2rem; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats .stat .l { font-size: 0.85rem; color: var(--text-dim); }

/* ======================================================================
   KONTAKT / CTA
   ====================================================================== */
.contact { text-align: center; }
.contact .section-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.socials { display: flex; gap: 14px; justify-content: center; margin-top: 40px; }
.socials a {
  width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text-soft);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.socials a:hover { transform: translateY(-4px); color: var(--text); border-color: var(--accent); background: rgba(0, 224, 208,0.1); }
.socials svg { width: 20px; height: 20px; }

/* ======================================================================
   STOPKA
   ====================================================================== */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 14px; color: var(--text-dim); }
.footer-legal { color: var(--text-soft); transition: color 0.25s; }
.footer-legal:hover { color: var(--accent); }

/* ======================================================================
   ANIMACJE SCROLL-REVEAL
   ====================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .mouse::after { animation: none; }
}

/* ======================================================================
   RWD
   ====================================================================== */
@media (max-width: 900px) {
  .pillars, .offer-grid, .gear-list { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 420px; margin: 0 auto; width: 100%; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(10,11,14,0.97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform 0.45s var(--ease); z-index: 105;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .offer-grid { gap: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ======================================================================
   PORTFOLIO / REALIZACJE
   ====================================================================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item { transition: transform 0.5s var(--ease); }
.portfolio-item:hover { transform: translateY(-6px); }
.portfolio-embed {
  position: relative;
  padding-top: 56.25%;               /* 16:9 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.portfolio-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.portfolio-cta { text-align: center; margin-top: 40px; }

/* ======================================================================
   FORMULARZ KONTAKTOWY
   ====================================================================== */
.contact-form {
  max-width: 560px;
  margin: 38px auto 0;
  text-align: left;
  display: grid;
  gap: 16px;
}
.contact-form .field { display: grid; gap: 8px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.02em; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(0, 224, 208, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { justify-content: center; margin-top: 6px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-rodo { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.form-rodo a { color: var(--text-soft); text-decoration: underline; }
.form-rodo a:hover { color: var(--accent); }

.contact-or { margin: 26px 0 14px; font-size: 14px; color: var(--text-dim); }

/* Komunikat po wysłaniu (pokazywany przez JS po udanej wysyłce AJAX) */
.contact-success {
  display: none;
  max-width: 560px;
  margin: 24px auto 0;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: rgba(0, 224, 208, 0.1);
  border: 1px solid rgba(0, 224, 208, 0.35);
  color: var(--text);
  font-weight: 500;
}
.contact-success.is-shown { display: block; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ======================================================================
   LOGO
   ====================================================================== */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .brand-logo { height: 44px; }
.site-footer .brand-logo { height: 50px; }

@media (max-width: 560px) {
  .brand-logo { height: 46px; }
}

/* ======================================================================
   GALERIA ZDJĘĆ (masonry) + LIGHTBOX
   ====================================================================== */
.gallery { margin-top: 60px; }
.gallery-subhead {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 30px;
}
.gallery-subhead .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Masonry na CSS Grid: rzędy po 8px, każdy kafel rozpina tyle rzędów,
   ile wynika z proporcji zdjęcia (liczone w gallery.js) — kolejność 1,2,3…
   od lewej i brak przeskoków przy "Pokaż więcej". */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; grid-auto-rows: 8px; }
.gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
/* panoramy (bardzo szerokie kadry) zajmują dwie kolumny */
.gallery-item--wide { grid-column: span 2; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.gallery-more-wrap { text-align: center; margin-top: 30px; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { gap: 12px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0.93);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; animation: lbfade 0.3s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 0;
  box-shadow: var(--shadow);
  cursor: default;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-strong);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 0;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.lb-btn svg { width: 24px; height: 24px; }
.lb-btn:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: scale(1.08); }
  .lb-close { top: 16px; right: 16px; }
}

/* ======================================================================
   ZDJĘCIA SPRZĘTU (zamiast ikon) w sekcji "Na czym pracuję"
   ====================================================================== */
.gear-photo {
  flex: 0 0 auto;
  width: 120px;
  align-self: stretch;          /* zdjęcie na całą wysokość kafelka */
  min-height: 96px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}
.gear-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* kadruje zdjęcie do kształtu kafelka */
  display: block;
  transition: transform 0.6s var(--ease);
}
.gear-item:hover .gear-photo img { transform: scale(1.06); }
.gear-photo .ico { display: none; }

/* Brak zdjęcia -> wracamy do gradientowej ikonki */
.gear-photo.no-photo {
  width: 50px;
  min-height: 0;
  align-self: flex-start;
  overflow: visible;
  background: transparent;
}
.gear-photo.no-photo img { display: none; }
.gear-photo.no-photo .ico { display: grid; }

@media (max-width: 560px) {
  .gear-photo { width: 96px; min-height: 88px; }
}

/* ======================================================================
   TELEFON (kliknij i zadzwoń)
   ====================================================================== */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.25s, transform 0.3s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav-phone:hover { background: rgba(0, 224, 208,0.1); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--accent); }

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
  white-space: nowrap;
}
.footer-phone svg { width: 16px; height: 16px; color: var(--accent); }
.footer-phone:hover { color: var(--text); }

@media (max-width: 600px) {
  .nav-phone-num { display: none; }     /* na telefonie zostaje sama słuchawka */
  .nav-phone { padding: 10px; }
}

/* ======================================================================
   WARSTWA "PREMIUM": intro, glow, grain, kursor, showreel, before/after
   ====================================================================== */

/* --- Tło: pływające plamy światła --- */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow span { position: absolute; width: 46vw; height: 46vw; min-width: 360px; min-height: 360px; border-radius: 0; filter: blur(100px); opacity: 0.22; }
.bg-glow .g1 { background: #0fa396; top: -12%; left: -8%; animation: drift1 24s ease-in-out infinite; }
.bg-glow .g2 { background: #00647d; bottom: -14%; right: -10%; animation: drift2 28s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(12vw,9vh); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-10vw,-7vh); } }

/* --- Ziarno filmowe --- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Pasek postępu przewijania --- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent-grad); z-index: 1500;
}

/* --- Intro / preloader --- */
#intro { display: none; }
.intro-active #intro {
  display: flex; position: fixed; inset: 0; z-index: 2000;
  align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  background: #0a0b0e;
}
#intro img { height: 74px; width: auto; opacity: 0; transform: translateY(10px) scale(0.96); animation: introIn 0.9s var(--ease) forwards; }
#intro .intro-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
#intro .intro-bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--accent-grad); animation: introLoad 1.1s var(--ease) forwards; }
#intro.intro-hide { opacity: 0; transition: opacity 0.6s var(--ease); }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes introLoad { from { transform: translateX(-110%); } to { transform: translateX(310%); } }

/* --- Custom cursor: latający dron --- */
#cursor-drone { display: none; }
.has-cursor #cursor-drone {
  display: block; position: fixed; top: 0; left: 0;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  pointer-events: none; z-index: 1600; will-change: transform;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: filter 0.25s var(--ease), opacity 0.25s;
}
.has-cursor #cursor-drone svg { width: 100%; height: 100%; display: block; }
.has-cursor #cursor-drone.cursor-grow { filter: drop-shadow(0 0 12px rgba(0, 224, 208,0.85)); }
.prop-blades { transform-box: fill-box; transform-origin: center; animation: propspin 0.22s linear infinite; }
@keyframes propspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .prop-blades { animation: none; } }

/* --- Showreel: przycisk w hero --- */
.showreel-btn { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; padding: 0; }
.showreel-btn .play {
  width: 52px; height: 52px; border-radius: 0; position: relative;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.1); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.showreel-btn .play svg { width: 20px; height: 20px; margin-left: 2px; }
.showreel-btn:hover .play { transform: scale(1.08); background: rgba(0, 224, 208,0.22); }
.showreel-btn .play::before { content: ""; position: absolute; inset: -1px; border-radius: 0; border: 1px solid var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }

/* --- Showreel: modal --- */
.showreel-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(5,6,9,0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.showreel-modal.is-open { display: flex; animation: lbfade 0.3s var(--ease); }
.showreel-inner { position: relative; width: min(1100px, 92vw); aspect-ratio: 16/9; }
.showreel-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: var(--shadow); }

/* --- Before / After --- */
.ba-wrap { max-width: 1000px; margin: 0 auto; }
.ba {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  cursor: ew-resize; user-select: none; touch-action: none;
  box-shadow: var(--shadow);
}
.ba + .ba { margin-top: 24px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 55%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 55%; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; padding: 9px; border-radius: 0; background: rgba(20,22,28,0.6); border: 2px solid #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ba-tag { position: absolute; bottom: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; padding: 6px 12px; border-radius: 0; background: rgba(0,0,0,0.55); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
.ba-tag--before { left: 16px; }
.ba-tag--after { right: 16px; color: var(--accent); }
.ba-cap { position: absolute; top: 16px; left: 16px; font-size: 13px; color: #fff; background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: 0; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .bg-glow span, .showreel-btn .play::before { animation: none; }
}

/* ======================================================================
   CENNIK / PAKIETY
   ====================================================================== */
.price-cat { margin-top: 50px; }
.price-cat:first-of-type { margin-top: 0; }
.price-cat-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.3rem; margin-bottom: 22px;
}
.price-cat-title .num {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em; background: rgba(0, 224, 208,0.1);
  padding: 5px 11px; border-radius: 0;
}
.price-cat-title .pc-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent-2); background: rgba(0, 155, 176,0.14);
  padding: 4px 10px; border-radius: 0;
}
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--bg-card-hover); }
.price-card h4 { font-size: 1.15rem; margin: 0 0 9px; }
.price-card p { font-size: 0.92rem; color: var(--text-dim); margin: 0 0 20px; flex: 1; line-height: 1.6; }
.pc-price { font-size: 0.95rem; color: var(--text-soft); }
.pc-price strong {
  display: inline-block; font-size: 1.55rem; font-weight: 800;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pc-price .pc-quote { font-size: 1.05rem; }

.price-card--feat { border-color: rgba(0, 224, 208,0.4); }
.price-card--feat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; pointer-events: none;
}
.pc-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: #032b26; background: var(--accent-grad);
  padding: 4px 11px; border-radius: 0; margin-bottom: 12px;
}

.price-foot { text-align: center; margin-top: 52px; }
.price-foot p { max-width: 720px; margin: 0 auto 24px; font-size: 0.9rem; color: var(--text-dim); }

@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }

/* ======================================================================
   ŚWIECĄCE NAROŻNIKI (akcent w rogach ramek/przycisków)
   ====================================================================== */
.btn, .pillar, .gear-item { position: relative; }
.btn::after,
.offer-card::after,
.price-card::after,
.gear-item::after,
.pillar::after,
.ba::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  --cc: rgba(110, 245, 230, 0.85);
  background:
    linear-gradient(var(--cc), var(--cc)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--cc), var(--cc)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--cc), var(--cc)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--cc), var(--cc)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--cc), var(--cc)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--cc), var(--cc)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--cc), var(--cc)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--cc), var(--cc)) bottom right / 1.5px 14px no-repeat;
  filter: drop-shadow(0 0 4px rgba(0, 224, 208, 0.85)) drop-shadow(0 0 9px rgba(0, 224, 208, 0.5));
  transition: filter 0.3s var(--ease);
}
/* mocniejsza poświata narożników przy najechaniu */
.btn:hover::after,
.offer-card:hover::after,
.price-card:hover::after,
.gear-item:hover::after,
.pillar:hover::after {
  --cc: rgba(160, 255, 242, 1);
  filter: drop-shadow(0 0 7px rgba(0, 224, 208, 1)) drop-shadow(0 0 15px rgba(0, 224, 208, 0.7));
}
/* na przycisku głównym (jasny gradient) narożniki jaśniejsze dla kontrastu */
.btn--primary::after,
.btn--primary:hover::after { --cc: rgba(255, 255, 255, 0.9); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); }
.btn--primary:hover::after { --cc: rgba(255, 255, 255, 1); filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.55)); }
