
:root {
    --bg: #FAF6ED;
    --text: #2d2d2d;
    --muted: #5a6b5b;
    --accent: #6B8F71;
    --brand: #2E4A3B;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial;
    overflow-x: hidden; /* NO horizontal scroll */
}

a { color: var(--accent); text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { position: sticky; top: 0; background: rgba(250, 246, 237, .9); backdrop-filter: blur(8px); z-index: 100; border-bottom: 1px solid rgba(0,0,0,.05); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 20px; }

.logo { display: flex; align-items: center; }
.logo img { width: 36px; height: 36px; margin-right: 10px; }
.logo .brand { font-weight: 800; font-size: 22px; color: var(--brand); letter-spacing: .06em; }

nav { display: flex; align-items: center; gap: 16px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; }
nav ul li a { font-size: 14px; color: var(--brand); padding: 6px 0; border-bottom: 2px solid transparent; }
nav ul li a:hover { border-bottom-color: rgba(107, 143, 113, .4); }

.btn-ghost { border-radius: 999px; border: 1px solid rgba(107, 143, 113, .5); padding: 8px 16px; font-weight: 600; background: rgba(255,255,255,.8); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.btn-ghost:hover { background: #fff; border-color: var(--accent); }

/* BURGER */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .1); background: #fff; align-items: center; justify-content: center; position: relative; }
.burger .bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.burger .bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); border-radius: 2px; }
.burger .bars span:nth-child(1){ top: 0 } .burger .bars span:nth-child(2){ top: 6px } .burger .bars span:nth-child(3){ bottom: 0 }

/* MENU MOBILNE */
nav ul.mobile { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 16px 30px rgba(0,0,0,.08); padding: 14px 18px; flex-direction: column; gap: 14px; box-sizing: border-box; }
nav ul.mobile li a { display: block; width: 100%; padding: 6px 4px; color: var(--brand) !important; border-bottom: 1px solid rgba(0,0,0,.04); word-wrap: break-word; white-space: normal !important; }
nav ul.mobile.show { display: flex; }

/* SEKCJE */
.section { padding: 40px 0; }

.card { background: var(--card); padding: 26px; border-radius: 18px; box-shadow: var(--shadow); }

/* HERO */
.hero { padding: 32px 0 24px; }
.hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 0; max-width: 1120px; margin: 0 auto; }
.hero-logo { width: 100%; display: flex; justify-content: center; }
.hero-logo img { max-width: 320px; width: 100%; }
.hero-card { background: var(--card); padding: 24px 22px 26px; border-radius: 20px; box-shadow: var(--shadow); max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: 24px; margin: 0 0 10px; color: var(--brand); text-align: left; }
p.lead { font-size: 16px; opacity: .95; margin: 0 0 16px; text-align: left; }

/* HERO – FOTO: TA SAMA SZEROKOŚĆ CO KARTA */
.hero .image-row { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; display: block; }
/* HERO photo width aligned to card content, without white frame */
.hero .image-row {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 0 26px;   /* wyrównanie do treści kart (26px z każdej strony) */
    background: none;
    box-shadow: none;
    border-radius: 0;
}
.hero .img-wrap { border-radius: 18px; overflow: hidden; }

.hero .img-wrap { width: 100%; }
.hero .img-wrap img { width: 100%; height: auto; display: block; }

/* ZDJĘCIA PRZY AKAPITACH */
.image-row { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.card .image-row { margin-left: 0; margin-right: 0; }

.img-wrap { border-radius: 18px; overflow: hidden; background: #ddd; box-shadow: var(--shadow); }
.img-wrap img { width: 100%; height: 260px; object-fit: cover; border-radius: 18px; }

/* RESPONSYWNE */
@media (max-width: 920px) {
  nav ul.desktop { display: none;
  .hero .image-row { padding: 0; max-width: 100%; }
}
  .burger { display: flex; }

  .contact { grid-template-columns: 1fr; }
  header .container { padding: 0 18px; }
  .hero-inner { padding-top: 20px; }
  .card { padding: 20px 12px; }

  .image-row { grid-template-columns: 1fr; }
  .img-wrap, .hero .img-wrap { width: 100%; max-width: 100%; }
  .img-wrap img, .hero .img-wrap img { width: 100%; max-width: 100%; height: auto; }
}

@media (min-width: 921px) {
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-logo img { max-width: 300px; }
}

/* show mobile menu when nav has .open (inline script) */
nav.open ul.mobile { display: flex; }
