/*
  Studio Kozubek - studiokozubek.pl
  Strony internetowe, AI i automatyzacje dla firm
  Racibórz, od 2009
*/

/* ===== LOCAL FONTS ===== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --primary-light: rgba(211, 47, 47, 0.08);
  --primary-glow: rgba(211, 47, 47, 0.15);
  --dark: #1d1c21;
  --text: #595959;
  --text-light: #767676;
  --light-bg: #fafafa;
  --white: #fff;
  --border: #e5e5e5;
  --shadow: 0 4px 28px rgba(0,0,0,0.07);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-light: 0 6px 50px rgba(0,0,0,0.05);
  --radius: 4px;
  --radius-md: 8px;
  --radius-round: 500px;
  --max-width: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }
::selection { background: var(--primary); color: var(--white); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo { flex-shrink: 0; transition: opacity var(--transition); }
.logo:hover { opacity: 0.7; }
.logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--dark);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 28px 0;
  display: inline-block;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a .dd-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: transform var(--transition);
}
.nav-dropdown.open > a .dd-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -15px;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 10px 0;
  z-index: 100;
}
.nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 9px 22px !important;
  font-size: 12px !important;
  color: var(--dark) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
  padding-left: 26px !important;
}

.nav-right { display: flex; align-items: center; gap: 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px;
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 400;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 40px;
  height: 40px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn:active::before { width: 300px; height: 300px; }

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 3px 12px rgba(211,47,47,0.25); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(211,47,47,0.3); }

.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: var(--white); border: 1px solid var(--dark); box-shadow: 0 3px 12px rgba(0,0,0,0.18); }
.btn-dark:hover { background: #000; color: var(--white); border-color: #000; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,0.25); }

.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--light-bg); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.btn-lg { padding: 0 40px; line-height: 52px; height: 52px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--dark); padding: 5px;
}

/* ===== HERO WITH ANIMATION ===== */
.hero {
  padding: 80px 0 70px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* hero - clean background */

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-subtitle {
  color: var(--primary);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
  padding-left: 40px;
}
.hero-subtitle::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 25px;
  color: var(--dark);
}
.hero-content h1 strong { font-weight: 700; }

.hero-content p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.8;
  font-weight: 300;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

/* Hero Benefits (Key Benefits checkmarks) */
.hero-benefits {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: heroSlideUp 0.8s 1.1s forwards;
}
.hero-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.hero-benefit svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-benefit strong {
  color: var(--dark);
}

/* Hero Tech Stack (Trust Signals) */
.hero-stack {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: heroSlideUp 0.8s 1.4s forwards;
}
.hero-stack-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  font-weight: 500;
}
.hero-stack-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-stack-icon {
  position: relative;
  opacity: 0.45;
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  cursor: default;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-stack-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.hero-stack-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}
/* JS Tooltip */
.stack-tooltip {
  position: fixed;
  background: var(--dark);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 6px;
  width: 240px;
  text-align: center;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.stack-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.stack-tooltip strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
  color: #fff;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: heroImageIn 1s 0.3s forwards;
}
.hero-image img {
  max-width: 500px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  transition: transform 0.4s ease;
}
.hero-image:hover img { transform: translateY(-8px) scale(1.02); }

@keyframes heroBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero split layout */
.hero-split { min-height: 680px; position: relative; }
.hero-canvas-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; cursor: default;
}
.hero-split-inner { pointer-events: none; position: relative; z-index: 1; }
@keyframes logoCubeRot { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroImageIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-primary {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-primary canvas.bg-fx {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.section-primary > .cta-section,
.section-primary > .container {
  position: relative;
  z-index: 1;
}

.section-title { text-align: center; margin-bottom: 55px; }
.section-title h2 { font-size: 30px; font-weight: 300; margin-bottom: 12px; }
.section-title h2 strong { font-weight: 700; }
.section-title p { color: var(--text); font-size: 15px; }

/* ===== PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar {
  text-align: center;
  padding: 50px 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pillar:hover::after { transform: scaleX(1); }

.pillar-icon { margin-bottom: 25px; display: flex; justify-content: center; }
.pillar-icon svg { width: 40px; height: 40px; stroke: var(--primary); stroke-width: 1; fill: none; transition: transform var(--transition); }
.pillar:hover .pillar-icon svg { transform: scale(1.1); }

.pillar h2 {
  font-size: 14px; font-weight: 400; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 15px; color: var(--primary);
}
.pillar p { color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 300; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat h3, .stat-number { font-size: 44px; font-weight: 300; color: var(--primary); margin-bottom: 5px; }
.stat p { font-size: 14px; font-weight: 300; color: var(--text); text-transform: uppercase; letter-spacing: 1px; }
.section-dark .stat p { color: rgba(255,255,255,0.6); }
.section-dark .stat h3, .section-dark .stat-number { color: var(--white); }

/* ===== PROCESS STEPS ===== */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-top: 30px; position: relative; }
.process-step { padding: 30px 25px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow); text-align: center; transition: all 0.3s; }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.process-step .step-num, .process-step .step-number { font-size: 32px; font-weight: 100; color: var(--primary); margin-bottom: 12px; }
.process-step h3 { font-size: 16px; font-weight: 400; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text); font-weight: 300; line-height: 1.6; }

