*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }

:root {
  --green:  #1e4d35;
  --gold:   #b8973a;
  --light:  #f9f7f4;
  --dark:   #111827;
  --gray:   #6b7280;
  --border: #e5e7eb;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}

/* ── Lang toggle ── */
.lang-bar {
  position: fixed; top: 0; right: 0; z-index: 100;
  display: flex;
}
.lang-btn {
  padding: 10px 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border: none; border-bottom: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  cursor: pointer; color: var(--gray); transition: all .2s;
}
.lang-btn.active { background: var(--green); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--green); }

[data-en] { display: none !important; }
body.en [data-pl] { display: none !important; }
body.en [data-en] { display: revert !important; }
/* li i button mają display: flex/inline-flex z klasy — revert nie wystarczy */
body.en li[data-en]     { display: flex !important; }
body.en button[data-en] { display: inline-flex !important; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green) 0%, #2d6a4f 60%, #1a3d2b 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-eyebrow-link {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; text-decoration: none;
  transition: opacity .2s;
}
.hero-eyebrow-link:hover { opacity: .75; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff; line-height: 1.15; margin-bottom: 24px;
  max-width: 800px;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.75);
  max-width: 600px; margin-bottom: 48px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff;
  padding: 16px 36px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(184,151,58,.4);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(184,151,58,.5); }
.hero-scroll {
  position: absolute; bottom: 32px;
  color: rgba(255,255,255,.4); font-size: .8rem; letter-spacing: .1em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; background: none; border: none;
  transition: color .2s;
}
.hero-scroll:hover { color: rgba(255,255,255,.7); }
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
}

/* ── Contact modal ── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.contact-modal {
  background: #fff; border-radius: 20px;
  padding: 48px 40px; max-width: 440px; width: 90%;
  position: relative; text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,.25);
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 1.4rem;
  color: var(--gray); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--dark); }
.modal-logo {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--green); margin-bottom: 8px;
}
.modal-sub { font-size: .9rem; color: var(--gray); margin-bottom: 32px; }
.modal-contact-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px; margin-bottom: 12px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform .15s, box-shadow .15s;
}
.modal-contact-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.modal-contact-item.phone {
  background: var(--green); color: #fff;
  font-size: 1.2rem; letter-spacing: .04em;
}
.modal-contact-item.email {
  background: var(--light); color: var(--green);
  border: 1.5px solid var(--border);
}
.modal-contact-item.web {
  background: var(--light); color: var(--gray);
  border: 1.5px solid var(--border); font-size: .9rem;
}

/* ── Section ── */
section { padding: 100px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2; margin-bottom: 20px;
}
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 600px; }

