/* ================================================================
   M-GEO — style.css v3.0
   Modern UX/UI: scroll-snap sections, fluid typography, responsive
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:      #002B5B;
  --navy-deep: #001a3a;
  --blue:      #007BFF;
  --blue-lt:   #e8f3ff;
  --blue-mid:  #3395ff;
  --white:     #FFFFFF;
  --grey:      #f6f8fc;
  --text:      #1e2a3a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --sh:        0 4px 24px rgba(0,43,91,.08);
  --sh-lg:     0 16px 48px rgba(0,43,91,.14);
  --sh-xl:     0 28px 64px rgba(0,43,91,.18);
  --r:         16px;
  --r-lg:      24px;
  --nav-h:     68px;
  --t:         .25s ease;
  --t-slow:    .5s ease;
  /* Bezpieczny padding sekcji: nav + margines górny + margines dolny */
  --sec-pt:    calc(var(--nav-h) + 28px);
  --sec-pb:    28px;
  --gutter:    clamp(24px, 6vw, 96px);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 700; }
p  { line-height: 1.7; color: var(--muted); }

span { color: var(--blue); }

/* ── SCROLL CONTAINER ───────────────────────────────────────── */
#page-wrap {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  scrollbar-width: none;
}
#page-wrap::-webkit-scrollbar { display: none; }

/* ── SEKCJE ─────────────────────────────────────────────────── */
.section,
.sub-section {
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sec-pt) var(--gutter) var(--sec-pb);
}

/* ── INNER WRAPPER ──────────────────────────────────────────── */
.inner {
  width: 100%;
  max-width: 1140px;
  max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* contact-grid też musi być nad paskami */
.contact-grid {
  position: relative;
  z-index: 2;
}

/* ── TŁA SEKCJI ─────────────────────────────────────────────── */
.bg-grey  { background: var(--grey); }
.bg-navy  { background: var(--navy); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy span { color: var(--blue-mid); }
.bg-navy p { color: rgba(255,255,255,.72); }

/* ── BRAND STRIPES ───────────────────────────────────────────── */
.brand-stripes {
  position: absolute;
  left: 0; bottom: 0;
  width: 30%; height: 100%;
  clip-path: inset(0);
  overflow: hidden;
  z-index: 2; /* nad tłem i filtrem, pod treścią */
  pointer-events: none;
}
.bs {
  position: absolute;
  left: -20%; width: 140%;
  transform-origin: top left;
  transform: rotate(45deg) translateX(-110%);
  transition: transform .9s cubic-bezier(.25,1,.5,1);
}
.brand-stripes.visible .bs-1 { transform: rotate(45deg) translateX(0); transition-delay: .1s; }
.brand-stripes.visible .bs-2 { transform: rotate(45deg) translateX(0); transition-delay: .25s; }
.bs-1 { height: 7%; bottom: 38%; }
.bs-2 { height: 7%; bottom: 23%; }

/* Mobile — wrapper szerszy, paski przy dolnej lewej krawędzi,
   końce giną za prawą krawędzią wrappera (clip-path: inset(0)) */
@media (max-width: 768px) {
  .brand-stripes {
    width: 55%;   /* szerszy kadr — oba paski w pełni widoczne */
    height: 40%;  /* tylko dolna część sekcji */
    bottom: 0;
    top: auto;
  }
  /* Paski niżej — przy samej dolnej krawędzi sekcji */
  .bs-1 { height: 9%; bottom: 52%; }
  .bs-2 { height: 9%; bottom: 30%; }
}

/* Kolory pasków zależnie od tła sekcji */
#about   .bs-1 { background: rgba(255,255,255,.18); }
#about   .bs-2 { background: var(--blue); }
#offer   .bs-1 { background: var(--navy); }
#offer   .bs-2 { background: var(--blue); }
#pricing .bs-1 { background: var(--navy); }
#pricing .bs-2 { background: var(--blue); }
#contact .bs-1 { background: var(--navy); opacity: .08; }
#contact .bs-2 { background: var(--blue); opacity: .12; }

/* Podstrony — paski w sekcjach bez zdjęcia */
.sub-section .bs-1 { background: var(--navy); }
.sub-section .bs-2 { background: var(--blue); }
.sub-section.bg-grey .bs-1 { background: var(--navy); }
.sub-section.bg-grey .bs-2 { background: var(--blue); }
.sub-section.bg-navy .bs-1 { background: rgba(255,255,255,.15); }
.sub-section.bg-navy .bs-2 { background: var(--blue-mid); }
/* ── O NAS — split poziomy, równe kolumny, bez zdjęcia ─────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  height: calc(100dvh - var(--sec-pt) - var(--sec-pb));
}
.about-split-left,
.about-split-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.about-split-left {
  border-right: 1px solid var(--border);
  padding-right: clamp(24px, 4vw, 56px);
}
.about-split-right {
  padding-left: clamp(24px, 4vw, 56px);
}
.about-split-left h2,
.about-split-right h2 { margin-bottom: clamp(8px,1.2vh,16px); }
.about-split-lead { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: .7rem; }
.about-split-desc { font-size: .83rem; color: var(--muted); line-height: 1.85; margin-bottom: clamp(12px,1.8vh,22px); }

.team-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: clamp(12px,1.8vh,22px); }
.team-member {
  display: flex; align-items: center; gap: 12px;
  background: var(--grey); border-radius: 12px; padding: 11px 14px;
  border-left: 3px solid var(--blue);
  transition: background var(--t), transform var(--t);
}
.team-member:hover { background: #fff; transform: translateX(3px); }
.tm-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--blue-lt); color: var(--blue);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .92rem;
}
.tm-info h3 { font-size: .84rem; color: var(--navy); margin-bottom: 1px; }
.tm-info .tm-role { font-size: .67rem; color: var(--muted); }
.tm-info a { font-size: .75rem; color: var(--blue); font-weight: 600; }

.about-split-stats {
  display: flex; gap: clamp(14px,2.5vw,36px);
  padding: clamp(10px,1.4vh,16px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(14px,2vh,22px);
}
.split-stat-n { display: block; font-size: clamp(1.4rem,2.2vw,2rem); font-weight: 800; color: var(--blue); line-height: 1; }
.split-stat-l { display: block; font-size: .63rem; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-top: 3px; }

/* ── DRONE BANNER — nowa sekcja na stronie głównej z wideo ─── */
#drone-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
#drone-banner .drone-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
#drone-banner .drone-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,43,91,.88) 0%, rgba(0,20,50,.75) 100%);
  z-index: 1;
}
#drone-banner .stripe-wrap {
  position: absolute; left: 0; bottom: 0;
  width: 30%; height: 100%;
  clip-path: inset(0); overflow: hidden; z-index: 2;
  transform: translateX(0);
}
.drone-banner-content {
  position: relative; z-index: 3;
  max-width: 680px;
}
.drone-banner-tag {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blue-mid); margin-bottom: .8rem;
}
.drone-banner-content h2 { color: #fff; font-size: clamp(1.9rem,3.5vw,3.2rem); margin-bottom: 1rem; }
.drone-banner-content h2 span { color: var(--blue-mid); }
.drone-banner-desc {
  color: rgba(255,255,255,.78); font-size: clamp(.86rem,1.1vw,1rem);
  line-height: 1.75; margin-bottom: 1.6rem; max-width: 540px;
}
.drone-banner-stats {
  display: flex; gap: clamp(20px,4vw,52px);
  margin-bottom: 2rem; padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.dbs-n { display: block; font-size: clamp(1.5rem,2.5vw,2.2rem); font-weight: 800; color: var(--blue-mid); line-height: 1; }
.dbs-l { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .7px; color: rgba(255,255,255,.45); margin-top: 3px; }
@media (max-width: 768px) {
  #drone-banner .drone-video-bg { display: none; }
  #drone-banner { background: var(--navy-deep); }
  .drone-banner-stats { gap: 16px; }
  .dbs-n { font-size: 1.3rem; }
}

/* ── DRONY — sekcja z wideo w tle ───────────────────────────── */
.drone-cta-video {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.drone-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.drone-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 60, .72);
  z-index: 1;
}
.drone-cta-video h2 { color: #fff; }
.drone-cta-video span { color: var(--blue-mid); }
.drone-cta-video p.subtitle { color: rgba(255,255,255,.75); }
.drone-cta-video .inner { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .drone-video-bg,
  .drone-video-overlay { display: none; }
  .drone-cta-video { background: var(--navy); }
}

/* ── DRONY — nagłówek+tekst wyśrodkowane pionowo względem kwadratu ── */
.drone-split-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;         /* wyśrodkowanie w poziomie względem zdjęcia */
  margin-bottom: clamp(16px, 2.2vh, 28px);
  padding-bottom: clamp(16px, 2.2vh, 28px);
  border-bottom: 1px solid var(--border);
}
.drone-split-txt { display: flex; flex-direction: column; justify-content: center; }
.drone-split-txt h2 { margin-bottom: clamp(8px,1.2vh,14px); }
.drone-split-txt p  { color: var(--muted); font-size: .88rem; line-height: 1.75; margin-bottom: clamp(12px,1.8vh,20px); }
/* Kwadratowe zdjęcie — aspect-ratio 1/1 */
.drone-split-img {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: calc((100dvh - var(--sec-pt) - var(--sec-pb)) * 0.52);
}
.drone-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drone-split-bottom h3 { font-size: clamp(.92rem,1.2vw,1.05rem); margin-bottom: clamp(10px,1.4vh,16px); }

/* Mobile */
@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr; height: auto; overflow-y: auto;
  }
  .about-split-left {
    border-right: none; border-bottom: 1px solid var(--border);
    padding-right: 0; padding-bottom: 20px; height: auto;
  }
  .about-split-right { padding-left: 0; height: auto; }
  .drone-split-top { grid-template-columns: 1fr; }
  .drone-split-img { aspect-ratio: 1/1; max-height: 50vw; }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reveal.in { opacity: 1; transform: none; }

