/* zenyceskie.cz – styl przeniesiony 1:1 z oryginalnego landingu (inline <style>) */
/* ============ RED THEME (zenyceskie.cz – czerwona paleta) ============ */
:root {
  --bg-dark: #140507; 
  --card-bg: #2A0A10; 
  --accent: #FF1F3D; 
  --crimson: #B3001B; 
  --text-main: #FFFFFF;
  --text-muted: #D8C6C8; 
  --gradient-hot: linear-gradient(90deg, var(--accent) 0%, var(--crimson) 100%);
  --deep-red: #7A0614;
  --glow: rgba(255, 31, 61, 0.6); 
  --border: rgba(255, 31, 61, 0.25); 
  --green: #00E676;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ TŁA I POŚWIATY (MOCNIEJSZE KOLORY) ============ */
.bg-glow-1 { position: absolute; top: -15%; left: -15%; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(255, 31, 61, 0.35) 0%, transparent 65%); z-index: 0; pointer-events: none; }
.bg-glow-2 { position: absolute; top: 10%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(179, 0, 27, 0.3) 0%, transparent 65%); z-index: 0; pointer-events: none; }
.bg-glow-3 { position: absolute; bottom: -10%; left: 20%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(255, 31, 61, 0.25) 0%, transparent 60%); z-index: 0; pointer-events: none; }

/* ============ LANGUAGE SWITCHER ============ */
body.sk [data-lang="cs"] { display: none !important; }
body:not(.sk) [data-lang="sk"] { display: none !important; }

.lang-switcher {
  display: flex; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 30px; padding: 4px; gap: 2px; position: relative; z-index: 10;
}
.lang-btn {
  display: flex; align-items: center; gap: 8px; background: transparent;
  border: 1px solid transparent; color: var(--text-muted); font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 20px;
  cursor: pointer; transition: all 0.3s ease;
}
.lang-btn:hover { color: var(--text-main); }
.lang-btn.active { background: rgba(255, 31, 61, 0.2); color: #fff; border-color: rgba(255, 31, 61, 0.4); }
.lang-btn img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; opacity: 0.5; transition: 0.3s; }
.lang-btn.active img { opacity: 1; }

/* ============ ANIMATIONS ============ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 30px var(--glow); } 50% { box-shadow: 0 0 50px var(--glow), 0 0 20px var(--crimson); } }
@keyframes dotPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }
@keyframes heartPulse { 0%,100% { transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 31, 61, 0.4); } 50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(255, 31, 61, 0.8); } }

/* ============ NAV ============ */
.top-bar {
  background: #0C0304; border-bottom: 1px solid var(--border); text-align: center;
  padding: 10px 16px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--text-muted); position: relative; z-index: 10;
}
.top-bar strong { color: var(--accent); }

nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 5%; max-width: 1300px; margin: 0 auto; position: relative; z-index: 10;
}
.logo { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 28px; color: var(--text-main); text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

.cta-btn--secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 24px; background: rgba(255, 31, 61, 0.1); color: var(--text-main);
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px;
  text-decoration: none; border-radius: 50px; border: 1px solid rgba(255, 31, 61, 0.4); cursor: pointer;
  transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px;
}
.cta-btn--secondary:hover { background: rgba(255, 31, 61, 0.2); transform: translateY(-2px); border-color: rgba(255, 31, 61, 0.6); }

/* ============ SINGLE MAIN BUTTON ============ */
.hero-ctas { display: flex; width: 100%; margin-top: 10px; }
.hero-cta-wrap { display: flex; flex-direction: column; width: 100%; max-width: 380px; }
.cta-btn--main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 32px; background: var(--gradient-hot); border: none; color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 18px;
  text-decoration: none; border-radius: 50px; cursor: pointer;
  transition: all 0.3s ease; box-shadow: 0 10px 35px var(--glow);
  text-transform: uppercase; letter-spacing: 0.5px; width: 100%;
}
.cta-btn--main:hover { transform: translateY(-3px); box-shadow: 0 15px 50px rgba(255, 31, 61, 0.8); }
.cta-micro { font-size: 13px; color: var(--text-muted); margin-top: 14px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.cta-micro .green-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; animation: dotPulse 1.5s infinite; }

/* ============ ASYMMETRIC HERO ============ */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center; padding: 40px 5%; overflow: hidden; max-width: 1300px; margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; width: 100%; align-items: center; }

