:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --surface: #14141c;
  --bg-card: rgba(201,169,110,0.05);
  --border: rgba(201,169,110,0.14);
  --border-hover: rgba(201,169,110,0.32);
  --text: #f0ebe3;
  --text-muted: #9a958d;
  --accent: #c9a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', sans-serif;
  --max: 760px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent);
  padding: 0.55rem 1.3rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: transparent; color: var(--accent); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-spacer { height: 4.5rem; }

.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-label {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500; line-height: 1.2;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero-headline em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin-bottom: 2.5rem; }

.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: var(--bg); }

.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.sec-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500; line-height: 1.25;
  color: var(--text); margin-bottom: 1.25rem;
}
.sec-body { color: var(--text-muted); max-width: 640px; margin-bottom: 2rem; }

.list-label {
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.steps { list-style: none; counter-reset: s; margin-top: 1.5rem; }
.steps li {
  counter-increment: s;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  color: var(--text-muted);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.25rem;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--accent);
}
.steps li strong { color: var(--text); display: block; margin-bottom: 0.3rem; }

.audience-list { list-style: none; margin-top: 0.5rem; }
.audience-list li {
  padding: 1rem 0 1rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
}
.audience-list li:last-child { border-bottom: 1px solid var(--border); }
.audience-list li::before { content: '\203A'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-display); }
.audience-list li strong { color: var(--text); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-top: 1.5rem; background: var(--border); }
.result-card { background: var(--bg); padding: 1.75rem 1.5rem; }
.result-number { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent); margin-bottom: 0.4rem; }
.result-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.note-box {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.note-box strong { color: var(--text); }

.highlight-box {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.contact-section { padding: 4rem 0 3rem; }
.contact-headline { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.contact-body { color: var(--text-muted); max-width: 560px; margin-bottom: 1.5rem; }
.contact-email { display: inline-block; font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); margin-bottom: 2rem; border-bottom: 1px solid rgba(201,169,110,0.3); padding-bottom: 0.1rem; }

.contact-form { margin-bottom: 1.5rem; max-width: 560px; }
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-actions { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.5em; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #d47a7a; }
.contact-fallback { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.contact-fallback a { color: var(--accent); border-bottom: 1px solid rgba(201,169,110,0.3); padding-bottom: 0.1rem; }

footer.site-footer { padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.78rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-inner a { color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 0.05rem; transition: color 0.2s, border-color 0.2s; }
.footer-inner a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .results { grid-template-columns: 1fr; }
}

/* Article pages (blog post typography) */
.wrap-narrow { max-width: 720px; }

.article { padding: 3.5rem 0 4rem; }
.article-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article-meta .article-updated { color: var(--accent); }
.article-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 2rem;
}

.article-tldr {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.6rem;
  margin: 0 0 2.5rem;
  border-radius: 2px;
}
.article-tldr-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.article-tldr-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.article-body { color: var(--text); }
.article-body > * + * { margin-top: 1.25em; }
.article-body p { line-height: 1.8; font-size: 1.02rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.article-body ul, .article-body ol {
  margin: 1.25em 0;
  padding-left: 1.5rem;
}
.article-body li { margin-bottom: 0.55em; line-height: 1.7; }
.article-body li::marker { color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { color: var(--accent); font-style: italic; }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.article-body code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface);
  padding: 0.12em 0.4em;
  border-radius: 2px;
  color: var(--accent);
}
.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.article-body pre code { background: transparent; padding: 0; color: var(--text); }

.article-qa, .article-faq {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-qa-headline, .article-faq-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.article-qa-list, .article-faq-list { margin: 0; padding: 0; }
.article-qa-item, .article-faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.article-qa-item:last-child, .article-faq-item:last-child { border-bottom: 0; }
.article-qa-q, .article-faq-q {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.45;
}
.article-qa-q::before, .article-faq-q::before {
  content: 'Q.';
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 0.55rem;
  letter-spacing: 0.04em;
}
.article-qa-a, .article-faq-a {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  padding-left: 1.6rem;
}

.article-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.article-cta .btn-secondary {
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.article-cta .btn-secondary:hover {
  background: var(--text-muted);
  color: var(--bg);
}

.post-list-implementation {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ARTICLE HERO IMAGE (top of blog post) */
.article-hero {
  margin: 0 0 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* DRAFT RIBBON (dev-only visual cue on blog article pages) */
.draft-ribbon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  background: rgba(201, 169, 110, 0.08);
  border-radius: 4px;
  font-family: var(--font-body);
  color: var(--text);
}
.draft-ribbon-label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.draft-ribbon-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* BLOG INDEX GRID */
.section-blog-list .blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .section-blog-list .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1080px) {
  .section-blog-list .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .article { padding: 2rem 0 2.5rem; }
  .article-hero { margin-bottom: 1.5rem; border-radius: 3px; }
  .article-tldr { padding: 1.1rem 1.2rem; }
  .article-body h2 { margin-top: 2.2rem; font-size: 1.4rem; }
  .article-qa-headline, .article-faq-headline { font-size: 1.3rem; }
  .article-qa-a, .article-faq-a { padding-left: 1.2rem; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

/* Implementations page (wdrozenia) */
.wrap-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.implementation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.implementation-card:hover {
  border-color: rgba(201, 169, 110, 0.35);
  transform: translateY(-2px);
}
.implementation-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.implementation-card-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 169, 110, 0.35);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.implementation-card-badge[data-status="planned"] {
  color: var(--text-muted);
  border-color: rgba(154, 149, 141, 0.35);
}
.implementation-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
  min-height: 2.5em;
}
.implementation-card-oneline {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  min-height: 4.65em;
}
.implementation-card-bestfor {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.85rem;
  background: rgba(201,169,110,0.06);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.implementation-card-bestfor-label {
  display: inline;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-right: 0.35rem;
}
.implementation-card-bestfor-body {
  color: var(--text-muted);
}
.implementation-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.9rem;
}
.implementation-card-how p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.implementation-card-how p:last-child {
  margin-bottom: 0;
}
.implementation-embed {
  margin-top: 0.6rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-subtle);
  border-left: 2px solid var(--accent);
  border-radius: 3px;
}
.implementation-embed-link {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.implementation-embed-link:hover {
  text-decoration: underline;
}
.implementation-card-foot {
  margin-top: auto;
  padding-top: 0.25rem;
}
.implementation-card-foot .btn {
  font-size: 0.72rem;
  padding: 0.65rem 1.3rem;
}

@media (max-width: 600px) {
  .implementation-grid { gap: 1.25rem; }
  .implementation-card { padding: 1.4rem 1.3rem 1.3rem; }
  .implementation-card-title { font-size: 1.3rem; min-height: 0; }
  .implementation-card-oneline { min-height: 0; }
}

/* Testimonials section (wdrozenia) */
.testimonials-section {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}
.testimonials-head {
  margin-bottom: 1.75rem;
}
.testimonials-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0.4rem 0 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}
.testimonial-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.testimonial-quote {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 0.95rem;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}
.testimonial-name {
  color: var(--text);
  font-weight: 500;
}
.testimonial-role {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .testimonials-headline { font-size: 1.55rem; }
  .testimonials-grid { gap: 1.1rem; }
  .testimonial { padding: 1.25rem 1.2rem 1.15rem; }
}
