*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1d3461;
  --accent: #00d4ff;
  --accent-dim: #007a99;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text: #e8edf5;
  --text-muted: #8899b4;
  --text-dim: #4a6080;
  --border: rgba(0, 212, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.35);
  --fiber-orange: #ff7a3d;
  --fiber-orange-dim: rgba(255, 122, 61, 0.15);
  --card-bg: rgba(17, 34, 64, 0.7);
  --radius: 12px;
  --radius-sm: 6px;
  --font: 'Sora', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 70px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 0.88rem !important;
}

.nav-cta:hover { background: #33dcff !important; color: var(--navy) !important; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-logo {
/*  margin-bottom: 2rem;*/
margin-bottom:20px;
  animation: fadeUp 0.5s ease both;
}

.hero-logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fiber-orange-dim);
  border: 1px solid rgba(255,122,61,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--fiber-orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--fiber-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  animation: fadeUp 0.7s 0.1s ease both;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 1.5rem auto 0;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: #33dcff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* fiber line decoration */
.fiber-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  animation: scan 4s linear infinite;
}

.fiber-line-1 { width: 300px; top: 30%; left: -10%; animation-delay: 0s; }
.fiber-line-2 { width: 200px; top: 60%; right: -5%; animation-delay: 2s; }

@keyframes scan {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.4; }
  80% { opacity: 0.4; }
  to { transform: translateX(120%); opacity: 0; }
}

/* stats bar */
.stats-bar {
  display: flex;
  gap: 0;
  margin-top: 4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.7s 0.4s ease both;
}

.stat-item {
  padding: 1.5rem 2.5rem;
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION ─── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem clamp(1.5rem, 8vw, 10rem);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ─── SERVICES ─── */
#uslugi { background: rgba(10, 22, 40, 0.5); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 22px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

/* ─── SPRZET ─── */
#sprzet { position: relative; }

.equipment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.equipment-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eq-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.eq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eq-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-glow);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.eq-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.eq-item p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* cert badge */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fiber-orange-dim);
  border: 1px solid rgba(255,122,61,0.25);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--fiber-orange);
  margin-top: 0.5rem;
}

/* ─── OBSZAR ─── */
#obszar { background: rgba(10, 22, 40, 0.5); }

.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.region-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.region-card:hover { border-color: var(--border-bright); }

.region-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.region-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.region-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── KONTAKT ─── */
#kontakt {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-row:hover { border-color: var(--border-bright); }

.contact-icon {
  width: 40px; height: 40px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-row span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.contact-row a, .contact-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row a:hover { color: var(--accent); }

/* form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }

.field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.field input,
.field textarea,
.field select {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field textarea { resize: vertical; min-height: 110px; }

.field select option { background: var(--navy-mid); }

/* ─── GALERIA ─── */
#galeria { background: rgba(10, 22, 40, 0.5); }

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}

.gallery-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.gallery-item-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  display: block;
  margin-top: 3px;
  letter-spacing: 0.06em;
}

/* placeholder / brak zdjęcia */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
}

.gallery-placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.gallery-placeholder-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-caption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.lightbox-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-top: 3px;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ─── FOOTER ─── */
footer {
  background: #060f1e;
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.5rem, 8vw, 10rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer-right {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .equipment-layout { grid-template-columns: 1fr; }
  .kontakt-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
  .hero { padding-top: 6rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* DODAJ do style.css */

#instagram {
  background: rgba(10, 22, 40, 0.55);
}

.insta-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  margin-top: 2rem;
}

.insta-preview,
.insta-text-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.insta-preview {
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
}

.insta-preview:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}

.insta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.insta-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-bright);
  font-size: 1.4rem;
}

.insta-name {
  font-weight: 700;
  font-size: 1rem;
}

.insta-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.insta-box {
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.insta-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.insta-bottom strong {
  color: var(--accent);
}

.insta-text-card h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.15rem;
}

.insta-text-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .insta-section {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   RESPONSYWNOŚĆ SEKCJI USŁUGI
   DODAJ NA KONIEC CSS
================================= */
/* PODMIEŃ CAŁĄ SEKCJĘ .services-grid + responsive */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kafelki w rzędzie */
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

/* laptop / średni ekran */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* tablet */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* telefon */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .service-card {
    padding: 1.4rem;
  }
}


/* =====================================
   PREMIUM MOBILE MENU
===================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(10,22,40,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* desktop */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: .2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* hamburger */
.menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  cursor: pointer;
  transition: .25s ease;
}

.menu-btn:hover {
  border-color: var(--accent);
}

.menu-btn span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 20px;
  transition: .25s ease;
}

/* X animation */
.menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: .3s ease;
}

.mobile-panel {
  position: absolute;
  top: 0;
  right: -100%;
  width: min(82vw, 340px);
  height: 100%;
  padding: 6rem 1.5rem 2rem;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: .35s cubic-bezier(.77,.2,.05,1);
}

/* open state */
.mobile-drawer.open {
  pointer-events: auto;
}

.mobile-drawer.open .mobile-overlay {
  opacity: 1;
}

.mobile-drawer.open .mobile-panel {
  right: 0;
}

/* links */
.mobile-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  transition: .2s ease;
}

.mobile-link:hover,
.mobile-link:active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateX(-3px);
}

/* mobile only */
@media (max-width:768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

/* ===================================
   FIX HAMBURGER MOBILE
   WKLEJ NA SAM KONIEC CSS
=================================== */

.menu-btn {
  display: none;
}

@media (max-width: 768px) {

  .menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 46px;
    height: 46px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 12px;

    cursor: pointer;
    z-index: 5000;
    position: relative;
  }

  .menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 20px;
  }

  .nav-links,
  nav ul {
    display: none !important;
  }

  nav,
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===================================
   PROSTE MENU MOBILE
=================================== */

.main-nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:70px;
  padding:0 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(10,22,40,.92);
  backdrop-filter:blur(12px);
  z-index:999;
}

/* desktop */
.desktop-menu{
  display:flex;
  gap:2rem;
  list-style:none;
}

.desktop-menu a{
  color:var(--text-muted);
  text-decoration:none;
}

/* hamburger hidden desktop */
.hamburger{
  display:none;
  border:none;
  background:none;
  color:#fff;
  font-size:2rem;
  cursor:pointer;
}

/* mobile panel */
.mobile-menu{
  display:none;
  position:fixed;
  top:70px;
  left:0;
  right:0;
  background:#0a1628;
  z-index:998;
  border-top:1px solid var(--border);
}

.mobile-menu a{
  display:block;
  padding:1rem 1.5rem;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* MOBILE ONLY */
@media (max-width:768px){

  .desktop-menu{
    display:none;
  }

  .hamburger{
    display:block;
  }

  .mobile-menu.show{
    display:block;
  }

}


/* Kontener na widżet Cloudflare */
.cf-turnstile-container {
    margin: 1.5rem 0; /* Odstęp od góry i dołu */
    min-height: 65px; /* Zapobiega skakaniu formularza podczas ładowania widżetu */
    display: flex;
    justify-content: flex-start; /* Zmień na center, jeśli chcesz na środku */
}

/* Opcjonalnie: dopasowanie szerokości na urządzeniach mobilnych */
@media (max-width: 480px) {
    .cf-turnstile-container {
        transform: scale(0.9); /* Delikatne zmniejszenie na małych ekranach */
        transform-origin: left top;
    }
}


.insta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;

  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}