/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0E0F11;
  --bg-2:      #141619;
  --bg-3:      #1C1E22;
  --border:    #2A2D33;
  --text:      #F0EEE9;
  --text-muted:#8B8E96;
  --accent:    #C8F135;
  --accent-dim:#a8ce25;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius:    10px;
  --radius-lg: 16px;
  --max-w:     1120px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #0E0F11;
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-3);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: rgba(14,15,17,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-rob { color: var(--text); }
.logo-seo { color: var(--accent); }
.logo-dot { color: var(--accent); opacity: 0.5; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--text); }
.nav-list .nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.nav-list .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== SECTION COMMON ===== */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.section-header {
  margin-bottom: 56px;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,241,53,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.service-card {
  padding: 36px 32px;
  background: var(--bg-2);
  border-left: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.service-card:hover {
  border-left-color: var(--accent);
  background: var(--bg-3);
}

.service-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.service-card:hover .service-icon { border-color: var(--accent); }

.service-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-badge {
  width: 200px; height: 200px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.about-badge::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.about-badge-num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-badge-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-content .btn { margin-top: 12px; }

/* ===== BLOG PREVIEW ===== */
.blog-preview {
  padding: 100px 0;
  background: var(--bg-2);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}
.post-card {
  background: var(--bg-2);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition);
}
.post-card:hover { background: var(--bg-3); }
.post-card-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.post-date-day {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.post-date-rest {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}
.post-read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition);
}
.post-read-more:hover { opacity: 0.8; }
.no-posts { color: var(--text-muted); }
.no-posts a { color: var(--accent); }
.blog-cta { text-align: center; }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  margin-top: 16px;
}
.contact-details { margin-top: 32px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}
.contact-link:hover { opacity: 0.8; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: rgba(200,241,53,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.form-status.error {
  background: rgba(207,46,46,0.1);
  border: 1px solid #cf2e2e;
  color: #ff8080;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* Honeypot - ukryte wizualnie, ale obecne w DOM (nie display:none, żeby boty nadal je "widziały") */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* ===== BLOG PAGE ===== */
.page-main { padding-top: 120px; padding-bottom: 80px; }
.page-title-block { margin-bottom: 56px; }
.page-subtitle { color: var(--text-muted); max-width: 540px; font-size: 16px; }

.blog-grid { display: flex; flex-direction: column; gap: 2px; }
.blog-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--transition);
}
.blog-card:hover { background: transparent; }
.blog-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.blog-date-day {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.blog-date-month {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.blog-date-year {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}
.blog-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-card-title { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 12px; align-items: center; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { border-color: var(--accent); color: var(--accent); }

.no-posts-block { text-align: center; padding: 80px 0; color: var(--text-muted); }
.no-posts-block .btn { margin-top: 20px; }

/* ===== SINGLE POST ===== */
.single-container { max-width: 760px; }
.single-post { padding-top: 100px; padding-bottom: 80px; }
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }
.single-title {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 12px;
}
.single-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.meta-sep { opacity: 0.4; }
.single-content h2 { font-size: 24px; font-weight: 600; margin: 36px 0 14px; }
.single-content h3 { font-size: 19px; font-weight: 600; margin: 28px 0 10px; }
.single-content p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.75; }
.single-content ul, .single-content ol { color: var(--text-muted); padding-left: 24px; margin-bottom: 18px; }
.single-content li { margin-bottom: 6px; line-height: 1.65; }
.single-content a { color: var(--accent); border-bottom: 1px solid rgba(200,241,53,0.3); }
.single-content a:hover { border-bottom-color: var(--accent); }
.single-content code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  color: var(--accent);
}
.single-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
}
.single-footer { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.post-nav a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.post-nav a:hover { color: var(--accent); }
.post-cta {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.post-cta p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    opacity: 0;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 32px; }
  .blog-card { grid-template-columns: 1fr; gap: 8px; }
  .blog-card-date { flex-direction: row; align-items: baseline; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
