/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; }
h1, h2, h3, h4 { font-family: 'DM Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* === VARIABLES === */
:root {
  --text: #00123E;
  --text-secondary: #64748B;
  --accent: #FD7878;
  --navy: #000754;
  --navy-deep: #00123E;
  --card-shadow: 0 0 0 1px rgba(0,7,84,0.04), 0 4px 12px rgba(0,7,84,0.08), 0 16px 48px rgba(0,7,84,0.16);
  --card-dark-shadow: 0 4px 12px rgba(0,7,84,0.15), 0 16px 48px rgba(0,7,84,0.35);
  --radius: 20px;
  --max-width: 1280px;
}

/* === TYPOGRAPHY === */
h1 { font-size: clamp(52px, 6vw, 100px); font-weight: 900; line-height: 1.1; color: var(--text); }
h2 { font-size: 54px; font-weight: 700; color: var(--text); }
h3 { font-size: 26px; font-weight: 700; color: var(--text); }
p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); }
.highlight { color: var(--accent); }

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(0,18,62,0.12);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,0.6);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(253,120,120,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253,120,120,0.4);
}

/* === LANGUAGE TOGGLE === */
html[lang="en"] [data-lang="pl"] { display: none !important; }
html[lang="pl"] [data-lang="en"] { display: none !important; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-logo {
  width: 140px;
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  cursor: pointer;
}
.lang-option { transition: color 0.2s; }
.lang-option.active { color: var(--text); font-weight: 600; }
.lang-separator { color: var(--text-secondary); }
.btn-nav {
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--navy); }
.hamburger { display: none; background: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* === HERO === */
.hero {
  background: radial-gradient(ellipse at center, #e7eeff 0%, #fbfcff 70%);
  padding: 100px 80px 80px;
  text-align: center;
  width: 100%;
}
.hero .container { max-width: 100%; padding: 0 clamp(24px, 7vw, 100px); }
.hero-content { max-width: 100%; }
.hero .badge { margin-bottom: 24px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 22px;
  max-width: 720px;
  margin: 0 auto 32px;
}

/* === SECTIONS === */
.section { padding: 80px 24px; }
.section-white { background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header p { margin-top: 12px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-note { text-align: center; margin-top: 32px; font-weight: 500; color: var(--text-secondary); }

/* === CARDS === */
.cards-row {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.card {
  border-radius: var(--radius);
  padding: 32px;
  flex: 1;
}
.card-light {
  background: #fff;
  box-shadow: var(--card-shadow);
}
.card-dark {
  background: var(--navy);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.7); }
.card h3 { margin-bottom: 8px; }

/* === SERVICES === */
.services-row {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.service-card { flex: 1; }
.price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.card-dark .price { color: var(--accent); }

/* === CASE STUDIES === */
.case-block {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.case-block:last-child { margin-bottom: 0; }
.case-block-reverse { flex-direction: row-reverse; }
.case-text { flex: 1; }
.case-text h3 { margin-bottom: 24px; }
.case-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.case-item p { margin: 0; }
.case-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: #eef1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.case-visual { flex: 1; display: flex; justify-content: center; align-items: center; }

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.mockup-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e7eeff 0%, #dce6ff 100%);
  border-radius: var(--radius);
  transform: rotate(4deg);
  z-index: 0;
}
.case-block-reverse .mockup-wrapper::before {
  transform: rotate(-4deg);
}

.case-mockup {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 18, 62, 0.08);
  padding: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.case-mockup:hover {
  transform: scale(1.04);
}
.mockup-header {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  gap: 6px;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mockup-body { padding: 24px; }
.mockup-line {
  height: 10px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 10px;
}
.mockup-line.w40 { width: 40%; }
.mockup-line.w50 { width: 50%; }
.mockup-line.w60 { width: 60%; }
.mockup-line.w70 { width: 70%; }
.mockup-line.w80 { width: 80%; }
.mockup-line.w90 { width: 90%; }
.mockup-spacer { height: 16px; }
.mockup-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 10px;
  vertical-align: middle;
}

/* === FAQ === */
.faq-list { max-width: 100%; }
.faq-item {
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-icon {
  font-size: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 24px 20px; }

/* === CTA === */
.section-cta {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 80px 24px;
  text-align: center;
}
.section-cta h2 {
  color: #fff;
  max-width: 900px;
  margin: 0 auto 16px;
}
.section-cta > .container > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.tally-embed {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}
.cta-sub {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-top: 20px;
}

/* === FOOTER === */
.footer {
  background: var(--navy-deep);
  padding: 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  width: 90px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}
.footer-copy { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-email {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-email:hover { color: rgba(255,255,255,0.7); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .btn-nav { display: none; }

  .hero { padding: 60px 20px 50px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }

  .cards-row, .services-row { flex-direction: column; align-items: center; }
  .card, .service-card { max-width: 100%; }

  .case-block, .case-block-reverse { flex-direction: column; gap: 24px; }
  .case-mockup { max-width: 100%; }
  .case-visual { width: 100%; }

  .footer-content { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-row { flex-wrap: wrap; }
  .service-card { min-width: 280px; }
}
