/* ====== Reset / bazowe ====== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* ====== Header / menu ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo-text { font-weight: 700; }

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu a {
  padding: 8px 10px;
  border-radius: 10px;
}
.menu a:hover { background: #f2f2f2; }

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 600;
  border: 1px solid #111;
}
.btn:hover { opacity: 0.92; }
.btn-ghost {
  background: transparent;
  color: #111;
}
.btn-small { padding: 10px 12px; border-radius: 12px; }
.btn-full { width: 100%; text-align: center; }

/* Hamburger */
.menu-toggle { display: none; }
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid #eee;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #111;
}

/* ====== Hero ====== */
.hero {
  padding: 48px 0 18px;
  background: linear-gradient(180deg, #fafafa, #ffffff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}
.hero-text p { margin: 0 0 16px; color: #333; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  color: #222;
}

.hero-card {
  border: 1px solid #eee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.hero-card-inner { padding: 18px; }
.hero-card h2 { margin: 0 0 6px; font-size: 20px; }
.hero-card p { margin: 0 0 12px; color: #444; }

.quick-form label { display: grid; gap: 6px; margin-bottom: 10px; font-size: 14px; }
.quick-form input, .quick-form select, .contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  outline: none;
  font: inherit;
  background: #fff;
}
.quick-form input:focus, .quick-form select:focus,
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #111;
}
.form-note { margin: 10px 0 0; font-size: 12px; color: #666; }

/* ====== Sekcje ====== */
.section { padding: 54px 0; }
.section-alt { background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 8px; font-size: 28px; }
.section-head p { margin: 0; color: #333; max-width: 70ch; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.card {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: #333; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.feature {
  display: flex;
  gap: 12px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
  flex: 0 0 auto;
}
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: #333; }

/* ====== Galeria ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.gallery-item {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.gallery-item:hover { transform: translateY(-1px); }
.gallery-item:focus { outline: 2px solid #111; outline-offset: 2px; }

.ph {
  height: 190px;
  background: #ddd;
}
.ph1 { background: linear-gradient(135deg, #f2f2f2, #dcdcdc); }
.ph2 { background: linear-gradient(135deg, #e9e9e9, #cfcfcf); }
.ph3 { background: linear-gradient(135deg, #f4f4f4, #d6d6d6); }
.ph4 { background: linear-gradient(135deg, #ededed, #c9c9c9); }
.ph5 { background: linear-gradient(135deg, #f7f7f7, #d2d2d2); }
.ph6 { background: linear-gradient(135deg, #efefef, #d8d8d8); }

.gallery-caption {
  padding: 12px 14px 14px;
  display: grid;
  gap: 2px;
}
.gallery-caption strong { font-size: 15px; }
.gallery-caption span { font-size: 13px; color: #555; }

/* ====== Kontakt ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  margin-top: 18px;
}
.contact-card {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.contact-note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed #ddd;
  background: #fcfcfc;
}
.contact-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form label { display: grid; gap: 6px; margin-bottom: 10px; font-size: 14px; }

/* Mapa */
.map { margin-top: 14px; }
.map-placeholder {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
}
.small { font-size: 12px; color: #666; }

/* ====== Footer ====== */
.footer {
  border-top: 1px solid #eee;
  padding: 18px 0;
  background: #fff;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer p { margin: 0; color: #333; }
.footer-links { display: flex; gap: 12px; }
.footer-links a { color: #333; padding: 6px 8px; border-radius: 10px; }
.footer-links a:hover { background: #f2f2f2; }

/* ====== Modal ====== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-content {
  position: relative;
  width: min(920px, calc(100% - 24px));
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}
.modal-media { background: #111; }
.modal-media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: none;
}
.modal-ph {
  height: min(70vh, 520px);
  background: linear-gradient(135deg, #2b2b2b, #111);
}
.modal-caption {
  padding: 12px 14px;
  color: #222;
  border-top: 1px solid #eee;
}

/* Placeholdery w modalu */
.mph1 { background: linear-gradient(135deg, #4b4b4b, #121212); }
.mph2 { background: linear-gradient(135deg, #3f3f3f, #161616); }
.mph3 { background: linear-gradient(135deg, #555, #101010); }
.mph4 { background: linear-gradient(135deg, #4a4a4a, #0f0f0f); }
.mph5 { background: linear-gradient(135deg, #414141, #0e0e0e); }
.mph6 { background: linear-gradient(135deg, #505050, #141414); }

/* ====== Responsywność ====== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hamburger { display: inline-flex; }
  .menu {
    position: absolute;
    right: 16px;
    top: 64px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    width: min(260px, calc(100% - 32px));
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  .menu-toggle:checked ~ .menu { display: flex; }
  .gallery { grid-template-columns: 1fr; }
  .contact-form .two { grid-template-columns: 1fr; }
}