/* ============================================================
   Bednarz — Agencja Sprzątająca · arkusz stylów
   Paleta wg systemu marki: Zieleń, Terakota, Atrament,
   Mięta, Krem, Złoto. Typografia: Newsreader + Mulish.
   ============================================================ */

:root {
  --green: #2e6a4a;
  --green-dark: #1e4d33;
  --green-soft: #5d8a72;
  --terracotta: #b4623c;
  --terracotta-dark: #9a5232;
  --ink: #2a2521;
  --ink-soft: #5c554d;
  --mint: #d9e8dd;
  --mint-soft: #eef5f0;
  --cream: #f6f1e6;
  --cream-card: #fffdf8;
  --gold: #d4a24a;
  --line: #e6ddcc;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(42,37,33,.05), 0 6px 16px rgba(42,37,33,.04);
  --shadow-md: 0 10px 30px rgba(42,37,33,.08);
  --maxw: 1140px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

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

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

/* ---------- Typografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; }
em { font-style: italic; color: var(--green); }
.kicker {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 700; color: var(--terracotta); margin-bottom: 12px;
}
.kicker.on-dark { color: var(--gold); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(46,106,74,.28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; }

.ico { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,241,230,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green); }
.brand-mark { width: 56px; height: 42px; flex: none; color: var(--green); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.brand-sub { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; font-size: .96rem; color: var(--ink); transition: color .2s; }
.main-nav a:not(.btn):hover { color: var(--green); }
.nav-cta { padding: 11px 22px; }

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

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: var(--green-dark); background: var(--mint); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: .92rem; color: var(--ink-soft); font-weight: 600; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { width: 18px; height: 18px; fill: var(--green); }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars strong { color: var(--ink); margin-left: 4px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 6px solid var(--white);
}
.hero-media::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 120px; height: 120px;
  background: var(--mint); border-radius: var(--radius-lg); z-index: -1;
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--green); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .ico { fill: rgba(255,255,255,.9); width: 26px; height: 26px; }
.trust-item div { display: flex; flex-direction: column; line-height: 1.25; }
.trust-item strong { font-size: 1rem; }
.trust-item span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* ---------- Sekcje ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .kicker { display: block; }
.section-intro { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Karty (siatka) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-ico {
  display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center;
  background: var(--mint); color: var(--green); margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; fill: currentColor; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }
.card-link { color: var(--terracotta); font-weight: 700; font-size: .9rem; transition: gap .2s; }
.card-link:hover { color: var(--terracotta-dark); }

/* ---------- O nas ---------- */
.about { background: var(--mint-soft); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.about-media img {
  width: 100%; aspect-ratio: 13/14; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 6px solid var(--white);
}
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.about-copy strong { color: var(--ink); }
.signature { margin-top: 28px; display: flex; flex-direction: column; }
.sig-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--green); }
.sig-role { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* ---------- Kroki ---------- */
.steps { background: var(--green); color: #fff; }
.steps .kicker { color: var(--gold); }
.steps h2 { color: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 12px; line-height: 1; }
.step-card h3 { color: #fff; margin-bottom: 8px; }
.step-card p { color: rgba(255,255,255,.78); font-size: .94rem; }

/* ---------- Opinie ---------- */
.review-card {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.review-card .stars { font-size: 1rem; }
.review-card blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { color: var(--ink); }
.review-card figcaption span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--mint); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--green); line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact { background: var(--green-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact-copy h2 { color: #fff; margin-bottom: 16px; }
.contact-copy > p { color: rgba(255,255,255,.78); margin-bottom: 30px; max-width: 30em; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.contact-ico svg { width: 22px; height: 22px; fill: var(--gold); }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.contact-list a { font-size: 1.2rem; font-weight: 700; font-family: var(--serif); }

.contact-form { background: var(--cream-card); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a89f91; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,106,74,.15);
}
.form-note { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { color: var(--mint); margin-bottom: 16px; }
.footer-brand .brand-mark { color: var(--mint); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-brand p { font-size: .92rem; max-width: 30em; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: .94rem; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 28px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 960px) {
  .cards-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 24px 24px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: flex; }
  .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-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; }
  .about-media { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-grid, .reviews-grid, .steps-grid, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-form { padding: 24px; }
}

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