.hero-card {
  background: linear-gradient(145deg, rgba(70, 10, 18, 0.9) 0%, rgba(30, 4, 8, 0.95) 100%);
  border: 1px solid rgba(255, 31, 61, 0.4); border-top: 1px solid rgba(179, 0, 27, 0.6);
  border-radius: 30px; padding: 50px 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 20px 40px rgba(179, 0, 27, 0.15);
  backdrop-filter: blur(10px); animation: slideUp 0.6s ease-out both; position: relative; z-index: 2;
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

.hero-card h1 { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: clamp(38px, 5vw, 64px); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-card p { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; max-width: 90%; }

/* Right Phone Mockup */
.hero-visual { display: flex; justify-content: center; position: relative; perspective: 1000px; animation: slideUp 0.6s ease-out 0.2s both, float 8s ease-in-out infinite; z-index: 2; }
.phone-mockup {
  width: 320px; height: 650px; background: #0E0305; border-radius: 45px;
  border: 8px solid #3A0C14; box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 0 20px rgba(255, 31, 61, 0.2);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #3A0C14; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10; }
.phone-header { padding: 45px 20px 15px; text-align: center; background: linear-gradient(to bottom, rgba(14,3,5,0.95), transparent); position: relative; z-index: 5; }
.phone-logo-text { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 900; color: #fff; }
.phone-logo-text span { background: var(--gradient-hot); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; flex-grow: 1; align-content: center; }
.phone-img { display: block; width: 100%; aspect-ratio: 3/4; border-radius: 14px; background-size: cover; background-position: top center; filter: blur(4px) saturate(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.4); position: relative; cursor: pointer; text-decoration: none; }
.phone-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,3,5,0.6), transparent); border-radius: 14px; }

.phone-nav { height: 70px; background: linear-gradient(to top, rgba(14,3,5,1), transparent); display: flex; justify-content: space-around; align-items: center; padding: 0 30px 10px; position: relative; z-index: 5; }
.nav-icon { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 50%; text-decoration: none; cursor: pointer; transition: 0.3s; }
.nav-icon svg { width: 22px; height: 22px; fill: rgba(255,255,255,0.4); transition: 0.3s; }
.nav-icon:hover svg { fill: rgba(255,255,255,0.8); }
.nav-icon.active { background: rgba(255, 31, 61, 0.2); animation: heartPulse 2s infinite; }
.nav-icon.active svg { fill: var(--accent); }

/* ============ STATS BAR ============ */
.stats-bar { display: flex; justify-content: center; gap: 80px; padding: 40px 5%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(42, 10, 16, 0.4); flex-wrap: wrap; position: relative; z-index: 2; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--text-main); }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ============ GALLERY ============ */
.gallery-section { max-width: 1280px; margin: 0 auto; padding: 100px 5%; text-align: center; position: relative; z-index: 2; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.section-title { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin-bottom: 20px; }
.section-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; line-height: 1.6; margin: 0 auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.gallery-card { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--card-bg); border: 1px solid rgba(255, 31, 61, 0.3); cursor: pointer; transition: transform 0.3s, border-color 0.3s; }
.gallery-card:hover { transform: translateY(-8px); border-color: rgba(255, 31, 61, 0.6); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.gallery-photo { position: absolute; inset: -10%; width: 120%; height: 120%; background-size: cover; background-position: top center; filter: blur(5px) saturate(1.1); transition: filter 0.4s; }
.gallery-card:hover .gallery-photo { filter: blur(2px) saturate(1.2); }
.gallery-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 5, 7, 0.4); }
.gallery-lock svg { width: 32px; height: 32px; color: #fff; opacity: 0.8; }
.gallery-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 16px; background: linear-gradient(transparent, rgba(12, 3, 4, 0.95)); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; text-align: left; }
.gallery-info .online-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }

/* ============ FINAL CTA ============ */
.final-cta { text-align: center; padding: 100px 5% 120px; position: relative; z-index: 2; }
.final-cta .section-title { max-width: 700px; margin: 0 auto 16px; }
.final-cta p { color: var(--text-muted); font-size: 18px; max-width: 500px; margin: 0 auto 40px; }
.trust-badges { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.trust-badges span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.trust-badges svg { width: 16px; height: 16px; stroke: var(--text-muted); }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--border); padding: 40px 5%; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.6; position: relative; z-index: 2; background: #0C0304; }
footer a { color: var(--text-muted); text-decoration: none; }
.affiliate-note { font-size: 11px; opacity: 0.5; margin-top: 10px; display: block; }