/* ===== FAQ ACCORDION ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 400;
  color: var(--dark); transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question::after {
  content: '+'; font-size: 22px; font-weight: 300; color: var(--primary);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 15px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  color: var(--text); font-weight: 300; line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 20px; }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 30px; font-weight: 300; margin-bottom: 15px; }
.cta-section h2 strong { font-weight: 700; }
.cta-section p { color: var(--text); margin-bottom: 30px; font-size: 15px; font-weight: 300; }
.section-primary .cta-section p { color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* CTA buttons on red/primary background — override inline styles on hover */
.section-primary .btn-white:hover { background: rgba(255,255,255,0.9); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.section-primary .btn[style*="border"] { transition: all var(--transition); }
.section-primary .btn[style*="border"]:hover { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.6) !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

/* ===== CTA WITH IMAGE ===== */
.cta-image-section {
  background-image: url('../gfx/cta-background.jpeg');
  background-size: cover;
  background-position: center;
  /* background scrolls with page */
  padding: 120px 0;
  position: relative;
}
.cta-image-content { max-width: 600px; padding: 0 40px; }
.cta-image-content h2 {
  font-size: 42px; font-weight: 300; line-height: 1.25; margin-bottom: 25px; color: var(--dark);
}
.cta-image-content p {
  color: var(--text); font-size: 15px; font-weight: 300; line-height: 1.8; margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 35px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--primary);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}
.service-card:hover::before { height: 100%; }

.service-card .icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; transition: transform var(--transition); }
.service-card:hover .icon { transform: scale(1.15); }
.service-card h3 { font-size: 18px; font-weight: 400; margin-bottom: 15px; }
.service-card p { color: var(--text); font-size: 15px; line-height: 1.7; font-weight: 300; }

/* Frosted glass cards on dark sections (home services) */
.section-dark .service-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
}
.section-dark .service-card::before { display: none; }
.section-dark .service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(var(--gAngle, 135deg), transparent 0%, rgba(255,255,255, var(--gOpacity, 0)) 40%, rgba(255,255,255, var(--gOpacity, 0)) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}
.section-dark .service-card:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.section-dark .service-card .icon {
  color: var(--primary); position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  height: 80px; margin-bottom: 20px;
}
.section-dark .service-card h3 { color: #fff; position: relative; z-index: 1; }
.section-dark .service-card p { color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.section-dark .service-card span { position: relative; z-index: 1; }

/* Hologram Red icons (home service cards) */
.holo-wrap { position: relative; display: inline-block; }
.holo-wrap .holo-base {
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 6px rgba(211,47,47,0.3));
  animation: holoRedFlick 4s ease-in-out infinite;
}
.holo-wrap .holo-r, .holo-wrap .holo-g {
  position: absolute; top: 0; left: 0; z-index: 1;
  pointer-events: none; mix-blend-mode: screen;
}
.holo-wrap .holo-r { animation: hrR 3s ease-in-out infinite; }
.holo-wrap .holo-g { animation: hrG 3s ease-in-out infinite; }
@keyframes hrR { 0%,100%{transform:translate(0);opacity:0.3} 25%{transform:translate(2px,-1px);opacity:0.5} 50%{transform:translate(-1px,1px);opacity:0.2} 75%{transform:translate(3px,0);opacity:0.4} }
@keyframes hrG { 0%,100%{transform:translate(0);opacity:0.3} 25%{transform:translate(-2px,1px);opacity:0.4} 50%{transform:translate(1px,-1px);opacity:0.5} 75%{transform:translate(-3px,0);opacity:0.2} }
@keyframes holoRedFlick { 0%,100%{opacity:1} 30%{opacity:0.9} 50%{opacity:1} 70%{opacity:0.85} 85%{opacity:1} }
.service-card:hover .holo-wrap .holo-r { animation-duration: 0.8s; }
.service-card:hover .holo-wrap .holo-g { animation-duration: 0.8s; }
.service-card:hover .holo-wrap .holo-base {
  filter: drop-shadow(0 0 14px rgba(211,47,47,0.6)) drop-shadow(0 0 4px rgba(255,100,100,0.4));
  animation-duration: 1.5s;
}
.icon-svg { width: 80px; height: 80px; display: block; }

/* Process steps - home + podstrony */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; margin-top: 30px; position: relative; }
.process-step { padding: 30px 25px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow); text-align: center; transition: all 0.3s; }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.process-step .step-num { font-size: 32px; font-weight: 100; color: var(--primary); margin-bottom: 12px; }
.process-step h3 { font-size: 16px; font-weight: 400; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text); font-weight: 300; line-height: 1.6; }

