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

:root {
  --accent: #ea580c;       /* pomarańcz budowlany */
  --accent-dark: #c2410c;
  --ink: #1e293b;          /* slate-800 */
  --ink-soft: #475569;     /* slate-600 */
  --muted: #94a3b8;        /* slate-400 */
  --bg: #ffffff;
  --bg-alt: #f8fafc;       /* slate-50 */
  --bg-dark: #0f172a;      /* slate-900 */
  --border: #e2e8f0;       /* slate-200 */
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --maxw: 1140px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-mark {
  background: var(--accent); color: #fff; font-weight: 800;
  padding: 6px 10px; border-radius: 8px; letter-spacing: .5px; font-size: .95rem;
}
.logo-text { font-size: 1.15rem; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--accent); }
.nav .nav-cta {
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 10px;
}
.nav .nav-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #fff 0%, #fff7ed 100%);
  padding: 72px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); margin: 20px 0 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: var(--ink); border-color: var(--border); }
.hero-actions .btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent); }
.hero-trust { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }

/* ===== IMG PLACEHOLDERS ===== */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #e9eef4 12px, #e9eef4 24px);
  border: 2px dashed var(--muted); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-align: center; font-weight: 600; font-size: .9rem;
}
.img-placeholder small { font-weight: 400; opacity: .8; }
.hero-img { aspect-ratio: 4 / 3; }
.card-img { aspect-ratio: 16 / 10; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ===== GRID / CARDS ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { border: none; border-radius: 0; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; }
.card-body p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-weight: 700; color: var(--accent); }
.badge { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-available { background: #dcfce7; color: #166534; }
.badge-soon { background: #fef3c7; color: #92400e; }

/* ===== PRICING TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.pricing { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.pricing th, .pricing td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing thead th { background: var(--ink); color: #fff; font-weight: 600; }
.pricing tbody tr:last-child td { border-bottom: none; }
.pricing tbody tr:hover { background: var(--bg-alt); }
.pricing td:first-child { font-weight: 600; }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* ===== STEPS ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 24px; text-align: center; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }

/* ===== CONTACT ===== */
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; }
.contact-info > p { color: #cbd5e1; margin-top: 10px; }
.contact-list { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { color: var(--accent); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { color: #fff; font-size: 1.1rem; font-weight: 500; }
.contact-value small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.company-note { color: #94a3b8; font-size: .9rem; border-top: 1px solid #1e293b; padding-top: 20px; }
.company-note strong { color: #cbd5e1; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.contact-form h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.15);
}
.field textarea { resize: vertical; }
.form-hint { margin-top: 12px; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-hint.ok { color: #16a34a; }
.form-hint.err { color: #dc2626; }

/* ===== FOOTER ===== */
.site-footer { background: #0b1120; color: #94a3b8; padding: 48px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.footer-inner p { margin-top: 12px; font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; border-top: 1px solid #1e293b; padding-top: 20px; font-size: .85rem; }

/* ===== STRONA REGULAMINU ===== */
.legal { max-width: 820px; }
.back-link { color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: 20px; }
.back-link:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; }
.legal-note {
  background: #fff7ed; border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 14px 18px; color: var(--ink-soft); font-size: .95rem; margin: 18px 0 30px;
}
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 12px; color: var(--ink); }
.legal ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { color: var(--ink-soft); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-img { max-width: 420px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 20px; }
  .nav .nav-cta { border-radius: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .footer-inner { grid-template-columns: 1fr; }
}