/* ============ STICKY MOBILE CTA ============ */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: linear-gradient(transparent, var(--bg-dark) 40%); padding: 20px 16px 24px; display: none; flex-direction: column; align-items: center; }
.sticky-cta .cta-btn--main { width: 100%; max-width: 100%; justify-content: center; font-size: 15px; padding: 16px 24px; box-sizing: border-box; }

/* ============ RESPONSIVE (MOBILE FIXES) ============ */
@media (max-width: 900px) {
  /* TELEFON ZAWSZE JAKO PIERWSZY NA MOBILE */
  .hero-inner { display: flex !important; flex-direction: column !important; text-align: center; gap: 40px; }
  .hero-visual { order: 1 !important; transform: scale(0.95); margin-top: -10px; margin-bottom: 20px; }
  .hero-card { order: 2 !important; padding: 40px 20px; }
  
  .hero-badge { margin: 0 auto 24px; }
  .hero-card p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-bar { gap: 30px; padding: 30px 5%; }
  .stat-num { font-size: 26px; }
  
  .sticky-cta { display: flex; }
  body { padding-bottom: 90px; }
  
  .nav-actions { display: flex; gap: 10px; }
  .cta-btn--secondary { display: none; }
}

@media (max-width: 480px) {
  .hero-card h1 { font-size: 34px; line-height: 1.15; }
  .phone-mockup { width: 85vw; max-width: 290px; height: 580px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  nav { padding: 15px 5%; }
  .logo { font-size: 24px; }
  .lang-btn { font-size: 12px; padding: 4px 10px; }
  .top-bar { font-size: 11px; padding: 8px; line-height: 1.4; }
}

@media (max-width: 360px) {
  .hero-card h1 { font-size: 28px; }
  .stat-num { font-size: 22px; }
  .phone-mockup { height: 520px; }
}


/* =====================================================================
   PLACEHOLDERY GRAFIK (dodane dla zenyceskie.cz)
   Element z klasą .img-ph pokazuje szare pole z przerywaną ramką i opisem.
   Gdy plik z images/ istnieje, js/main.js podmienia je na prawdziwą grafikę.
   ===================================================================== */
.img-ph {
  background-color: #3E2A2D !important;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px) !important;
  border: 2px dashed #C9A3A8 !important;
  filter: none !important;
}
.ph-label {
  position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%);
  z-index: 3; text-align: center; pointer-events: none;
  font-family: 'DM Sans', monospace, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.3;
  color: #f1f1f1; text-shadow: 0 1px 2px rgba(0,0,0,0.8); letter-spacing: 0.2px; word-break: break-word;
}
.has-img > .ph-label { display: none; }
/* telefon – miniatury */
.phone-img.img-ph::after { display: none; }
.phone-img .ph-label { font-size: 10px; }
/* galeria – zdjęcie ma inset -10% (pod blur), dla placeholdera wyrównujemy do karty */
.gallery-photo.img-ph { inset: 0; width: 100%; height: 100%; border-radius: 20px; }
.gallery-photo .ph-label { top: 22%; transform: none; font-size: 13px; }
/* flagi w przełączniku języka */
.flag-ph {
  display: inline-block; width: 18px; height: 13px; border-radius: 2px;
  background: #3E2A2D; border: 1px dashed #C9A3A8; opacity: 0.8;
}

/* =====================================================================
   KONWERSJA – dodatkowe CTA i poprawki (zenyceskie.cz, v2)
   ===================================================================== */
/* nazwy profili były w oryginale niebieskie (domyślny kolor linku) */
.gallery-card { color: var(--text-main); text-decoration: none; }