/* Badge for new services */
.service-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-round);
}
.service-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 6px rgba(211,47,47,0.35);
  animation: badgePulse 2s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 0; }
}

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pricing-card-header { background: var(--primary); color: var(--white); padding: 30px 25px; text-align: center; }
.pricing-card-header h3 { font-size: 18px; font-weight: 400; margin-bottom: 5px; }
.pricing-card-header .price { font-size: 14px; opacity: 0.85; font-weight: 300; }
.pricing-card-body { padding: 30px 25px; }
.pricing-card-body ul { margin-bottom: 25px; }
.pricing-card-body li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text); font-weight: 300;
  display: flex; align-items: center; gap: 10px;
}
.pricing-card-body li::before { content: "\2713"; color: var(--primary); font-weight: 700; }
.pricing-card-body .btn { width: 100%; justify-content: center; }
.pricing-info {
  text-align: center; max-width: 700px; margin: 40px auto 0;
  font-size: 15px; color: var(--text); line-height: 1.8; font-weight: 300;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 0 25px; line-height: 38px; height: 38px;
  border: 1px solid var(--border); background: var(--white);
  border-radius: var(--radius-round); font-size: 12px;
  font-family: 'Roboto', sans-serif; cursor: pointer;
  transition: all var(--transition); color: var(--dark);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(211,47,47,0.25);
}

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.portfolio-item {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.portfolio-item-img {
  height: 200px; background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px; overflow: hidden;
}
.portfolio-item-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover .portfolio-item-img img { transform: scale(1.08); }

.portfolio-item-info { padding: 20px; }
.portfolio-item-info h3 { font-size: 15px; font-weight: 400; margin-bottom: 5px; }
.portfolio-item-info span { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== ABOUT ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 30px; font-weight: 300; margin-bottom: 25px; }
.about-text h2 strong { font-weight: 700; }
.about-text p { color: var(--text); margin-bottom: 15px; line-height: 1.8; font-weight: 300; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.about-images .img-placeholder {
  height: 180px; background: var(--light-bg); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px; overflow: hidden;
}
.about-images .img-placeholder img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md);
  transition: transform 0.6s ease;
}
.about-images .img-placeholder:hover img { transform: scale(1.05); }

/* ===== POLAROID PHOTOS ===== */
.polaroid-stack {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: visible;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}
.polaroid {
  position: absolute;
  width: 210px;
  background: linear-gradient(168deg, #fefefe 0%, #f8f6f3 40%, #f3f0eb 100%);
  padding: 12px 12px 40px 12px;
  border-radius: 3px 4px 4px 3px;
  cursor: grab;
  z-index: 100;
  transition: box-shadow 0.3s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow:
    0 1px 1px rgba(0,0,0,0.06),
    0 3px 8px rgba(0,0,0,0.1),
    0 8px 24px rgba(0,0,0,0.1),
    0 16px 40px rgba(0,0,0,0.06);
  will-change: transform, box-shadow;
}
/* Paper texture + slight aging */
.polaroid::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.006) 2px, rgba(0,0,0,0.006) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0,0,0,0.004) 4px, rgba(0,0,0,0.004) 5px);
  pointer-events: none;
  z-index: 2;
}
/* Subtle edge wear / uneven border */
.polaroid::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.03);
  border-right-color: rgba(0,0,0,0.04);
  pointer-events: none;
  z-index: 3;
}
.polaroid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  border: 1px solid rgba(0,0,0,0.04);
  filter: contrast(1.02) saturate(0.9) brightness(1.01);
}
.polaroid-caption {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.3px;
  pointer-events: none;
}
.polaroid-active {
  cursor: grabbing;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.3),
    0 10px 24px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.1) !important;
}
.polaroid:hover:not(.polaroid-active) {
  box-shadow:
    0 2px 3px rgba(0,0,0,0.08),
    0 6px 16px rgba(0,0,0,0.13),
    0 14px 40px rgba(0,0,0,0.1),
    0 20px 50px rgba(0,0,0,0.05);
}

