/* ============================================================
   Forta IT — strona usług IT
   Styl: minimalistyczny, lekki, jeden kolor akcentu
   ============================================================ */

:root {
  --accent: #334155;
  --accent-dark: #1e293b;
  --accent-soft: #f1f5f9;

  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-ink: #b45309;
  --gold-soft: #fef3c7;

  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .16);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; cursor: pointer;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(51,65,85,.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark svg { width: 26px; height: 26px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav .nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 12vw, 120px) 0 clamp(48px, 8vw, 90px);
  background:
    radial-gradient(60% 80% at 85% 0%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero-inner { max-width: 820px; }
.eyebrow { font-family: var(--mono); color: var(--gold-ink); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 680px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-faint); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { font-family: var(--mono); color: var(--gold-ink); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); max-width: 640px; margin-bottom: 44px; font-size: 1.05rem; }
.subsection-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: 72px 0 12px; }

/* ---------- Cards (usługi) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .96rem; }
.card-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

/* ---------- Pricing plans ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.plan-featured {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: scale(1.0);
}
@media (min-width: 880px) { .plan-featured { transform: scale(1.04); } }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #7c2d12; font-size: .76rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 1.35rem; margin-bottom: 6px; }
.plan-desc { color: var(--text-faint); font-size: .92rem; min-height: 42px; margin-bottom: 14px; }
.plan-price { margin-bottom: 22px; }
.plan-price .amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-price .period { color: var(--text-faint); font-size: .92rem; margin-left: 4px; }
.plan-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan-features li { color: var(--text-muted); font-size: .95rem; }
.plan-cta { margin-top: auto; }

.pricing-note { text-align: center; color: var(--text-muted); margin-top: 30px; font-size: .98rem; }
.pricing-note a { color: var(--accent); font-weight: 600; }

/* ---------- Price table ---------- */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th, .price-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--bg-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--accent-soft); }

/* ---------- Cases / portfolio ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.case-head h3 { font-size: 1.1rem; }
.case-tag { background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.case-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; }
.case-meta { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.case-meta li { display: flex; justify-content: space-between; font-size: .92rem; color: var(--text); }
.case-meta li span { color: var(--text-faint); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.about-list li { color: var(--text); font-weight: 500; font-size: .95rem; }
.about-stats { display: grid; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { color: var(--text-faint); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-dark); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--text-muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-text p { color: var(--text-muted); margin-bottom: 24px; }
.contact-nda {
  background: var(--gold-soft); border: 1px solid #fcd995; border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 24px;
}
.contact-text .contact-nda p { color: #7c2d12; font-size: .95rem; margin-bottom: 14px; }
.contact-nda strong { color: #7c2d12; }
.nda-download {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px; transition: background .18s, transform .18s;
}
.nda-download:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }
.nda-download-ico { font-size: 1.05rem; line-height: 1; }
.nda-download-meta { font-weight: 400; opacity: .8; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.contact-list a:hover { color: var(--accent); }
.contact-ico { font-size: 1.15rem; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--text); 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 var(--accent-soft);
}
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 600; }
.form-status.ok { color: #16a34a; }
.form-status.err { color: #dc2626; }
.form-consent { margin-top: 14px; font-size: .82rem; color: var(--text-faint); }
.form-consent a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---------- Strona prawna (polityka prywatności) ---------- */
.legal { padding: clamp(40px, 7vw, 72px) 0 clamp(48px, 8vw, 80px); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .9rem; font-weight: 500; margin-bottom: 18px; }
.legal-back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 6px; }
.legal-updated { color: var(--text-faint); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p { color: var(--text-muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 7px; }
.legal li { color: var(--text-muted); }
.legal a { color: var(--accent); font-weight: 500; text-decoration: underline; }
.legal a:hover { color: var(--gold-ink); }
.legal strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; }
.footer-brand .brand-mark svg { width: 24px; height: 24px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: #cbd5e1; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #64748b; font-size: .85rem; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px 20px;
    gap: 4px; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }

  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .about-list { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-points { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