/* Nav: wyraźniejszy przycisk "Přihlásit se" */
.cta-btn--nav {
  background: var(--gradient-hot); border: 1px solid rgba(255, 31, 61, 0.9);
  box-shadow: 0 6px 22px var(--glow); color: #fff;
}
.cta-btn--nav:hover { background: var(--gradient-hot); box-shadow: 0 10px 30px rgba(255, 31, 61, 0.85); border-color: #FF4A62; }

/* CTA nałożone na ekran telefonu */
.phone-mockup .phone-grid { position: relative; }
.phone-overlay-cta {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 20px; border-radius: 50px; background: var(--gradient-hot); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; box-shadow: 0 8px 26px var(--glow); animation: glowPulse 2.4s infinite;
}
.phone-overlay-cta svg { width: 15px; height: 15px; }

/* Pasek CTA pod statystykami */
.cta-strip { display: flex; justify-content: center; padding: 44px 5% 0; position: relative; z-index: 2; }
.cta-strip .hero-cta-wrap { margin: 0 auto; }

/* Galeria: przycisk "Napsat" na każdej karcie */
.gallery-info { padding-right: 12px; }
.card-cta {
  margin-left: auto; flex-shrink: 0; padding: 7px 14px; border-radius: 50px;
  background: var(--gradient-hot); color: #fff; font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 31, 61, 0.45); transition: transform 0.2s;
}
.gallery-card:hover .card-cta { transform: scale(1.06); }

/* Galeria: CTA w środku siatki (po 3. karcie na desktopie, po 4. na mobile) */
.gallery-grid > .gallery-card:nth-child(1) { order: 1; }
.gallery-grid > .gallery-card:nth-child(2) { order: 2; }
.gallery-grid > .gallery-card:nth-child(3) { order: 3; }
.gallery-grid > .gallery-card:nth-child(4) { order: 5; }
.gallery-grid > .gallery-card:nth-child(5) { order: 6; }
.gallery-grid > .gallery-card:nth-child(6) { order: 7; }
.gallery-mid-cta { order: 4; grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0; }
.gallery-mid-cta .cta-btn--main, .gallery-after-cta .cta-btn--main { max-width: 380px; }
.gallery-after-cta { margin-top: 50px; text-align: center; }
.gallery-after-cta .cta-btn--main { display: inline-flex; }

/* Sticky mobile CTA – czerwone tło */
.sticky-cta { background: linear-gradient(transparent, rgba(20, 5, 7, 0.96) 35%); }

@media (max-width: 900px) {
  /* nagłówek + CTA nad telefonem -> CTA od razu "above the fold" */
  .hero { min-height: 0; padding-top: 10px; }
  .hero-inner { gap: 24px; }
  .hero-card { order: 1 !important; padding: 30px 20px; }
  .hero-card p { margin-bottom: 24px; }
  .hero-visual { order: 2 !important; margin-top: 0; }
  .gallery-grid > .gallery-card:nth-child(4) { order: 3; }
  .gallery-grid > .gallery-card:nth-child(3) { order: 2; }
  .gallery-mid-cta { order: 4; }
  /* Přihlásit se widoczny także na mobile (w oryginale ukryty) */
  .cta-btn--secondary.cta-btn--nav { display: inline-flex; }
  .gallery-section { padding: 60px 5% 80px; }
}
@media (max-width: 480px) {
  nav { padding: 12px 4%; }
  .logo { font-size: 20px; }
  .nav-actions { gap: 6px; }
  .lang-btn { gap: 4px; padding: 4px 7px; font-size: 11px; }
  .cta-btn--nav { padding: 8px 12px; font-size: 11px; letter-spacing: 0.2px; }
  .hero-card { padding: 26px 18px; }
  .card-cta { padding: 5px 9px; font-size: 10px; }
  .gallery-info { font-size: 12px; padding: 16px 8px 10px 10px; gap: 5px; }
  .phone-overlay-cta { bottom: 82px; font-size: 12px; padding: 10px 16px; }
}
@media (max-width: 360px) {
  .logo { font-size: 17px; }
  .lang-btn img, .lang-btn .flag-ph { display: none; }
}

/* fix: poświaty tła wychodziły poza ekran (poziomy scroll także w oryginale) */
.bg-glows { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; overflow-x: clip; overflow-y: visible; pointer-events: none; z-index: 0; }

/* =====================================================================
   LAYOUT v3 – inny układ na desktopie i na mobile (tylko CSS)
   Wszystkie elementy i styl zostają; zmienia się wyłącznie rozmieszczenie.
   ===================================================================== */

/* ----- DESKTOP: telefon po lewej, karta + statystyki po prawej ----- */
@media (min-width: 901px) {
  body {
    display: grid;
    grid-template-columns:
      minmax(16px, 1fr)
      minmax(0, 500px)
      minmax(0, 740px)
      minmax(16px, 1fr);
    column-gap: clamp(24px, 4vw, 60px);
  }

  nav,
  .top-bar,
  .cta-strip,
  .gallery-section,
  .trust-badges,
  footer,
  .sticky-cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
  }
  nav {
    max-width: 1300px;
    justify-self: center;
  }
  .gallery-section {
    max-width: 1280px;
    justify-self: center;
  }

  .hero,
  .hero-inner,
  .final-cta { display: contents; }

  nav { grid-row: 1; }

  /* Pasek 18+ / online – pod nawigacją, jako pill, nie na samej górze */
  .top-bar {
    grid-row: 2;
    background: transparent;
    border-bottom: none;
    padding: 4px 5% 8px;
    text-align: center;
  }
  body:not(.sk) .top-bar [data-lang="cs"],
  body.sk .top-bar [data-lang="sk"] {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 31, 61, 0.12);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 18px;
  }

  /* Telefon – lewa kolumna, obejmuje wiersz karty i statystyk */
  .hero-visual {
    grid-column: 2;
    grid-row: 3 / 5;
    align-self: center;
    padding: 28px 0 36px;
    justify-content: flex-end;
  }
  .hero-card {
    grid-column: 3;
    grid-row: 3;
    margin-top: 28px;
    align-self: end;
  }
  .stats-bar {
    grid-column: 3;
    grid-row: 4;
    gap: 28px;
    padding: 20px 16px 24px;
    margin: 16px 0 8px;
    align-self: start;
    border-radius: 16px;
    border: 1px solid var(--border);
    flex-wrap: nowrap;
  }
  .stats-bar .stat-num { font-size: clamp(22px, 2.6vw, 32px); }
  .stats-bar .stat-lbl { letter-spacing: 0.5px; }

  .cta-strip { grid-row: 5; padding-top: 36px; padding-bottom: 8px; }

  /* Odznaki zaufania – nad galerią, nie pod ostatnim CTA */
  .trust-badges {
    grid-column: 1 / -1;
    grid-row: 6;
    padding: 28px 5% 0;
  }

  .gallery-section { grid-row: 7; }

  /* Finał (bez odznak, już wyżej) */
  .final-cta > .section-tag {
    grid-column: 1 / -1;
    grid-row: 8;
    justify-self: center;
    padding-top: 80px;
  }
  .final-cta > .section-title {
    grid-column: 1 / -1;
    grid-row: 9;
    text-align: center;
    max-width: 700px;
    justify-self: center;
    width: 100%;
    padding: 0 5%;
  }
  .final-cta > p {
    grid-column: 1 / -1;
    grid-row: 10;
    text-align: center;
    max-width: 500px;
    justify-self: center;
    width: 100%;
    padding: 0 5%;
    margin-bottom: 0;
  }
  .final-cta > .hero-ctas {
    grid-column: 1 / -1;
    grid-row: 11;
    justify-content: center;
    padding: 30px 5% 100px;
    margin-top: 0 !important;
  }

  footer { grid-row: 12; }

  /* Galeria: pierwsza karta wyróżniona (2×2), reszta 3-kolumnowa */
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid > .gallery-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    order: 1;
  }
  .gallery-grid > .gallery-card:nth-child(2) { grid-column: 3; grid-row: 1; order: 2; }
  .gallery-grid > .gallery-card:nth-child(3) { grid-column: 3; grid-row: 2; order: 3; }
  .gallery-mid-cta { grid-column: 1 / -1; grid-row: 3; order: 4; }
  .gallery-grid > .gallery-card:nth-child(4) { grid-column: 1; grid-row: 4; order: 5; }
  .gallery-grid > .gallery-card:nth-child(5) { grid-column: 2; grid-row: 4; order: 6; }
  .gallery-grid > .gallery-card:nth-child(6) { grid-column: 3; grid-row: 4; order: 7; }
}