@media (max-width: 960px) {
  .polaroid-stack { height: 340px; overflow: hidden; border-radius: 12px; }
  .polaroid { width: 150px; padding: 8px 8px 30px 8px; }
  .polaroid img { height: 110px; }
  .polaroid-caption { font-size: 10px; }
}
@media (max-width: 480px) {
  .polaroid-stack { height: 280px; }
  .polaroid { width: 120px; padding: 6px 6px 24px 6px; }
  .polaroid img { height: 85px; }
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 22px; font-weight: 300; margin-bottom: 25px; }
.contact-info .info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.contact-info .info-item .icon { color: var(--primary); font-size: 1.2rem; margin-top: 3px; }
.contact-info .info-item p { color: var(--text); font-size: 15px; line-height: 1.6; font-weight: 300; }
.contact-info .info-item strong { color: var(--dark); font-weight: 400; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 400; margin-bottom: 8px; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0 15px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 300;
  transition: all var(--transition); background: var(--white); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { min-height: 130px; resize: vertical; padding: 12px 15px; height: auto; }

/* ===== MAP ===== */
.map-container { width: 100%; height: 400px; border-radius: var(--radius-md); overflow: hidden; background: var(--light-bg); margin-top: 50px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== WHY US ===== */
.why-us-list li {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 300;
  display: flex; align-items: center; gap: 12px;
  transition: padding-left var(--transition);
}
.why-us-list li:hover { padding-left: 8px; }
.why-us-list li::before { content: "\2713"; color: var(--primary); font-weight: 700; font-size: 14px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 25px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); font-size: 15px; margin-bottom: 20px; font-weight: 400; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 300;
  padding: 5px 0; transition: all var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-col p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); font-weight: 300; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 25px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 300;
}