/* ── NAGŁÓWKI SEKCJI ────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: clamp(20px, 3vh, 36px);
}
.section-title h2 { margin-bottom: 6px; }
.section-title p  { font-size: .9rem; max-width: 500px; margin: 0 auto; }

/* ================================================================
   NAV
================================================================ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0, 43, 91, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1;
}
.logo-m { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 7px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .84rem;
  color: rgba(255,255,255,.82);
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links li.active a { background: var(--blue); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--t);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-dropdown {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(0,27,60,.97);
  backdrop-filter: blur(16px);
  z-index: 199;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.nav-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown ul { padding: 12px 0 18px; }
.nav-dropdown ul li a {
  display: block;
  padding: 12px 28px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  border-left: 3px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.nav-dropdown ul li a:hover,
.nav-dropdown ul li.active a {
  background: rgba(0,123,255,.15);
  border-color: var(--blue);
  color: #fff;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--blue);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: .2px;
}
.btn:hover {
  background: #0069d9;
  border-color: #0069d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,123,255,.32);
}
.btn-navy { background: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: 0 8px 24px rgba(0,43,91,.32); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(18px, 2.5vh, 32px);
}

/* ================================================================
   HERO (index.html)
================================================================ */
#hero {
  /* Slider + kafelki: flex column, marginesy boczne */
  padding: calc(var(--nav-h) + 14px) clamp(28px, 4vw, 60px) 14px;
  overflow: hidden;
  background: var(--grey);
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: stretch;
}

/* Slider rośnie, wypełnia przestrzeń minus kafelki */
#hero .hero-slider {
  flex: 1;
  min-height: 0;
  width: 100%;
}

/* Kafelki pod sliderem */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  height: clamp(100px, 18dvh, 150px);
  flex-shrink: 0;
}
.hero-tile {
  height: 100%;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.hero-tile:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.hero-tile i  { font-size: 1.35rem; color: var(--blue); margin-bottom: 2px; }
.hero-tile h3 { font-size: .72rem; margin-bottom: 0; color: var(--navy); text-align: center; }
.hero-tile p  { font-size: .62rem; line-height: 1.3; color: var(--muted); text-align: center; display: none; }

/* Kafelki pod sliderem — 20dvh wysokości, 4 kolumny */
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  height: 20dvh;
  min-height: 110px;
  max-height: 160px;
  flex-shrink: 0;
}
.hero-tiles .tile {
  height: 100%;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* nadpisz domyślne .tile marginy */
  margin: 0;
  border-bottom: 4px solid transparent;
  text-decoration: none;
  color: inherit;
}
.hero-tiles .tile:hover { border-color: var(--blue); transform: translateY(-4px); }
.hero-tiles .tile i  { font-size: 1.4rem; margin-bottom: 2px; }
.hero-tiles .tile h3 { font-size: .75rem; margin-bottom: 0; }
.hero-tiles .tile p  { font-size: .64rem; line-height: 1.35; color: var(--muted); text-align: center; }

/* Nav arrows */
.h-arrow {
  position: absolute;
  /* Środek slidera = połowa (100dvh - nav - kafelki - paddingi) */
  top: calc(var(--nav-h) + 14px + (100dvh - var(--nav-h) - clamp(100px,18dvh,150px) - 40px) / 2);
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  color: var(--navy);
  z-index: 10;
  transition: color var(--t), transform var(--t);
}
.h-arrow:hover { color: var(--blue); transform: translateY(-50%) scale(1.1); }
.h-arrow.prev { left: clamp(8px, 1%, 16px); }
.h-arrow.next { right: clamp(8px, 1%, 16px); }