/* ----- MOBILE: inna kolejność niż desktop i niż poprzednia wersja ----- */
@media (max-width: 900px) {
  body {
    display: grid;
    grid-template-columns: 5vw minmax(0, 1fr) 12px minmax(0, 1fr) 5vw;
    column-gap: 0;
    row-gap: 0;
  }

  .hero,
  .hero-inner,
  .gallery-section,
  .gallery-grid,
  .final-cta { display: contents !important; }

  /* pełna szerokość (tła, nav, stopka) */
  nav,
  footer,
  .sticky-cta,
  .stats-bar { grid-column: 1 / -1; }

  /* treść wyrównana do siatki galerii */
  .hero-card,
  .top-bar,
  .trust-badges,
  .cta-strip,
  .hero-visual,
  .gallery-after-cta,
  .gallery-mid-cta,
  .gallery-section > .section-tag,
  .gallery-section > .section-title,
  .gallery-section > .section-sub,
  .final-cta > .section-tag,
  .final-cta > .section-title,
  .final-cta > p,
  .final-cta > .hero-ctas { grid-column: 2 / 5; }

  nav { grid-row: 1; }

  /* 1. karta hero + CTA od razu nad foldem */
  .hero-card {
    grid-row: 2;
    order: 2 !important;
    margin: 8px 0 0;
    padding: 24px 20px;
  }

  /* 2. licznik online – pod pierwszym CTA, jako pill */
  .top-bar {
    grid-row: 3;
    background: transparent;
    border-bottom: none;
    padding: 10px 0 0;
    text-align: center;
  }
  body:not(.sk) .top-bar [data-lang="cs"],
  body.sk .top-bar [data-lang="sk"] {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 31, 61, 0.12);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 14px;
  }

  /* 3. odznaki zaufania wyżej (nie na dole strony) */
  .trust-badges {
    grid-row: 4;
    padding: 10px 0 0;
    margin-top: 0;
    gap: 14px;
  }

  .gallery-section > .section-tag { grid-row: 5; justify-self: center; padding-top: 16px; margin-bottom: 8px; }
  .gallery-section > .section-title { grid-row: 6; text-align: center; }
  .gallery-section > .section-sub { grid-row: 7; text-align: center; padding-bottom: 12px; }

  /* 4. pierwszy rząd galerii */
  .gallery-grid > .gallery-card:nth-child(1) { grid-column: 2; grid-row: 8; order: 0; }
  .gallery-grid > .gallery-card:nth-child(2) { grid-column: 4; grid-row: 8; order: 0; }

  /* 5. statystyki – dopiero po pierwszym rzędzie profili */
  .stats-bar { grid-row: 9; gap: 24px; padding: 28px 5%; margin: 16px 0 0; }

  .cta-strip { grid-row: 10; padding: 28px 0 8px; }

  /* 6. reszta galerii */
  .gallery-grid > .gallery-card:nth-child(3) { grid-column: 2; grid-row: 11; order: 0; }
  .gallery-grid > .gallery-card:nth-child(4) { grid-column: 4; grid-row: 11; order: 0; }
  .gallery-mid-cta { grid-row: 12; padding: 20px 0; }
  .gallery-grid > .gallery-card:nth-child(5) { grid-column: 2; grid-row: 13; order: 0; }
  .gallery-grid > .gallery-card:nth-child(6) { grid-column: 4; grid-row: 13; order: 0; }
  .gallery-after-cta { grid-row: 14; margin-top: 28px; text-align: center; }

  /* 7. telefon – po galerii, nie nad nią */
  .hero-visual {
    grid-row: 15;
    order: 15 !important;
    margin: 28px 0 8px;
    transform: none;
  }

  /* 8. finałowe CTA (odznaki już były wyżej) */
  .final-cta > .section-tag { grid-row: 16; justify-self: center; padding-top: 48px; }
  .final-cta > .section-title { grid-row: 17; text-align: center; }
  .final-cta > p { grid-row: 18; text-align: center; margin-bottom: 0; }
  .final-cta > .hero-ctas {
    grid-row: 19;
    justify-content: center;
    padding: 24px 0 40px;
    margin-top: 0 !important;
  }

  footer { grid-row: 20; }

  .gallery-section { padding: 0; }
  .hero { min-height: 0; padding: 0; }
  body { padding-bottom: 110px; }
}

@media (max-width: 480px) {
  .hero-card { padding: 26px 18px; }
  body { grid-template-columns: 4vw minmax(0, 1fr) 10px minmax(0, 1fr) 4vw; }
}

.gallery-info { flex-wrap: nowrap; }
.gallery-info > span[data-lang] { min-width: 0; flex: 1 1 auto; line-height: 1.25; }