.social-links { display: flex; gap: 10px; margin-top: 15px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border-radius: 50%; color: rgba(255,255,255,0.6); padding: 0;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.social-links a svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--light-bg); padding: 65px 0; text-align: center; position: relative; overflow: hidden; }
.page-header > .container { position: relative; z-index: 1; }
.page-header canvas.circuit-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-header h1 { font-size: 30px; font-weight: 300; margin-bottom: 10px; }
.page-header h1 strong { font-weight: 700; }
.page-header p { color: var(--text); font-size: 15px; font-weight: 300; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== SCROLL ANIMATIONS ===== */
.anim-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-fade.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACCESSIBILITY PANEL ===== */
/* Navbar acc toggle - desktop (in .nav-right) */
.acc-toggle-nav {
  background: #2563eb; border: none; cursor: pointer;
  color: #fff !important; padding: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  flex-shrink: 0;
}
.acc-toggle-nav svg { fill: #fff !important; color: #fff !important; }
.acc-toggle-nav:hover { background: #1d4ed8; transform: scale(1.08); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.acc-toggle-desktop { display: flex; }
.acc-toggle-mobile { display: none; }
/* Wrapper for mobile header buttons */
.nav-header-right { display: none; align-items: center; gap: 8px; }

/* ===== LANGUAGE SWITCHER (PL / EN) ===== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 14px;
}
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 7px;
  color: rgba(89,89,89,0.7);
  text-decoration: none;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-switch__btn:hover { color: var(--primary); background: var(--primary-light); }
.lang-switch__btn--active { color: var(--primary); font-weight: 600; }
.lang-switch__btn--active:hover { background: var(--primary-light); }
.lang-switch__sep { color: rgba(89,89,89,0.25); user-select: none; padding: 0 2px; }
.lang-flag {
  width: 18px; height: 12px;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* Mobile wariant - w hamburger menu na gorze */
.lang-switch--mobile {
  justify-content: center;
  width: auto;
  font-size: 14px;
  margin: 6px 0 10px;
  gap: 4px;
}
.lang-switch--mobile .lang-switch__btn { padding: 8px 14px; }
.lang-switch--mobile .lang-flag { width: 22px; height: 14px; }

.acc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.05);
  z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: all 0.35s;
}
.acc-overlay.acc-overlay-show { opacity: 1; visibility: visible; }

.acc-panel {
  position: fixed;
  top: 50%; right: -420px;
  transform: translateY(-50%);
  width: 380px; max-width: 92vw;
  max-height: 92vh;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  color: #fff;
  z-index: 10000;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
.acc-panel.acc-open { right: 8px; }

.acc-panel::-webkit-scrollbar { width: 3px; }
.acc-panel::-webkit-scrollbar-track { background: transparent; }
.acc-panel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.acc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 10px;
}
.acc-header h3 { font-size: 16px; font-weight: 500; color: rgba(0,0,0,0.75); letter-spacing: 0.3px; }
.acc-header-actions { display: flex; gap: 6px; align-items: center; }
.acc-header-actions button {
  background: none; border: none; color: rgba(0,0,0,0.4);
  cursor: pointer; padding: 4px; transition: all 0.2s;
}
.acc-header-actions button:hover { color: rgba(0,0,0,0.7); }

.acc-close-btn {
  background: #2563eb !important;
  border-radius: 50% !important;
  width: 30px !important; height: 30px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  color: #fff !important;
  transition: all 0.2s !important;
}
.acc-close-btn:hover { background: #3b82f6 !important; transform: scale(1.05); }

.acc-body { padding: 0 14px 14px; }

.acc-toggles {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; margin-bottom: 8px;
}

.acc-opt {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgba(0,0,0,0.7);
  padding: 9px 10px;
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.25s;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
}
.acc-opt:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4);
  transform: translateY(-1px);
}
.acc-opt:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 2px rgba(0,0,0,0.05); }
.acc-opt.acc-active {
  background: rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.5);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.acc-opt-icon { flex-shrink: 0; display: flex; width: 18px; height: 18px; color: rgba(0,0,0,0.5); }
.acc-opt-icon svg { width: 18px; height: 18px; }

.acc-sliders { display: flex; flex-direction: column; gap: 4px; }

.acc-slider {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.3);
}
.acc-slider-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.acc-slider-label {
  display: block; font-size: 11px; font-weight: 400;
  color: rgba(0,0,0,0.55);
}
.acc-slider-row { display: flex; align-items: center; gap: 8px; }

.acc-range {
  flex: 1; height: 3px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #2563eb 29%, rgba(0,0,0,0.08) 29%);
  border-radius: 3px; outline: none;
}
.acc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; cursor: pointer;
  border: 2px solid #2563eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.acc-slider-val { font-size: 11px; color: rgba(0,0,0,0.7); font-weight: 500; }

.acc-step-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(0,0,0,0.6); width: 24px; height: 24px; border-radius: 6px;
  cursor: pointer; font-size: 14px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Roboto', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
}
.acc-step-btn:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }
.acc-step-btn:active { transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }

/* Accessibility CSS classes */
html.acc-underline-links a { text-decoration: underline !important; }

html.acc-highlight-headings h1,
html.acc-highlight-headings h2,
html.acc-highlight-headings h3,
html.acc-highlight-headings h4 {
  outline: 2px solid #2563eb !important;
  outline-offset: 4px;
  border-radius: 2px;
}

html.acc-reading-mode body {
  max-width: 720px !important;
  margin: 0 auto !important;
  font-size: 18px !important;
  line-height: 2 !important;
}

html.acc-screen-reader *:focus {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px;
}

