:root {
    --primary-color: #f0fdfa; --secondary-color: #9ca3af; --bg-color: #111827;
    --bg-light: #1f2937; --accent-color: #14b8a6; --accent-hover: #0d9488;
    --font-primary: 'Montserrat', sans-serif; --font-secondary: 'Open Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary); color: var(--secondary-color); background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
.container { width: 90%; max-width: 1100px; margin: auto; }
section { padding: clamp(80px, 10vw, 120px) 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--font-primary); font-weight: 800; color: var(--primary-color); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(2.2rem, 5vw, 3rem); text-align: center; margin-bottom: 20px; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 60px auto; color: var(--secondary-color); }

/* Header & Nav */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; background: rgba(17, 24, 39, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: padding 0.3s ease; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; margin: auto;}
.logo { font-family: var(--font-primary); font-size: 1.6rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.main-nav ul { display: flex; list-style: none; gap: 10px; }
.main-nav a { position: relative; text-decoration: none; color: var(--primary-color); font-weight: 600; padding: 10px 15px; transition: color 0.3s ease; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.main-nav a:hover { color: var(--accent-color); }
.main-nav a:hover::after { width: calc(100% - 30px); }

/* Mobile Navigation */
.mobile-nav-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
@media (max-width: 768px) {
    .main-nav { position: fixed; z-index: 1000; inset: 0 0 0 30%; background: var(--bg-light); flex-direction: column; padding: min(20rem, 15vh) 2rem; transform: translateX(100%); transition: transform 350ms ease-out; }
    .main-nav[data-visible="true"] { transform: translateX(0%); }
    .main-nav ul { flex-direction: column; align-items: center; gap: 30px; }
    .main-nav a { font-size: 1.5rem; }
    .mobile-nav-toggle { display: block; position: fixed; z-index: 2000; top: 1.5rem; right: 2rem; background: transparent; border: 0; width: 2rem; height: 2rem; aspect-ratio: 1; cursor: pointer; }
    .mobile-nav-toggle::before, .mobile-nav-toggle::after { content: ''; position: absolute; width: 100%; height: 3px; background: var(--primary-color); transition: transform 350ms ease-out, opacity 350ms ease-out; }
    .mobile-nav-toggle::before { top: 25%; left: 0; }
    .mobile-nav-toggle::after { bottom: 25%; left: 0; }
    .mobile-nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Hero */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; color: var(--primary-color); text-align: center; padding: 0 5%; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(17,24,39,1) 0%, rgba(17,24,39,0.6) 50%, rgba(17,24,39,1) 100%); z-index: -1; }
#bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -2; object-fit: cover; opacity: 0.3; }
.hero p { font-size: 1.2rem; margin-top: 20px; font-weight: 400; color: var(--secondary-color); }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 2px; height: 50px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.scroll-indicator::before { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--primary-color); animation: scroll-anim 2s infinite cubic-bezier(0.76, 0, 0.24, 1); }
@keyframes scroll-anim { 0% { top: -100%; } 50%, 100% { top: 100%; } }

/* Services */
.services-section { background-color: var(--bg-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }
.service-card-premium { position: relative; border-radius: 15px; background: var(--bg-light); padding: 40px; text-align: center; transform-style: preserve-3d; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card-premium::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 15px; border: 2px solid transparent; transition: border-color 0.3s ease; pointer-events: none; }
.service-card-premium:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.service-card-premium:hover::before { border-color: var(--accent-color); }
.card-content { transform: translateZ(40px); }
.card-content h3 { font-size: 1.6rem; margin-bottom: 20px; }

/* Process */
.process-section { background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-light) 100%); }
.process-wrapper { position: relative; max-width: 800px; margin: auto; }
.timeline { position: absolute; left: 20px; top: 10px; bottom: 10px; width: 4px; background: var(--bg-light); border-radius: 2px; }
.timeline-progress { width: 100%; height: 0%; background: var(--accent-color); border-radius: 2px; }
.process-step { padding-left: 80px; margin-bottom: 60px; position: relative; }
.process-step::before { content: ''; z-index: 1; position: absolute; left: 8px; top: 8px; width: 25px; height: 25px; background: var(--bg-color); border: 4px solid var(--bg-light); border-radius: 50%; transition: border-color 0.4s ease; }
.process-step.is-visible::before { border-color: var(--accent-color); }
.step-number { font-size: 1.2rem; font-weight: 700; color: var(--accent-color); margin-bottom: 10px; }
.step-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: var(--primary-color); }