/* Slajd z wideo w tle */
.slide-video { background: #000; }
.slide-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-slider {
  width: 100%; height: 100%;
  border-radius: clamp(18px, 2.2vw, 32px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 56px rgba(0,0,0,.16);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .85s ease-in-out;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right,
    #fff 0%, #fff 40%, rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 68%);
}

/* PASKI — dokładna kopia z oryginalnego działającego projektu */
.stripe-wrap {
  position: absolute; left: 0; bottom: 0;
  width: 30%; height: 100%;
  clip-path: inset(0);
  z-index: 2;
  transform: translateX(-105%);
  transition: transform .85s cubic-bezier(.25,1,.5,1);
  overflow: hidden;
}
.slide.active .stripe-wrap { transform: translateX(0); transition-delay: .15s; }

.stripe {
  position: absolute;
  left: -20%; width: 140%;
  transform-origin: top left;
  transform: rotate(45deg);
}
.s-navy { height: 7%; bottom: 38%; background: var(--navy); }
.s-blue { height: 7%; bottom: 23%; background: var(--blue); }

/* Slide content */
.slide-content {
  position: absolute; top: 50%; left: 10%;
  transform: translateY(-50%);
  width: min(44%, 520px);
  z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  opacity: 0; transition: opacity .55s ease;
}
.slide.active .slide-content { opacity: 1; transition-delay: .35s; }

.slide-logo {
  width: clamp(90px, 17vw, 210px); height: auto;
  margin-bottom: clamp(10px, 1.6vw, 20px);
  filter: drop-shadow(0 2px 6px rgba(0,43,91,.12));
}
.slide-title {
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  font-weight: 800; line-height: 1.08;
  margin-bottom: clamp(10px, 1.4vw, 18px);
}
.slide-text {
  color: #111;
  font-size: clamp(.86rem, 1.05vw, 1.12rem);
  font-weight: 500; line-height: 1.62;
  margin-bottom: clamp(14px, 2vw, 26px);
}
.slide-btn {
  display: inline-flex; align-items: center;
  padding: clamp(10px,1.3vw,15px) clamp(22px,2.8vw,44px);
  background: var(--navy); color: #fff;
  border-radius: 50px; font-weight: 700;
  font-size: clamp(.78rem,.92vw,.98rem);
  text-transform: uppercase; letter-spacing: .8px;
  border: 2.5px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  transition: all var(--t);
}
.slide-btn:hover { background: var(--blue); transform: translateY(-2px); }

/* Slide dots */
.slider-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,43,91,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t);
}
.dot.active { background: var(--navy); transform: scale(1.3); }

/* Mobile hero — ORYGINALNY styl: białe tło, paski, tekst ciemny */
.mob-hero { display: none; }

@keyframes fadeDown { to { opacity:1; transform:none; } }
@keyframes fadeUp   { to { opacity:1; transform:none; } }

/* ================================================================
   O NAS
================================================================ */

/* ── O NAS — zdjęcie w tle ─────────────────────────────────── */
.about-bg-photo {
  position: absolute; inset: 0;
  background: url('https://imaginative-brown-chihuahua.83-168-99-193.cpanel.site/image/mg6.jpg')
    center/cover no-repeat;
  z-index: 0;
}
.about-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,43,91,.93) 0%, rgba(0,20,50,.88) 100%);
  z-index: 1;
}

/* ── USŁUGI — zdjęcie w tle z białym filtrem ────────────────── */
.offer-bg-photo {
  position: absolute; inset: 0;
  background: url('https://imaginative-brown-chihuahua.83-168-99-193.cpanel.site/image/mg3.jpg')
    center/cover no-repeat;
  z-index: 0;
}
.offer-overlay {
  position: absolute; inset: 0;
  background: rgba(246, 248, 252, 0.92);
  z-index: 1;
}

#about { background: var(--navy); }

.about-bg-letter {
  position: absolute;
  top: -10%; right: -2%;
  font-size: clamp(30vw, 42vw, 52vw);
  font-weight: 800;
  color: rgba(255,255,255,.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.about-row {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  width: 100%;
}
/* Wariant bez zdjęcia — jedna kolumna, wyśrodkowana */
.about-row--noimg {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}
.about-text {}
.about-h {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
  margin-bottom: clamp(12px, 1.8vh, 20px);
}
.about-h span { color: var(--blue-mid); }
.about-lead {
  color: #c8deff;
  font-size: clamp(.9rem, 1.2vw, 1.1rem);
  font-weight: 300;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  line-height: 1.72;
}
.about-desc {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  line-height: 1.85;
  margin-bottom: clamp(18px, 2.5vh, 32px);
}
.about-stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: clamp(18px, 2.5vh, 32px);
}
.stat-item {}
.stat-n {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-mid);
  line-height: 1;
}
.stat-l {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}
/* Oryginalna klasa z index.html */
.about-img {
  position: relative;
  flex-shrink: 0;
  width:  clamp(320px, 52vh, 560px);
  height: clamp(320px, 52vh, 560px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-frame {
  position: absolute; inset: -8px;
  border: 2px solid rgba(0,123,255,.35);
  border-radius: calc(var(--r-lg) + 8px);
  z-index: -1;
  pointer-events: none;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 56px rgba(0,0,0,.5);
  object-fit: cover;
  max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb) - 20px);
  height: clamp(280px, 48dvh, 520px);
}
.about-img-deco {
  position: absolute;
  top: -12px; left: -12px;
  width: 100%; height: 100%;
  border: 2px solid rgba(0,123,255,.4);
  border-radius: var(--r-lg);
  z-index: -1;
}
.about-img-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,123,255,.4);
  text-align: center;
  min-width: 110px;
}
.about-img-badge strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.about-img-badge span {
  font-size: .65rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* ================================================================
   USŁUGI (offer grid)
================================================================ */
#offer { background: var(--grey); }

.offer-wrap { width: 100%; position: relative; z-index: 3; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.8vw, 24px);
}
.tile {
  background: #fff;
  padding: clamp(20px, 2.2vw, 32px) clamp(16px, 1.5vw, 22px);
  border-radius: var(--r);
  text-align: center;
  box-shadow: var(--sh);
  border-bottom: 3px solid transparent;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.tile:hover::before { transform: scaleX(1); }
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue);
}
.tile i { font-size: 2.2rem; color: var(--blue); margin-bottom: 12px; display: block; }
.tile h3 { font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.tile p  { color: var(--muted); font-size: .8rem; line-height: 1.6; }

.center-cta {
  text-align: center;
  margin-top: clamp(16px, 2.2vh, 28px);
}

/* ================================================================
   DRONY
================================================================ */
#drone { position: relative; overflow: hidden; }

.drone-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1473968512647-3e447244af8f?w=1920&q=85') center/cover no-repeat;
  z-index: 0;
}
.drone-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,43,91,.92) 0%, rgba(0,20,50,.88) 100%);
}
/* Wideo nadpisuje zdjęcie fallback gdy się załaduje */
#drone .drone-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
#drone .drone-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,43,91,.85) 0%, rgba(0,20,50,.80) 100%);
  z-index: 2;
}
.drone-box {
  position: relative; z-index: 3;
  text-align: center;
  max-width: 700px;
}
.drone-box h2 { color: #fff; margin-bottom: clamp(10px, 1.5vh, 18px); }
.drone-box p  { color: rgba(255,255,255,.8); font-size: clamp(.86rem, 1.1vw, 1rem); margin-bottom: 0; }

@media (max-width: 768px) {
  #drone .drone-video-bg,
  #drone .drone-video-overlay { display: none; }
}

/* ================================================================
   CENNIK
================================================================ */
#pricing { background: var(--grey); }

.price-wrap { width: 100%; position: relative; z-index: 2; }
.price-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(12px, 1.8vh, 20px);
  flex-wrap: wrap;
  gap: 10px;
}
.price-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-lt);
  border-left: 3px solid var(--blue);
  padding: 9px 14px;
  border-radius: 0 10px 10px 0;
  font-size: .78rem;
  color: var(--navy);
}
.price-table {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb) - 100px);
  overflow: visible;
  position: relative;
  z-index: 1;
}
.price-head {
  display: flex;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
}
.price-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  border-radius: 0 0 var(--r) var(--r);
}
.price-body::-webkit-scrollbar { width: 4px; }
.price-body::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