/* Accessibility scaling - exclude acc panel elements */
html.acc-font-scaled body {
  font-size: calc(15px * var(--acc-font-scale, 1)) !important;
}
html.acc-font-scaled h1:not(.acc-panel h1) { font-size: calc(30px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled h2:not(.acc-panel h2) { font-size: calc(24px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled h3:not(.acc-panel h3) { font-size: calc(18px * var(--acc-font-scale, 1)) !important; }
html.acc-font-scaled p:not(.acc-panel p),
html.acc-font-scaled li:not(.acc-panel li),
html.acc-font-scaled span:not(.acc-panel span),
html.acc-font-scaled a:not(.acc-panel a) { font-size: calc(15px * var(--acc-font-scale, 1)) !important; }

html.acc-line-scaled p:not(.acc-panel p),
html.acc-line-scaled li:not(.acc-panel li),
html.acc-line-scaled span:not(.acc-panel span),
html.acc-line-scaled div:not(.acc-panel div):not(.acc-panel) { line-height: calc(1.7 * var(--acc-line-scale, 1)) !important; }

html.acc-spacing-scaled p:not(.acc-panel p),
html.acc-spacing-scaled li:not(.acc-panel li),
html.acc-spacing-scaled span:not(.acc-panel span),
html.acc-spacing-scaled a:not(.acc-panel a),
html.acc-spacing-scaled div:not(.acc-panel div):not(.acc-panel) { letter-spacing: var(--acc-letter-spacing, 0) !important; }

/* Isolate acc panel from all accessibility changes */
.acc-panel, .acc-panel * {
  line-height: initial !important;
  letter-spacing: normal !important;
  zoom: 1 !important;
}
.acc-panel .acc-slider-label { line-height: 1.4 !important; }
.acc-panel .acc-opt { line-height: 1.3 !important; }
.acc-overlay { zoom: var(--acc-inverse-zoom, 1) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-content p { text-align: center; }
  .hero-subtitle { padding-left: 0; }
  .hero-subtitle::before { display: none; }
  .hero-buttons { justify-content: center; }
  .btn-lg { max-width: 100%; white-space: normal; font-size: 14px; padding: 14px 24px; line-height: 1.4; }
  .hero-image { order: -1; }

  /* Hero split - text first, canvas below on mobile */
  .hero-split {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-canvas-bg {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 500px !important;
    order: 2 !important;
    cursor: default !important;
    background: var(--light-bg) !important;
  }
  .hero-split-inner {
    position: relative !important;
    z-index: 1;
    padding: 40px 20px 20px !important;
    order: 1 !important;
    pointer-events: auto !important;
  }
  .hero-benefits { margin-top: 24px; gap: 10px; }
  .hero-benefit { font-size: 0.85rem; }
  .hero-stack { margin-top: 20px; padding-top: 16px; text-align: center; }
  .hero-stack-icons { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .pillars { grid-template-columns: 1fr; max-width: 450px; }
  .stats { grid-template-columns: 1fr; gap: 25px; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr !important; }
  .process-steps { grid-template-columns: 1fr !important; }
  .models-grid { grid-template-columns: 1fr !important; }
  .cta-image-section { padding: 60px 0; }
  .cta-image-content h2 { font-size: 28px; }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 15px;
    min-width: auto;
    border-radius: 0;
  }
  .nav-dropdown.open > .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 0 !important; border-bottom: none !important; }
  .nav-dropdown-menu a:hover { padding-left: 8px !important; background: transparent; }

  body.menu-open { overflow: hidden !important; position: fixed; width: 100%; }
  .nav-links {
    display: none; flex-direction: column; align-items: center; justify-content: flex-start;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: var(--white); padding: 20px 20px 30px;
    z-index: 9998; gap: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Mobile logo at top of menu */
  .nav-mobile-logo { display: block !important; list-style: none; width: 100%; text-align: center; padding: 10px 0 16px; border-bottom: none !important; }
  .nav-mobile-logo a { border-bottom: none !important; }
  .nav-links > li { width: 100%; text-align: center; list-style: none; }
  /* Uslugi - biggest, most important */
  .nav-links > li.nav-dropdown > a { padding: 10px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border); }
  /* Prevent Uslugi toggle on mobile - always expanded */
  .nav-links > li.nav-dropdown > a { pointer-events: none; }
  /* Regular menu items - smaller */
  .nav-links > li:not(.nav-dropdown):not(.nav-mobile-cta-wrap):not(.nav-mobile-logo) > a {
    padding: 9px 0; font-size: 14px; font-weight: 400; color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.06); letter-spacing: 0.5px;
  }
  .nav-links a::after { display: none; }
  .nav-links.active { display: flex; }
  /* Auto-expand services dropdown on mobile */
  .nav-links.active .nav-dropdown .nav-dropdown-menu {
    display: block !important; position: static; box-shadow: none;
    background: transparent; padding: 4px 0 6px;
  }
  .nav-links.active .nav-dropdown .nav-dropdown-menu a {
    font-size: 15px !important; color: var(--primary) !important; font-weight: 500 !important;
    padding: 7px 0 !important; border-bottom: 1px solid rgba(211,47,47,0.08) !important;
    pointer-events: auto !important;
  }
  .nav-links.active .nav-dropdown > a .dd-arrow { transform: rotate(180deg); }
  /* Mobile menu CTA */
  .nav-mobile-cta {
    display: block !important; width: 100%; max-width: 280px;
    margin: 12px auto 0 !important; padding: 13px 0 !important; text-align: center;
    background: var(--primary) !important; color: #fff !important; border-radius: var(--radius-round) !important;
    font-size: 15px !important; font-weight: 500 !important; text-decoration: none !important;
    border-bottom: none !important;
  }
  .nav-mobile-cta-wrap { display: block !important; width: 100%; text-align: center; list-style: none; }
  .nav-home-link { display: block !important; list-style: none; }
  .nav-mobile-lang { display: block !important; list-style: none; width: 100%; text-align: center; border-bottom: none !important; }
  .nav-mobile-lang .lang-switch { margin-right: 0; }
  .nav-header-right { display: flex; z-index: 9999; }
  .menu-toggle { display: block; }
  .acc-toggle-desktop { display: none !important; }
  .acc-toggle-mobile { display: flex !important; color: var(--text); }
  .nav-right { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .btn-lg { max-width: 100%; white-space: normal; font-size: 14px; padding: 14px 20px; }
  .hero-content h1 { font-size: 26px; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 55px 0; }
  .section-title h2, .cta-section h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { text-align: center; }
  .footer-col a { display: block; }
  .footer-col a:hover { padding-left: 0; }
  .social-links { justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .acc-panel { width: 100%; max-width: 100vw; border-radius: 0; }
}

/* ===== DEMO AI SECTION v1.78 - 3 karty + pain box + akcja ===== */
.demo-ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 0 auto 28px;
}
.demo-ai-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 24px; text-align: left; position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.demo-ai-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.demo-ai-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  margin-bottom: 16px;
}
.demo-ai-number {
  font-size: clamp(28px, 3.5vw, 36px); font-weight: 500; color: var(--dark);
  letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 6px;
}
.demo-ai-label {
  font-size: 14px; font-weight: 500; color: var(--primary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.demo-ai-desc {
  color: var(--text); font-size: 14px; font-weight: 300; line-height: 1.6;
  margin: 0;
}
.demo-ai-scores {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 720px; margin: 0 auto 8px;
}
.score-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 10px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.score-box:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.score-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-size: 20px; font-weight: 500; letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.score-circle.score-perfect {
  color: #0cce6b; background: rgba(12,206,107,0.12);
  border: 2px solid #0cce6b;
}
.score-circle.score-good {
  color: #0cce6b; background: rgba(12,206,107,0.10);
  border: 2px solid #0cce6b;
}
.score-circle.score-warn {
  color: #ffa400; background: rgba(255,164,0,0.12);
  border: 2px solid #ffa400;
}
.score-label {
  font-size: 11px; font-weight: 500; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.demo-ai-scores-note {
  text-align: center; color: var(--text-light);
  font-size: 12px; font-weight: 300; margin: 0 auto 28px;
  max-width: 720px;
}
@media (max-width: 600px) {
  .demo-ai-scores { grid-template-columns: repeat(2, 1fr); }
  .score-circle { width: 52px; height: 52px; font-size: 18px; }
}

.demo-ai-pain {
  display: flex; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto 30px;
  padding: 16px 20px;
  background: rgba(211,47,47,0.06);
  border-left: 3px solid var(--primary); border-radius: var(--radius);
}
.demo-ai-pain-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
}
.demo-ai-pain-text {
  color: var(--dark); font-size: 15px; font-weight: 300; line-height: 1.5;
}
.demo-ai-pain-text strong { color: var(--primary); font-weight: 500; }
.demo-ai-action { max-width: 760px; margin: 0 auto; text-align: center; }
.demo-ai-action-intro {
  color: var(--text); font-size: 15px; font-weight: 300;
  margin-bottom: 16px; line-height: 1.6;
}
@media (max-width: 900px) {
  .demo-ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .demo-ai-grid { grid-template-columns: 1fr; gap: 14px; }
  .demo-ai-card { padding: 22px 20px; text-align: center; }
  .demo-ai-card .demo-ai-icon { margin-left: auto; margin-right: auto; }
  .demo-ai-pain { flex-direction: column; align-items: flex-start; text-align: left; }
  .demo-ai-pain-text { font-size: 14px; }
}

/* ===== PAGESPEED CHECK FORM v1.75 - pill shape ===== */
.pagespeed-check-form {
  display: flex; flex-wrap: nowrap; gap: 10px;
  justify-content: center; align-items: stretch;
  max-width: 540px; margin: 0 auto;
}
.pagespeed-check-form input[type="url"] {
  flex: 1 1 320px; min-width: 0;
  height: 46px; padding: 0 20px;
  font-size: 13px; font-weight: 300; line-height: 1;
  font-family: inherit; color: var(--dark);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-round);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pagespeed-check-form input[type="url"]::placeholder { color: var(--text-light); font-weight: 300; font-size: 13px; }
.pagespeed-check-form input[type="url"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.pagespeed-check-form input[type="url"].is-invalid {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.15);
  animation: pagespeedShake 0.3s ease-in-out;
}
@keyframes pagespeedShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.pagespeed-check-form button {
  flex: 0 0 auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 22px; height: 46px; font-size: 13px;
}
@media (max-width: 480px) {
  .pagespeed-check-form { gap: 6px; }
  .pagespeed-check-form input[type="url"] { flex: 1 1 60%; padding: 0 14px; font-size: 12px; }
  .pagespeed-check-form input[type="url"]::placeholder { font-size: 12px; }
  .pagespeed-check-form button { padding: 0 16px; font-size: 12px; }
}

/* ===== MOBILE HEADER OPTIMIZATION v1.69 =====
   Logo + hamburger w jednej linii, wiekszy menu toggle, auto-skalowanie,
   menu overlay mieszczace sie bez przewijania na typowym mobile viewporcie */
@media (max-width: 1024px) {
  .logo { min-width: 0 !important; }
  .logo > span { font-size: clamp(17px, 5.2vw, 26px) !important; letter-spacing: 0.5px !important; }
  .logo > span:first-child { font-size: clamp(18px, 5.6vw, 26px) !important; margin-right: 5px !important; }
  #logoTyping { min-width: auto !important; }
  .nav-header-right { gap: 14px; }
  .menu-toggle {
    font-size: 2.1rem; padding: 6px 10px; line-height: 1;
    border-radius: 8px; color: var(--dark);
  }
  .menu-toggle:hover, .menu-toggle:focus { background: rgba(0,0,0,0.05); outline: none; }
  .acc-toggle-mobile { padding: 8px !important; margin-right: 4px !important; }
  .acc-toggle-mobile svg { width: 22px !important; height: 22px !important; }
  .nav-links { padding: 10px 16px 14px !important; gap: 0 !important; }
  /* Logo w lewym gornym rogu, z prawym paddingiem zeby nie zachodzilo na acc+hamburger */
  .nav-mobile-logo {
    display: block !important; text-align: left !important;
    padding: 2px 110px 6px 0 !important;
  }
  .nav-mobile-logo a { justify-content: flex-start !important; }
  .nav-mobile-logo a span { font-size: clamp(17px, 4.7vw, 21px) !important; }
  .nav-mobile-lang { padding: 8px 0 14px !important; }
  .nav-mobile-lang .lang-switch__btn { padding: 4px 8px !important; font-size: 13px !important; }
  .nav-home-link > a { padding: 6px 0 !important; font-size: clamp(13px, 3.6vw, 15px) !important; }
  .nav-links > li.nav-dropdown > a { padding: 6px 0 !important; font-size: clamp(16px, 4.4vw, 18px) !important; }
  .nav-links > li:not(.nav-dropdown):not(.nav-mobile-cta-wrap):not(.nav-mobile-logo):not(.nav-mobile-lang):not(.nav-home-link) > a {
    padding: 6px 0 !important; font-size: clamp(13px, 3.6vw, 15px) !important;
  }
  .nav-links.active .nav-dropdown .nav-dropdown-menu { padding: 2px 0 2px !important; }
  .nav-links.active .nav-dropdown .nav-dropdown-menu a {
    padding: 5px 0 !important; font-size: clamp(14px, 3.8vw, 16px) !important;
  }
  .nav-mobile-cta {
    padding: 10px 0 !important; font-size: clamp(14px, 3.9vw, 16px) !important;
    margin: 6px auto 0 !important; max-width: 260px !important;
  }
}
