/* Brand colors */
:root {
  --ink: #2E383F;         /* główny ciemny */
  --paper: #FEFCFE;       /* jasne tło */
  --accent: #CE875B;      /* akcent */
  --muted: #8a97a1;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 120px; /* Kompensacja dla fixed header z większym logo */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(46,56,63,0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(46,56,63,0.98);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0;
}
.brand { display:flex; align-items: center; gap:.75rem; color:#fff; text-decoration:none; font-weight:700; letter-spacing:.5px;}
.logo { 
  width: 240px; height: auto; border:1px solid rgba(255,255,255,0.2); 
  background: rgba(255,255,255,0.95); 
  padding: 0.5rem; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  
}
.nav-links { display:flex; gap:1rem; align-items:center; }
.nav-links a { color:#fff; text-decoration:none; padding:.5rem .75rem; border-radius:.5rem; }
.nav-links a:hover { background: rgba(255,255,255,0.08); }
.nav-toggle { display:none; background:transparent; border:0; color:#fff; font-size:1.5rem; cursor:pointer; }

/* Buttons */
.btn { display:inline-block; padding:.7rem 1rem; border-radius:.75rem; text-decoration:none; font-weight:600; border:1px solid transparent; }
.btn-primary { background: var(--accent); color:#141618; border-color: var(--accent); }
.btn-outline { background: transparent; color:#fff; border-color: rgba(255,255,255,0.6); }
.btn-lg { padding: .9rem 1.2rem; }

/* Hero */
.hero { position:relative; color:#fff; }
.hero-bg {
  position:absolute; inset:0;
  background:
    radial-gradient(80rem 40rem at 20% -10%, rgba(206,135,91,.35), transparent),
    linear-gradient(180deg, #2E383F 0%, #1f272c 60%);
  z-index:-1;
}
.hero-inner { display:grid; grid-template-columns: 1.3fr .7fr; gap:2rem; padding: 5.5rem 0 4rem; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); margin:.25rem 0 .5rem;}
.hero p { color: #e7eaec; margin: 0 0 1.25rem; }
.accent { color: var(--accent); }
.hero-card { align-self:center; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); padding:1.25rem; border-radius:1rem; }
.ticks { list-style:none; padding:0; margin:0; }
.ticks li { padding-left:1.4rem; position:relative; margin:.35rem 0; }
.ticks li::before { content:'✔'; position:absolute; left:0; color: var(--accent); }

/* Sections */
.section { padding: 4rem 0; scroll-margin-top: 120px; }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0 0 1rem; }

/* Specific section offsets for fixed header */
#top, #funkcje, #cennik, #demo, #o-nas, #kontakt {
  scroll-margin-top: 120px;
}

/* Hero section specific offset */
.hero {
  scroll-margin-top: 120px;
}

.section-alt { background: #f7f8f9; }

.grid { display:grid; gap:1.25rem; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { background:#fff; border:1px solid #e3e6e8; border-radius:1rem; padding:1rem; }
.card h3 { margin-top:0; }
.card ul { padding-left:1.1rem; }

.steps { counter-reset: step; display:flex; flex-wrap:wrap; gap:1rem; padding-left:0; }
.steps li { list-style:none; background:#fff; border:1px solid #e3e6e8; border-radius:.9rem; padding:.9rem 1rem; flex: 1 1 240px; }
.steps li span { display:inline-grid; place-items:center; width:1.6rem; height:1.6rem; background:var(--accent); color:#141618; border-radius:.4rem; font-weight:700; margin-right:.5rem; }

/* Portfolio */
.portfolio { grid-template-columns: repeat(4, 1fr); }
.tile { margin:0; border-radius:1rem; overflow:hidden; border:1px solid #e3e6e8; background:#fff; }
.tile .ph { height:160px; background: linear-gradient(135deg, #d8dde1, #eef1f4); }
.tile figcaption { padding:.75rem 1rem; font-weight:600; }

/* About */
.about { display:grid; grid-template-columns: 1.2fr .8fr; gap:2rem; align-items:center; }
.about-logo { width:100%; max-width: 260px; justify-self:center; border-radius:.75rem; border:1px solid #e3e6e8; background:#fff; padding:.5rem; }

/* CTA */
.cta { background: #2E383F; color:#fff; }
.cta-inner { text-align:center; padding:3rem 0; }
.cta p { color:#d7dde2; }

/* Contact */
.contact { display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:start; }

.contact-brand {
  display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0;
}

.contact-logo {
  width: 240px; height: auto; border-radius: 1rem; 
  background: #fff; padding: 1rem; border: 1px solid #e3e6e8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-info h3 {
  margin: 0 0 0.5rem; color: var(--ink); font-size: 1.3rem; font-weight: 700;
}

.contact-info p {
  margin: 0; color: var(--muted); font-size: 0.95rem;
}

.contact-actions {
  display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0;
}

.contact-btn {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem;
  background: #fff; border: 2px solid #e3e6e8; border-radius: 1rem;
  text-decoration: none; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.email-btn:hover { border-color: #4CAF50; }
.phone-btn:hover { border-color: #2196F3; }

.btn-icon {
  font-size: 1.5rem; width: 2rem; text-align: center;
}

.btn-text {
  display: flex; flex-direction: column; gap: 0.25rem;
}

.btn-text strong {
  color: var(--ink); font-size: 1rem; font-weight: 600;
}

.btn-text small {
  color: var(--muted); font-size: 0.85rem;
}

.contact-description {
  color: var(--muted); line-height: 1.6; margin: 1.5rem 0 0;
  padding: 1rem; background: #f8f9fa; border-radius: 0.75rem; border-left: 4px solid var(--accent);
}

.contact-visual {
  display: flex; justify-content: center; align-items: center;
}

.contact-image {
  width: 100%; max-width: 400px; height: auto; border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact-visual { order: -1; margin-bottom: 2rem; }
  .contact-actions { flex-direction: column; }
  .contact-logo { width: 180px; }
}

@media (max-width: 480px) {
  .contact-logo { width: 150px; }
  .contact-brand { flex-direction: column; text-align: center; gap: 1.5rem; }
}

/* --- CONTACT DETAILS --- */
.contact-details {
  background: #f8f9fa; border-radius: 1rem; padding: 2rem; border: 1px solid #e3e6e8;
}

.contact-details h3 {
  margin: 0 0 1.5rem; color: var(--ink); font-size: 1.3rem; text-align: center;
}

.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem;
}

.contact-item {
  background: #fff; border: 1px solid #e3e6e8; border-radius: 0.75rem; 
  padding: 1.25rem; text-align: center; transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-item h4 {
  margin: 0 0 1rem; color: var(--ink); font-size: 1.1rem; font-weight: 600;
}

.contact-item p {
  margin: 0.5rem 0; font-size: 0.95rem;
}

.contact-item a {
  color: var(--accent); text-decoration: none; font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item small {
  color: var(--muted); font-size: 0.85rem; line-height: 1.4; display: block; margin-top: 0.75rem;
}

.contact-hours {
  background: #fff; border: 1px solid #e3e6e8; border-radius: 0.75rem; 
  padding: 1.5rem; text-align: center;
}

.contact-hours h4 {
  margin: 0 0 1rem; color: var(--ink); font-size: 1.1rem; font-weight: 600;
}

.contact-hours p {
  margin: 0.5rem 0; font-size: 0.95rem; color: var(--muted);
}

.contact-hours strong {
  color: var(--ink); font-weight: 600;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-details { padding: 1.5rem; }
}

/* --- RODO CLAUSE --- */
.rodo-clause {
  background: #f8f9fa; border: 1px solid #e3e6e8; border-radius: 0.75rem;
  padding: 1.25rem; margin: 1rem 0; font-size: 0.9rem; line-height: 1.5;
}

.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
  margin: 0; padding: 0; font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  margin: 0; flex-shrink: 0; width: 18px; height: 18px;
  accent-color: var(--accent); cursor: pointer;
}

.checkbox-text {
  color: var(--muted); line-height: 1.5; flex: 1;
}

.checkbox-text strong {
  color: var(--ink); font-weight: 600;
}

.checkbox-text a {
  color: var(--accent); text-decoration: none; font-weight: 500;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* Focus styles for accessibility */
.checkbox-label:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 0.25rem;
}

/* Footer */
.footer { background:#111518; color:#cbd3d9; padding:2rem 0; }
.footer-inner { display:flex; flex-direction:column; gap:1.5rem; }
.footer-content { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:1.5rem; }
.footer-legal { flex:1; min-width:300px; }
.footer-links { display:flex; gap:1rem; flex-wrap:wrap; }
.footer a { color:#cbd3d9; text-decoration:none; }
.footer a:hover { text-decoration:underline; }

.company-info { margin-top:1rem; font-size:0.9rem; line-height:1.4; }
.company-info p { margin:0.5rem 0; }
.company-info strong { color:#fff; font-weight:600; }
.company-info a { color:#cbd3d9; }
.company-info a:hover { color:#fff; text-decoration:underline; }

@media (max-width: 720px) {
  .footer-content { flex-direction:column; }
  .footer-links { justify-content:center; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display:block; }
  .nav-links { position: fixed; inset: 100px 0 auto 0; background:#2E383F; padding: .75rem; display:none; flex-direction:column; z-index: 999; }
  .nav-links.open { display:flex; }
  .logo { width: 180px; padding: 0.4rem; }
  body { padding-top: 100px; }
  
  /* Adjust scroll margins for mobile */
  .section { scroll-margin-top: 100px; }
  #top, #funkcje, #cennik, #demo, #o-nas, #kontakt {
    scroll-margin-top: 100px;
  }
  .hero { scroll-margin-top: 100px; }
}


/* --- ICON CARDS --- */
.card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,21,24,.08); }

.card-icon {
  width: 42px; height: 42px; display:grid; place-items:center;
  border-radius: .8rem; background: #fff;
  border: 1px solid #e3e6e8; color: var(--accent);
  margin-bottom: .6rem;
  transition: transform .35s ease;
}

.card-icon img {
  width: 28px; height: 28px; object-fit: contain;
}

.card-image {
  width: 100%; margin-bottom: 1rem; border-radius: .75rem; overflow: hidden;
}

.card-image img {
  width: 100%; height: auto; display: block; object-fit: cover;
}
.card:hover .card-icon { transform: rotate(-4deg) scale(1.05); }

/* --- SCROLL REVEAL (początkowy stan) --- */
[data-animate] {
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .5s ease, transform .6s cubic-bezier(.21,.8,.32,1);
}
[data-animate].in { opacity: 1; transform: translateY(0) scale(1); }

/* --- HERO KPI --- */
.hero-kpi {
  display:flex; gap:1.25rem; flex-wrap:wrap; margin-top: .75rem;
}
.kpi { display:grid; gap:.1rem; min-width: 140px; }
.kpi-number { font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1; }
.kpi-suffix { font-weight: 800; margin-left: .25rem; }
.kpi-label { color:#d4dbe1; font-size:.92rem; }

/* --- FAQ STYLES --- */
.faq-container {
  max-width: 800px; margin: 0 auto;
}

.faq-item {
  background: #fff; border: 1px solid #e3e6e8; border-radius: 1rem; 
  margin-bottom: 1rem; overflow: hidden; transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px);
}

.faq-item h3 {
  margin: 0; padding: 1.25rem 1.5rem; background: #f8f9fa; 
  border-bottom: 1px solid #e3e6e8; cursor: pointer; 
  position: relative; font-size: 1.1rem; font-weight: 600;
  transition: background-color 0.3s ease;
}

.faq-item h3:hover {
  background: #f1f3f4;
}

.faq-item h3::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%; 
  transform: translateY(-50%); font-size: 1.5rem; color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem; max-height: 0; overflow: hidden; 
  transition: all 0.3s ease; opacity: 0;
}

.faq-item.active .faq-answer {
  padding: 1.5rem; max-height: 500px; opacity: 1;
}

.faq-answer p {
  margin: 0 0 1rem; line-height: 1.6;
}

.faq-answer ul {
  margin: 0 0 1rem; padding-left: 1.5rem;
}

.faq-answer li {
  margin: 0.5rem 0; line-height: 1.5;
}

/* --- PRIVACY POLICY STYLES --- */
.privacy-content {
  max-width: 800px; margin: 0 auto;
}

.privacy-intro {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; 
  padding: 1.5rem; background: #f8f9fa; border-radius: 1rem; 
  border-left: 4px solid var(--accent);
}

.privacy-section {
  margin-bottom: 2.5rem; padding-bottom: 2rem; 
  border-bottom: 1px solid #e3e6e8;
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-section h3 {
  color: var(--ink); font-size: 1.3rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.privacy-section p {
  margin-bottom: 1rem; line-height: 1.7;
}

.privacy-section ul {
  margin: 1rem 0; padding-left: 1.5rem;
}

.privacy-section li {
  margin: 0.5rem 0; line-height: 1.6;
}

.contact-info {
  background: #f8f9fa; padding: 1.5rem; border-radius: 0.75rem;
  margin: 1rem 0;
}

.contact-info p {
  margin: 0.5rem 0; font-weight: 500;
}

.contact-info a {
  color: var(--accent); text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.last-updated {
  font-style: italic; color: var(--muted); 
  background: #f1f3f4; padding: 1rem; border-radius: 0.5rem;
  margin-top: 1.5rem !important;
}


/* --- PRICING --- */
.pricing-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: #fff;
  border: 1px solid #e3e6e8;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(17, 21, 24, .08);
}

.pricing-card h3 {
  margin: 0 0 .5rem;
}

.pricing-card .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .25rem;
}
.pricing-card .unit {
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
  display: block;
}
.pricing-card .billing {
  font-size: .92rem;
  margin: 0 0 1rem;
  color: var(--muted);
}
.pricing-card .heading {
  font-size: .99rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 900;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.pricing-card ul li {
  padding-left: 1.3rem;
  margin: .35rem 0;
  position: relative;
}
.pricing-card ul li::before {
  content: "✔";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.pricing-card .btn {
  align-self: flex-start;
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  position: relative;
}
.pricing-card.popular .badge {
  position: absolute;
  top: -12px; right: 12px;
  background: var(--accent);
  color: #141618;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: .4rem;
  letter-spacing: .3px;
}


#uslugi-dodatkowe {
  background: #f9fafb;
}
#uslugi-dodatkowe h2 {
  text-align: center;
  margin-bottom: 2rem;
}