.price-row {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: background var(--t), border-left-color var(--t), z-index 0s;
  border-left: 3px solid transparent;
  background: #fff; /* solidne białe tło — nigdy przezroczyste */
}
.price-row:last-child { border-bottom: none; }
.price-row:hover {
  background: var(--blue-lt);
  border-left-color: var(--blue);
  z-index: 30; /* wyżej niż wszystkie inne wiersze gdy hover */
}
.p-tip {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy); /* solidne tło — bez przeźroczystości */
  color: rgba(255,255,255,.88);
  padding: 9px 24px;
  font-size: .76rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
  z-index: 31; /* wyżej niż hover wiersz */
  pointer-events: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  /* Szerokość = wiersz, nie wychodzi poza tabelę */
  white-space: normal;
  word-break: break-word;
}
.price-row:hover .p-tip { opacity: 1; visibility: visible; transform: none; }

.pn { flex: 2.5; font-weight: 600; color: var(--navy); font-size: .85rem; }
.pd { flex: 2; color: var(--muted); font-size: .78rem; }
.pp { flex: 1; text-align: right; font-weight: 700; color: var(--blue); font-size: .85rem; }

/* ================================================================
   KONTAKT (sekcja na stronie głównej i kontakt.html)
================================================================ */
#contact { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(24px, 4vw, 60px);
  align-items: center;
  width: 100%;
  height: calc(100dvh - var(--sec-pt) - var(--sec-pb));
  position: relative;
  z-index: 2;
}
.c-left {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 18px);
  padding-right: clamp(16px, 3vw, 48px);
  height: 100%;
  justify-content: center;
}
.c-left h2 { margin-bottom: clamp(8px, 1.2vh, 14px); }
.c-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.c-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.c-item h4 { font-size: .75rem; color: var(--navy); margin-bottom: 2px; }
.c-item p, .c-item a { font-size: .76rem; color: var(--muted); line-height: 1.55; }
.c-item a:hover { color: var(--blue); }
.c-map {
  flex: 1;
  min-height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.c-map iframe { width: 100%; height: 100%; border: none; display: block; }
.c-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: .75rem;
  font-weight: 600;
  transition: background var(--t);
  align-self: flex-start;
}
.c-fb:hover { background: var(--blue); }
.c-fb i { font-size: .9rem; }

/* Pionowy pasek */
.c-divider { position: relative; width: 1px; }
.c-divider::before {
  content: '';
  position: absolute;
  left: 0; width: 1px;
  top: 50%; height: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,43,91,.3) 20%,
    rgba(0,43,91,.8) 50%,
    rgba(0,43,91,.3) 80%,
    transparent 100%
  );
  border-radius: 1px;
  transition: height 1.1s cubic-bezier(.4,0,.2,1), top 1.1s cubic-bezier(.4,0,.2,1);
}
.c-divider.go::before { top: 5%; height: 90%; }

.c-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.4vh, 16px);
  padding-left: clamp(16px, 3vw, 48px);
  height: 100%;
}
.c-right h2 { margin-bottom: clamp(8px, 1.2vh, 14px); }

.p-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--grey);
  border-radius: 12px;
  padding: 13px 16px;
  border-left: 3px solid var(--blue);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.p-card:hover { transform: translateX(4px); box-shadow: var(--sh); background: #fff; }
.p-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.p-info h4   { font-size: .84rem; color: var(--navy); margin-bottom: 1px; }
.p-info .role { font-size: .68rem; color: var(--muted); }
.p-info a    { font-size: .78rem; color: var(--blue); font-weight: 600; }
.area-row    { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.area-tag {
  background: var(--blue-lt);
  color: var(--navy);
  border: 1px solid rgba(0,123,255,.2);
  padding: 3px 11px;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 600;
}

/* ================================================================
   FOOTER — wewnątrz ostatniej sekcji
================================================================ */

/* Ostatnia sekcja — scroll-snap-stop: normal pozwala przejechać do footera */
.has-footer {
  scroll-snap-stop: normal;
}

/* ================================================================
   FOOTER
================================================================ */
#main-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr;
  gap: 24px;
  padding: 20px var(--gutter) 12px;
  align-items: start;
}
.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  display: block;
}
.footer-logo span { color: var(--blue); }
.footer-tag { color: rgba(255,255,255,.48); font-size: .7rem; line-height: 1.5; }
.footer-brand-row { margin-bottom: 6px; }
#main-footer h4 {
  color: #fff;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 8px;
}
#main-footer ul { display: flex; flex-direction: column; gap: 5px; }
#main-footer li { display: flex; gap: 7px; align-items: flex-start; font-size: .72rem; }
#main-footer li i { color: var(--blue); font-size: .7rem; margin-top: 2px; flex-shrink: 0; }
#main-footer a { color: rgba(255,255,255,.65); transition: color var(--t); }
#main-footer a:hover { color: #fff; }
#main-footer strong { display: block; color: rgba(255,255,255,.88); }
.footer-team li { flex-direction: column; gap: 1px; }

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px 10px;
  color: rgba(255,255,255,.82) !important;
  font-size: .7rem;
  transition: background var(--t);
}
.fb-link:hover { background: rgba(24,119,242,.25); }
.fb-link i { font-size: .9rem; color: #4267B2; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 8px var(--gutter);
  color: rgba(255,255,255,.28);
  font-size: .65rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr;
  gap: 32px;
  padding: clamp(48px, 8vh, 96px) var(--gutter) 32px;
  align-items: start;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: block;
}
.footer-logo span { color: var(--blue); }
.footer-tag { color: rgba(255,255,255,.48); font-size: .74rem; line-height: 1.6; }
.footer-brand-row { margin-bottom: 8px; }
#main-footer h4 {
  color: #fff;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 10px;
}
#main-footer ul { display: flex; flex-direction: column; gap: 7px; }
#main-footer li { display: flex; gap: 8px; align-items: flex-start; font-size: .77rem; }
#main-footer li i { color: var(--blue); font-size: .75rem; margin-top: 3px; flex-shrink: 0; }
#main-footer a { color: rgba(255,255,255,.65); transition: color var(--t); }
#main-footer a:hover { color: #fff; }
#main-footer strong { display: block; color: rgba(255,255,255,.88); }
.footer-team li { flex-direction: column; gap: 1px; }

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: rgba(255,255,255,.82) !important;
  font-size: .75rem;
  transition: background var(--t);
}
.fb-link:hover { background: rgba(24,119,242,.25); }
.fb-link i { font-size: 1rem; color: #4267B2; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 10px var(--gutter);
  color: rgba(255,255,255,.28);
  font-size: .68rem;
}