/* ── Insight strip ── */
.insight-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 48px; margin-bottom: 60px;
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
}
.insight-item {
  padding: 32px 28px;
  border-right: 1.5px solid var(--border);
}
.insight-item:last-child { border-right: none; }
.insight-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 14px;
}
.insight-warn .insight-num { color: #dc2626; }
.insight-loss .insight-num { color: #d97706; }
.insight-fix  .insight-num { color: var(--green); }
.insight-fix { background: #f0fdf4; }
.insight-item strong { display: block; font-size: .98rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.insight-item p { font-size: .9rem; color: var(--gray); line-height: 1.7; }

/* ── Problem/Solution ── */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 60px;
}
.problem-card {
  padding: 40px; border-radius: 16px;
  border: 1.5px solid var(--border);
}
.problem-card.before { background: #fff5f5; border-color: #fecaca; }
.problem-card.after  { background: #f0fdf4; border-color: #bbf7d0; }
.problem-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.problem-card.before h3 { color: #dc2626; }
.problem-card.after  h3 { color: #16a34a; }
.problem-card ul { list-style: none; }
.problem-card ul li {
  padding: 8px 0; font-size: .95rem; color: #374151;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex; align-items: flex-start; gap: 10px;
}
.problem-card ul li:last-child { border-bottom: none; }
.problem-card ul li::before { flex-shrink: 0; margin-top: 2px; }
.before ul li::before { content: '✕'; color: #dc2626; font-weight: 700; }
.after  ul li::before { content: '✓'; color: #16a34a; font-weight: 700; }

/* ── Features ── */
.features-bg { background: var(--light); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px;
}
.feature-card {
  background: #fff; border-radius: 16px;
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #2d6a4f);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .9rem; color: var(--gray); line-height: 1.6; }

/* ── Screenshots ── */
.screenshots { overflow: hidden; }
.screen-tabs {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.screen-tab {
  padding: 10px 22px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff; font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: all .2s; color: var(--gray);
}
.screen-tab.active { background: var(--green); color: #fff; border-color: var(--green); }
.screen-content { display: none; }
.screen-content.active { display: block; }
.screen-wrap {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
  border: 1px solid var(--border);
}
.screen-wrap img { width: 100%; display: block; }
.screen-caption {
  margin-top: 20px; text-align: center;
  font-size: .88rem; color: var(--gray);
}
.screens-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.screens-grid .screen-wrap { border-radius: 14px; }

/* ── Embed demo ── */
.embed-section { background: var(--green); }
.embed-section .section-label { color: var(--gold); }
.embed-section .section-title { color: #fff; }
.embed-section .section-sub { color: rgba(255,255,255,.7); }
.embed-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-top: 60px;
}
.embed-text { color: rgba(255,255,255,.85); }
.embed-text ul { list-style: none; margin-top: 24px; }
.embed-text ul li {
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: flex-start; gap: 12px; font-size: .95rem;
}
.embed-text ul li span.icon { flex-shrink: 0; font-size: 1.1rem; }
.embed-img .screen-wrap {
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}
.code-block {
  margin-top: 32px; background: rgba(0,0,0,.3);
  border-radius: 12px; padding: 20px 24px;
  font-family: monospace; font-size: .82rem;
  color: #a7f3d0; line-height: 1.8;
}

/* ── Tech stack ── */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px;
}
.tech-pill {
  padding: 8px 20px; border-radius: 50px;
  background: var(--light); border: 1.5px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--dark);
}

/* ── Stats ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 60px;
}
.stat-card {
  text-align: center; padding: 40px 24px;
  border-radius: 16px; background: var(--light);
  border: 1.5px solid var(--border);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; color: var(--green);
  line-height: 1;
}
.stat-label { font-size: .88rem; color: var(--gray); margin-top: 8px; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--green), #1a3d2b);
  text-align: center; padding: 120px 24px;
}
.cta-section .section-title { color: #fff; }
.cta-section p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin: 20px 0 48px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff;
  padding: 18px 48px; border-radius: 50px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 30px rgba(184,151,58,.4);
  transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(184,151,58,.5); }
.cta-email {
  margin-top: 24px; color: rgba(255,255,255,.5); font-size: .9rem;
}
.cta-email a { color: rgba(255,255,255,.8); text-decoration: none; }
.cta-email a:hover { color: #fff; }

/* ── Footer ── */
footer {
  padding: 40px 24px; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--gray); font-size: .85rem;
}
footer a { color: var(--gray); text-decoration: none; }
footer a:hover { color: var(--green); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .problem-grid, .features-grid, .embed-layout, .screens-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .insight-strip { grid-template-columns: 1fr; }
  .insight-item { border-right: none; border-bottom: 1.5px solid var(--border); }
  .insight-item:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  section { padding: 60px 16px; }
  .hero { padding: 70px 20px 90px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: .95rem; }
  .hero-cta { padding: 14px 28px; font-size: .95rem; }
  .hero-scroll { bottom: 24px; font-size: .72rem; }

  .section-title { font-size: 1.6rem; }
  .section-sub { font-size: .95rem; }

  .insight-item { padding: 24px 20px; }
  .insight-num { font-size: 1.8rem; }

  .problem-card { padding: 28px 20px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 28px 16px; }
  .stat-number { font-size: 2.2rem; }

  .screen-tabs { gap: 6px; }
  .screen-tab { padding: 8px 14px; font-size: .8rem; }
  .screens-grid { grid-template-columns: 1fr; }

  .embed-layout { gap: 40px; }
  .code-block { font-size: .75rem; padding: 16px; white-space: pre-wrap; word-break: break-all; }

  .cta-section { padding: 80px 20px; }
  .cta-btn { padding: 16px 32px; font-size: .95rem; }

  .contact-modal { padding: 36px 24px; }
  .modal-contact-item.phone { font-size: 1.05rem; }

  .lang-bar { top: auto; bottom: 0; right: 0; left: 0; justify-content: center;
    background: rgba(255,255,255,.95); border-top: 1px solid var(--border); }
  .lang-btn { border-bottom: none; border-top: 1px solid var(--border); flex: 1; text-align: center; }
}