/* Proof */
.proof-section { background-color: var(--bg-light); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.stat-item .counter { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800; color: var(--accent-color); display: inline-block; }
.stat-item .label { display: block; font-size: 1.1rem; margin-top: 10px; color: var(--secondary-color); }

/* SEO Section */
.seo-section { background-color: var(--bg-color); }
.seo-content { max-width: 800px; margin: auto; }
.seo-content p { margin-bottom: 1.5rem; line-height: 1.8; }
.seo-content strong { color: var(--accent-color); font-weight: 700; }

/* Contact Section */
.contact-section { background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-color) 100%); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-top: 40px; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 30px; }
.contact-info ul { list-style: none; }
.contact-info li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-info a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
.contact-info a:hover { color: var(--accent-color); }
.contact-info span { color: var(--accent-color); font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--secondary-color); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background: var(--bg-color); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--primary-color); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3); }
.cta-button { display: inline-block; width: 100%; padding: 18px 38px; text-decoration: none; border: none; border-radius: 8px; font-weight: 700; font-family: var(--font-primary); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; background-color: var(--accent-color); color: var(--bg-color); cursor: pointer; font-size: 1rem; }
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(20, 184, 166, 0.3); background-color: var(--accent-hover); }

/* Footer */
.main-footer { background-color: var(--bg-light); color: var(--secondary-color); padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1200px; margin: auto; }
.crafted-by a { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.crafted-by a:hover { color: var(--accent-color); }

/* Reveal animations */
.reveal-element, .reveal-text { opacity: 0; }

/* Responsy */
@media (max-width: 768px) {
    .footer-container, .contact-wrapper { flex-direction: column; gap: 40px; }
    .process-wrapper { padding-left: 0; }
    .timeline { left: 0; }
    .process-step { padding-left: 40px; }
    .process-step::before { left: -11px; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- Cookie banner --- */
.cookie-banner{
  position: fixed; inset: auto 20px 20px 20px; z-index: 3000;
  background: var(--bg-light); color: var(--secondary-color);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35); padding: 18px; max-width: 720px;
}
.cookie-inner{ display: grid; gap: 14px; align-items: center; grid-template-columns: 1fr auto; }
.cookie-inner p{ margin: 0; line-height: 1.6; }
.cookie-inner a{ color: var(--primary-color); text-decoration: underline; }
.cookie-actions{ display: flex; gap: 10px; }
.btn-cookie{
  background: transparent; border: 1px solid rgba(255,255,255,.15);
  color: var(--primary-color); font-weight: 700; font-family: var(--font-primary);
  border-radius: 8px; padding: 10px 16px; cursor: pointer; transition: .25s;
}
.btn-cookie.accept{ background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }
.btn-cookie:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(20,184,166,.25); }
@media (max-width: 640px){
  .cookie-inner{ grid-template-columns: 1fr; }
  .cookie-banner{ left: 10px; right: 10px; bottom: 10px; }
}

/* --- Sekcja SEO pod formularzem --- */
.contact-seo-section{ padding-top: 0; padding-bottom: clamp(60px, 8vw, 100px); }
.contact-seo-grid{ display: grid; gap: 30px; grid-template-columns: repeat(2,1fr); }
.seo-card{
  background: var(--bg-light); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.seo-card h3{ font-size: 1.4rem; margin-bottom: 12px; }
.seo-card p{ line-height: 1.8; margin-bottom: 14px; }
.seo-bullets{ list-style: none; margin: 10px 0 0; padding: 0; }
.seo-bullets li{
  position: relative; padding-left: 28px; margin: 8px 0; color: var(--secondary-color);
}
.seo-bullets li::before{
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-color); font-weight: 800;
}
@media (max-width: 900px){ .contact-seo-grid{ grid-template-columns: 1fr; } }

/* --- Status formularza --- */
.form-status{ margin-top: 12px; min-height: 22px; opacity: 0; transition: opacity .25s ease; }
.form-status.show{ opacity: 1; }
.form-status.ok{ color: #a7f3d0; }
.form-status.err{ color: #fecaca; }
/* Zgody / klauzula RODO */
.consents{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
}
.chk{
  display: flex; gap: 10px; align-items: flex-start;
  margin: 10px 0; line-height: 1.6;
}
.chk input[type="checkbox"]{
  margin-top: 4px; transform: scale(1.05);
  accent-color: var(--accent-color);
}
.chk a{ color: var(--primary-color); text-decoration: underline; }
.rodo-note{
  margin-top: 8px; font-size: .95rem; color: var(--secondary-color);
}
.rodo-note p{ margin: 6px 0; }