/* ================================================================
   PODSTRONY — Sekcje ogólne
================================================================ */
.sub-title {
  margin-bottom: clamp(18px, 2.5vh, 32px);
}
.sub-title h2 { text-align: center; }

/* Siatka kart usług */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.svc-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform var(--t), box-shadow var(--t);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.svc-card img {
  width: 100%;
  height: clamp(140px, 18vh, 200px);
  object-fit: cover;
}
.svc-card-body { padding: clamp(14px, 1.8vw, 20px); }
.svc-card-body h3 { font-size: .9rem; margin-bottom: 6px; }
.svc-card-body p  { color: var(--muted); font-size: .79rem; line-height: 1.6; }

/* Dwie kolumny */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.two-col.rev .col-img { order: -1; }
.col-img {
  border-radius: var(--r);
  overflow: hidden;
  height: clamp(220px, 40dvh, 420px);
}
.col-img img { width: 100%; height: 100%; object-fit: cover; }
.col-txt h2  { margin-bottom: clamp(12px, 1.6vh, 18px); }
.col-txt p   { color: var(--muted); font-size: .88rem; line-height: 1.8; margin-bottom: .8rem; }
.col-txt p:last-of-type { margin-bottom: 0; }

/* Zespół */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.team-card {
  background: #fff;
  border-radius: var(--r);
  padding: clamp(20px, 2.5vw, 32px) 18px;
  text-align: center;
  box-shadow: var(--sh);
  border-top: 3px solid var(--blue);
  transition: transform var(--t), box-shadow var(--t);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.team-icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.team-card h3    { font-size: .9rem; margin-bottom: 3px; }
.team-card .role { color: var(--muted); font-size: .72rem; margin-bottom: 8px; }
.team-card a     { color: var(--blue); font-size: .8rem; font-weight: 600; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

/* Cennik podstron */
.price-table.sub-price {
  max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb) - 140px);
}

/* CTA sekcje — navy bg */
.cta-section { text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: clamp(8px, 1.2vh, 14px); }
.cta-section .subtitle {
  color: rgba(255,255,255,.7);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  max-width: 460px;
  margin: 0 auto clamp(18px, 2.5vh, 28px);
}

/* ================================================================
   TABLET ≤ 1060px
================================================================ */
@media (max-width: 1060px) {
  :root {
    --gutter: clamp(20px, 4vw, 48px);
  }

  .about-row { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .about-text { order: 1; }
  .about-img-wrap { order: 0; max-width: 460px; margin: 0 auto; width: 100%; }
  .about-img-wrap img { height: clamp(200px, 28dvh, 280px); }
  .about-img-badge { bottom: -10px; right: -10px; padding: 10px 14px; min-width: 90px; }
  .about-img-badge strong { font-size: 1.3rem; }
  .about-stats { justify-content: center; }
  .about-h { text-align: center; }
  .about-lead, .about-desc { text-align: center; }

  .offer-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .c-divider { display: none; }
  .c-left, .c-right { padding: 0; height: auto; }
  .c-left h2, .c-right h2 { text-align: center; }

  .two-col { grid-template-columns: 1fr; }
  .two-col.rev .col-img { order: 0; }
  .col-img { height: clamp(180px, 28dvh, 280px); }

  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-team { display: none; }
}

/* ================================================================
   MOBILE ≤ 768px
================================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h:  58px;
    --gutter: 16px;
    --sec-pt: calc(var(--nav-h) + 14px);
    --sec-pb: 14px;
  }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-dropdown { display: block; }

  /* ── HERO mobile ─────────────────────────────────────────── */
  #hero {
    padding: 0;
    flex-direction: column; gap: 0;
    background-color: #fff;
    /*
     * Warstwa 1: gradient — górna połowa czysto biała, od 50% zanika do 0%
     *            tworzy miękkie przejście przy górnej krawędzi zdjęcia
     * Warstwa 2: zdjęcie — ustawione tak żeby jego góra była w połowie sekcji
     */
    background-image:
      linear-gradient(to bottom,
        rgba(255,255,255,1)   0%,
        rgba(255,255,255,1)  48%,
        rgba(255,255,255,.8) 54%,
        rgba(255,255,255,0)  70%
      ),
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)),
      url('https://imaginative-brown-chihuahua.83-168-99-193.cpanel.site/image/gory1.jpg');
    background-size: 100% 100%, 100% 50%, 100% 50%;
    background-position: top left, center bottom, center bottom;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
  /* Slider przezroczysty — nie zakrywa tła */
  #hero .hero-slider { flex: none; height: 100%; }
  .hero-tiles { display: none; }
  .h-arrow { display: none; }
  .hero-slider {
    position: absolute; inset: 0;
    border-radius: 0; box-shadow: none;
    background: transparent !important; /* NIE biały */
  }
  .slide { background: transparent !important; }
  .slide.active { background: transparent !important; }
  .slide-bg, .slide-overlay, .slide-content, .slider-dots { display: none !important; }
  .slide-video-bg { display: none !important; }
  .mob-bg { display: none !important; } /* niepotrzebny — tło jest na #hero */
  .stripe-wrap {
    display: block !important;
    position: absolute; left: 0; bottom: 0;
    width: 52%; height: 100%;
    clip-path: inset(0); z-index: 3;
    animation: stripIn .85s cubic-bezier(.25,1,.5,1) .2s both;
    transition: none !important; overflow: hidden;
  }
  @keyframes stripIn { from { transform: translateX(-108%); } to { transform: translateX(0); } }
  .stripe-wrap .stripe { left: -20%; width: 200%; }
  .stripe-wrap .s-navy { height: 7%; bottom: 22%; }
  .stripe-wrap .s-blue { height: 7%; bottom: 7%; }
  .mob-hero {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: absolute; inset: 0; z-index: 10;
    padding: calc(var(--nav-h) + 12px) var(--gutter) 28px;
    text-align: center; background: transparent;
  }
  .mob-logo { width: calc(100vw - var(--gutter) * 2 - 4px); max-width: 340px; margin-bottom: 16px; opacity: 0; transform: translateY(-10px); animation: fadeDown .55s ease .3s both; }
  .mob-text { font-size: .84rem; color: var(--text); line-height: 1.6; margin-bottom: 20px; max-width: 290px; opacity: 0; animation: fadeUp .55s ease .5s both; }
  .mob-btn  { opacity: 0; animation: fadeUp .55s ease .7s both; }
  @keyframes fadeDown { to { opacity:1; transform:none; } }
  @keyframes fadeUp   { to { opacity:1; transform:none; } }

  /* ── Sekcje — wyśrodkowane pionowo, inner scrolluje gdy za dużo ── */
  .section {
    height: 100dvh; min-height: 100dvh;
    padding: var(--sec-pt) var(--gutter) var(--sec-pb);
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  /* Podstrony — zawsze od góry pod menu */
  .sub-section {
    height: 100dvh; min-height: 100dvh;
    padding: var(--sec-pt) var(--gutter) var(--sec-pb);
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
  }
  .inner {
    max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb));
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .inner::-webkit-scrollbar { display: none; }

  /* Strona główna sekcje też od góry gdy mają dużo treści */
  #contact {
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--sec-pt) var(--gutter) 0 !important;
  }
  #contact > .inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  #contact .contact-grid {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100dvh - var(--sec-pt));
    height: auto;
    align-items: flex-start;
  }

  /* ── O NAS ──────────────────────────────────────────────── */
  .about-img-wrap { display: none; }
  .about-h { font-size: 1.4rem; text-align: center; }
  .about-lead, .about-desc { text-align: center; font-size: .83rem; }
  .about-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .about-split { grid-template-columns: 1fr; height: auto; gap: 0; }
  .about-split-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 16px; height: auto; }
  .about-split-right { padding-left: 0; padding-top: 16px; height: auto; }
  .about-split-left h2, .about-split-right h2 { text-align: center; font-size: 1.3rem; }
  .about-split-lead { font-size: .82rem; text-align: center; }
  .about-split-desc { font-size: .78rem; text-align: center; }
  .about-split-stats { justify-content: center; gap: 18px; }
  .split-stat-n { font-size: 1.4rem; }
  .about-split-right .btn { align-self: center !important; width: 100%; justify-content: center; }
  .team-member { padding: 9px 11px; }
  .tm-info h3 { font-size: .78rem; }

  /* ── USŁUGI ──────────────────────────────────────────────── */
  .svc-grid { grid-template-columns: 1fr; gap: 8px; }
  .svc-card img { height: 90px; }
  .svc-card-body { padding: 9px 11px; }
  .svc-card-body h3 { font-size: .78rem; }
  .svc-card-body p  { font-size: .7rem; }
  .offer-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 11px 8px; }
  .tile i { font-size: 1.5rem; margin-bottom: 5px; }
  .tile h3 { font-size: .7rem; }
  .tile p  { font-size: .64rem; }

  /* ── DRONY ───────────────────────────────────────────────── */
  .drone-split-top { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; }
  .drone-split-txt { text-align: center; }
  .drone-split-txt h2 { font-size: 1.3rem; margin-bottom: 8px; }
  .drone-split-txt p  { font-size: .8rem; margin-bottom: 10px; }
  .drone-split-txt .btn { width: 100%; justify-content: center; }
  .drone-split-img { aspect-ratio: 16/9; max-height: 160px; width: 100%; }
  .drone-split-bottom h3 { font-size: .88rem; margin-bottom: 8px; }

  /* ── CENNIK ──────────────────────────────────────────────── */
  .price-table { max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb) - 72px); }
  .price-table.sub-price { max-height: calc(100dvh - var(--sec-pt) - var(--sec-pb) - 80px); }
  .price-head { display: none; }
  .price-row  { flex-wrap: wrap; gap: 2px; padding: 8px 11px; }
  .price-row:hover { border-left-color: transparent; background: var(--blue-lt); }
  .p-tip { display: none; }
  .pn { flex: 1 1 100%; font-size: .76rem; }
  .pd { flex: 1; font-size: .68rem; }
  .pp { font-size: .78rem; font-weight: 700; }
  .price-note { font-size: .7rem; padding: 6px 9px; }
  .price-intro { flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 8px; }
  .price-intro h2 { font-size: 1.3rem; }

  /* ── KONTAKT ─────────────────────────────────────────────── */
  .contact-grid { grid-template-columns: 1fr; height: auto; gap: 9px; }
  .c-divider { display: none; }
  .c-left, .c-right { padding: 0; height: auto; }
  .c-left h2, .c-right h2 { text-align: center; font-size: 1.2rem; margin-bottom: 8px; }
  .c-item { gap: 8px; }
  .c-item h4 { font-size: .7rem; }
  .c-item p, .c-item a { font-size: .7rem; }
  .c-icon { width: 30px; height: 30px; font-size: .75rem; }
  .c-map { min-height: 120px; flex: none; }
  .c-fb { font-size: .7rem; padding: 5px 10px; }
  .p-card { padding: 8px 10px; }
  .p-avatar { width: 32px; height: 32px; font-size: .82rem; }
  .p-info h4 { font-size: .76rem; }
  .p-info .role { font-size: .62rem; }
  .p-info a { font-size: .7rem; }
  .area-row { gap: 4px; margin-top: 4px; }
  .area-tag { font-size: .6rem; padding: 2px 7px; }

  /* ── CTA sekcje ──────────────────────────────────────────── */
  .cta-section h2 { font-size: 1.3rem; text-align: center; }
  .cta-section .subtitle { font-size: .82rem; text-align: center; }

  /* CTA sekcje (granatowe) — wyśrodkowane pionowo na mobile */
  .sub-section.cta-section {
    align-items: center;
    justify-content: center;
  }
  .sub-section.cta-section .inner {
    justify-content: center;
    overflow-y: visible;
  }
  .btn-group { gap: 8px; margin-top: 14px; }
  .btn-group .btn { width: 100%; justify-content: center; }

  /* ── Brand stripes mobile ────────────────────────────────── */
  .brand-stripes { width: 55%; height: 40%; bottom: 0; top: auto; }
  .bs-1 { height: 9%; bottom: 52%; }
  .bs-2 { height: 9%; bottom: 30%; }

  /* ── Footer mobile — wyłącz snap na ostatniej sekcji ────── */
  /* scroll-snap-stop:normal pozwala scrollować do footera pod spodem */
  .has-footer { scroll-snap-stop: normal; scroll-snap-align: start; }
  /* Footer musi być wystarczająco wysoki żeby przeglądarka go zauważyła */
  #main-footer { min-height: 180px; }
  .footer-inner { grid-template-columns: 1fr; gap: 0; padding: 14px var(--gutter) 8px; }
  .footer-team  { display: none; }
  .footer-logo  { font-size: 1.1rem; }
  .footer-tag   { font-size: .68rem; }
  #main-footer h4 { font-size: .64rem; margin-top: 11px; margin-bottom: 6px; }
  #main-footer li { font-size: .69rem; }
  .fb-link { font-size: .69rem; padding: 5px 9px; }
  .footer-copy { font-size: .61rem; padding: 6px var(--gutter); }

  /* ── Misc ────────────────────────────────────────────────── */
  .two-col { grid-template-columns: 1fr; }
  .two-col.rev .col-img { order: 0; }
  .col-img { height: 150px; }
  .col-txt h2, .col-txt p { text-align: center; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sub-section h2 { text-align: center; }
}

/* ================================================================
   XS ≤ 420px
================================================================ */
@media (max-width: 420px) {
  .offer-grid { grid-template-columns: 1fr; }
  .team-grid  { grid-template-columns: 1fr; }
  .svc-grid   { grid-template-columns: 1fr; }
  .about-stats { gap: 10px; }
}


/* ================================================================
   BLOG — aktualnosci.html + artykuł
================================================================ */

/* ── Listing page layout ─────────────────────────────────────── */
.blog-listing { background: var(--grey); align-items: flex-start; }
.blog-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  gap: 24px;
  width: 100%;
}

/* Wyróżniony wpis — lewa kolumna */
.blog-main { grid-column: 1; grid-row: 1; }
.blog-feat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  text-decoration: none;
  transition: box-shadow var(--t), transform var(--t);
  height: 100%;
}
.blog-feat-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }

.blog-feat-img {
  position: relative;
  height: clamp(200px, 32vh, 340px);
  overflow: hidden;
}
.blog-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-feat-card:hover .blog-feat-img img { transform: scale(1.04); }

.blog-tag-pill {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue); color: #fff;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 4px 12px; border-radius: 50px;
  z-index: 2;
}
.blog-tag-pill--sm { font-size: .58rem; top: 10px; left: 10px; padding: 3px 10px; }

.blog-feat-body {
  padding: clamp(16px, 2.5vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
}
.blog-feat-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.blog-feat-meta span {
  font-size: .7rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.blog-feat-meta i { color: var(--blue); font-size: .62rem; }
.blog-feat-body h2 {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--navy); line-height: 1.3;
}
.blog-feat-body p {
  font-size: .84rem; color: var(--muted);
  line-height: 1.7; flex: 1;
}
.blog-read-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  margin-top: 4px; transition: gap var(--t);
}
.blog-feat-card:hover .blog-read-more { gap: 11px; }

/* Aside — prawa kolumna */
.blog-aside {
  grid-column: 2; grid-row: 1;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.blog-aside-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 2px solid var(--blue);
}
.blog-aside-header i { color: var(--blue); font-size: 1rem; }
.blog-aside-header h3 { font-size: .88rem; color: var(--navy); }
.blog-aside-list { padding: 8px 0; flex: 1; }
.blog-aside-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--t);
}
.blog-aside-item:last-child { border-bottom: none; }
.blog-aside-item:hover { background: var(--grey); }
.blog-aside-item--active { background: var(--blue-lt); }
.blog-aside-cat {
  font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--blue);
}
.blog-aside-title {
  font-size: .78rem; color: var(--navy);
  line-height: 1.4; font-weight: 600;
}
.blog-aside-item:hover .blog-aside-title { color: var(--blue); }

/* Grid kart — dolny pasek (1 wiersz, 3 kolumny) */
.blog-grid-section {
  grid-column: 1 / -1; grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-grid {
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.blog-grid::-webkit-scrollbar { display: none; }
.blog-grid.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.blog-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  flex: 0 0 calc(33.333% - 12px); /* 3 karty widoczne na desktop */
  scroll-snap-align: start;
  transition: box-shadow var(--t), transform var(--t);
}
.blog-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }

/* Kropki nawigacji */
.blog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}
.blog-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  flex-shrink: 0;
}
.blog-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}
.blog-card-img {
  position: relative; height: 150px; overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.blog-card-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.blog-card-meta span {
  font-size: .65rem; color: var(--muted);
  display: flex; align-items: center; gap: 4px;
}
.blog-card-meta i { color: var(--blue); font-size: .58rem; }
.blog-card-body h3 {
  font-size: .84rem; color: var(--navy);
  line-height: 1.4; font-weight: 700;
}
.blog-card:hover .blog-card-body h3 { color: var(--blue); }
.blog-card-body p {
  font-size: .74rem; color: var(--muted);
  line-height: 1.6; flex: 1;
}

/* ── Artykuł layout ──────────────────────────────────────────── */
.blog-article {
  background: var(--grey);
  align-items: flex-start;
  /* Nadpisz ograniczenia sub-section — artykuł musi rosnąć i być scrollowalny */
  height: auto;
  min-height: 100dvh;
  max-height: none;
  overflow-y: visible;
  overflow-x: hidden;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}
/* Inner w sekcji artykułu też bez limitu wysokości */
.blog-article .inner {
  max-height: none;
  overflow: visible;
}
.blog-article-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  width: 100%;
  align-items: start;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; color: var(--muted);
  margin-bottom: 1rem; flex-wrap: wrap;
}
.blog-breadcrumb a { color: var(--muted); transition: color var(--t); }
.blog-breadcrumb a:hover { color: var(--blue); }
.blog-breadcrumb i { font-size: .5rem; }
.blog-breadcrumb span { color: var(--navy); font-weight: 600; }

/* Post */
.blog-post {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.5vw, 48px);
  box-shadow: var(--sh);
}
.blog-post-tag-row { margin-bottom: .7rem; }
.blog-post h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  color: var(--navy); line-height: 1.2;
  margin-bottom: .8rem;
}
.blog-post-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-meta span {
  font-size: .72rem; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.blog-post-meta i { color: var(--blue); font-size: .62rem; }
.blog-post-hero-img {
  width: 100%; height: clamp(180px, 30vh, 360px);
  object-fit: cover; border-radius: var(--r);
  margin-bottom: 1.6rem;
}

/* Typografia artykułu */
.blog-post-content { font-size: clamp(.86rem,.98vw,.96rem); line-height: 1.85; color: var(--text); }
.blog-post-content p { margin-bottom: 1rem; }
.blog-post-content .blog-lead {
  font-size: clamp(.9rem,1.05vw,1rem);
  color: var(--navy); font-weight: 500; line-height: 1.75;
  margin-bottom: 1.4rem;
}
.blog-post-content h2 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--navy); margin: 1.8rem 0 .6rem;
}
.blog-post-content h3 {
  font-size: clamp(.9rem,1.1vw,1.1rem);
  color: var(--navy); margin: 1.4rem 0 .5rem;
}
.blog-post-content ul {
  padding-left: 1.2rem; margin-bottom: 1rem;
}
.blog-post-content ul li {
  list-style: disc; margin-bottom: .35rem;
  color: var(--text);
}
.blog-post-content strong { color: var(--navy); }
.blog-post-content a { color: var(--blue); }

/* Callout box */
.blog-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-lt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  margin: 1.4rem 0;
}
.blog-callout i { color: var(--blue); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.blog-callout p { font-size: .82rem; color: var(--navy); line-height: 1.6; margin: 0; }

/* CTA w artykule */
.blog-post-cta {
  background: var(--navy);
  border-radius: var(--r);
  padding: clamp(18px,2.5vw,32px);
  margin-top: 2rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.blog-post-cta h3 { color: #fff; font-size: clamp(.9rem,1.2vw,1.1rem); }
.blog-post-cta p  { color: rgba(255,255,255,.7); font-size: .82rem; }

/* Nawigacja między artykułami */
.blog-post-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.8rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.blog-post-nav-back,
.blog-post-nav-next {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700;
  color: var(--navy); transition: color var(--t), gap var(--t);
}
.blog-post-nav-back:hover { color: var(--blue); }
.blog-post-nav-next:hover { color: var(--blue); gap: 11px; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.blog-sidebar {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: calc(var(--nav-h) + 14px);
}
.blog-sidebar-widget {
  background: var(--white);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh);
}
.blog-sidebar-logo {
  font-size: 1.6rem; font-weight: 800;
  color: var(--navy); margin-bottom: 8px;
}
.blog-sidebar-logo span { color: var(--blue); }
.blog-sidebar-widget > p {
  font-size: .78rem; color: var(--muted); line-height: 1.6;
}
.blog-sidebar-title {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.blog-sidebar-post {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.blog-sidebar-post:last-child { border-bottom: none; }
.blog-sidebar-post img {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 8px; flex-shrink: 0;
}
.blog-sidebar-post-title {
  display: block; font-size: .76rem; font-weight: 600;
  color: var(--navy); line-height: 1.35;
  transition: color var(--t);
}
.blog-sidebar-post:hover .blog-sidebar-post-title { color: var(--blue); }
.blog-sidebar-post-date {
  display: block; font-size: .64rem; color: var(--muted); margin-top: 2px;
}
.blog-sidebar-cta {
  background: var(--navy); text-align: center;
}
.blog-sidebar-cta i {
  font-size: 1.6rem; color: var(--blue);
  display: block; margin-bottom: 8px;
}
.blog-sidebar-cta h4 { color: #fff; font-size: .88rem; margin-bottom: 6px; }
.blog-sidebar-cta a { color: #60a5fa; font-weight: 700; font-size: .9rem; }

/* ── Sekcja aktualności — tło zdjęcie ───────────────────────── */
#news { background: var(--grey); flex-direction: column; position: relative; }
.news-bg {
  position: absolute; inset: 0;
  background: url('https://imaginative-brown-chihuahua.83-168-99-193.cpanel.site/image/gory1.jpg')
    center/cover no-repeat;
  z-index: 0;
}
.news-overlay {
  position: absolute; inset: 0;
  background: rgba(246,248,252,.81);
  z-index: 1;
}
.news-wrap { width: 100%; position: relative; z-index: 3; }
.news-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(14px, 2vh, 24px);
  flex-wrap: wrap; gap: 12px;
}
.news-label {
  display: block;
  font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.8px;
  color: var(--blue); margin-bottom: 4px;
}
.news-head h2 { margin: 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.news-card-img {
  position: relative; height: 148px; overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-pill {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: #fff;
  font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 10px; border-radius: 50px;
}
.news-card-body {
  padding: 13px 15px 14px;
  display: flex; flex-direction: column; gap: 5px; flex: 1;
}
.news-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.news-meta span {
  font-size: .65rem; color: var(--muted);
  display: flex; align-items: center; gap: 3px;
}
.news-meta i { color: var(--blue); font-size: .58rem; }
.news-card-title {
  font-size: .84rem; font-weight: 700;
  color: var(--navy); line-height: 1.35; flex: 1;
}
.news-card:hover .news-card-title { color: var(--blue); }
.news-card-exc {
  font-size: .72rem; color: var(--muted); line-height: 1.5;
}

/* ── Responsive blog ─────────────────────────────────────────── */
@media (max-width: 1060px) {
  .blog-inner { grid-template-columns: 1fr; }
  .blog-aside  { grid-column: 1; grid-row: 2; }
  .blog-grid-section { grid-row: 3; }
  .blog-aside { flex-direction: row; overflow-x: auto; }
  .blog-aside-list { display: none; }
  .blog-article-inner { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* ── Sekcja 1: lista wpisów na mobile ───────────────────── */

  /* Grid sekcji: featured → miniatury, bez aside */
  .blog-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }

  /* Featured card — pełna szerokość, kompaktowy */
  .blog-main { grid-column: 1; grid-row: 1; }
  .blog-feat-img { height: clamp(180px, 40vw, 240px); }
  .blog-feat-body { padding: 14px; gap: 8px; }
  .blog-feat-body h2 { font-size: .96rem; }
  .blog-feat-body p  { display: none; } /* skróć na mobile */

  /* Aside — ukryj całkowicie na mobile (niepotrzebny) */
  .blog-aside { display: none; }

  /* Miniatury — poziomy scroll zamiast siatki */
  .blog-grid-section { grid-column: 1; grid-row: 2; }
  .blog-grid { gap: 12px; }
  .blog-card {
    flex: 0 0 72vw;
    max-width: 300px;
  }
  .blog-card-img { height: 130px; }
  .blog-card-body h3 { font-size: .8rem; }
  .blog-card-body p  { display: none; }

  /* Artykuł — sidebar pod treścią, jedna kolumna */
  .blog-article-inner { grid-template-columns: 1fr; gap: 16px; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-post-nav { flex-direction: column; align-items: flex-start; }
  .blog-post h1 { font-size: 1.2rem; }

  .news-wrap { display: flex; flex-direction: column; height: calc(100dvh - var(--sec-pt) - 8px); }
  .news-head { flex-direction: row; align-items: center; margin-bottom: 10px; flex-shrink: 0; }
  .news-head h2 { font-size: 1.05rem; }
  .news-head .btn { font-size: .7rem; padding: 6px 12px; }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .news-card {
    flex: 0 0 calc((100dvh - var(--sec-pt) - 52px) / 3 * 0.8);
    flex-direction: row;
    border-radius: 10px;
    min-height: 0;
  }
  .news-card + .news-card { margin-top: 8px; }
  .news-card-img {
    width: 88px;
    min-width: 88px;
    height: auto;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
  }
  .news-card-img img { width: 100%; height: 100%; object-fit: cover; }
  .news-card-body { padding: 8px 10px; gap: 3px; flex: 1; justify-content: center; }
  .news-card-title { font-size: .74rem; line-height: 1.3; }
  .news-card-exc   { display: none; }
  .news-meta       { gap: 8px; }
  .news-meta span  { font-size: .6rem; }
  .news-pill       { font-size: .52rem; padding: 2px 7px; top: 7px; left: 7px; }
}

/* ── Blog przyciski jako karty (button reset) ──────────────── */
.blog-feat-card,
.blog-card,
.blog-aside-item,
.blog-sidebar-post {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
/* Sidebar post jako button */
.blog-sidebar-post {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border) !important;
}
.blog-sidebar-post:last-child { border-bottom: none !important; }

/* ── Blog override — ID ma wyższy specificity niż klasa ─────── */
#blog-s1,
#blog-s2 {
  overflow: visible !important;
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}
#blog-s1 .inner,
#blog-s2 .inner {
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 768px) {
  #blog-s1 {
    padding: calc(58px + 14px) 16px 20px !important;
  }
  #blog-s2 {
    padding: 14px 16px 30px !important;
  }
}

/* ── Podstrona kontakt — auto height na mobile ─────────────── */
@media (max-width: 768px) {
  #contact-page {
    height: auto !important;
    min-height: 100dvh;
    max-height: none !important;
    overflow-y: visible !important;
    padding-bottom: clamp(20px, 4vh, 40px) !important;
  }
  #contact-page .inner {
    max-height: none !important;
    overflow: visible !important;
  }
  #contact-page .contact-grid {
    max-height: none !important;
    overflow: visible !important;
  }
}