/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

:root {
  --c-bg: #F6F2EA;
  --c-surface: #FFFFFF;
  --c-text: #14213D;
  --c-muted: #4D5870;
  --c-accent: #9A4F14;
  --c-accent-text: #FFFFFF;
  --c-plate-bg: #14213D;
  --c-plate-text: #F6F2EA;
  --c-line: #E3DCCC;
  --f-head: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --f-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-card: 8px;
  --r-btn: 999px;
  --pad-side: clamp(16px, 4vw, 40px);
  --gap-block: clamp(64px, 9vw, 128px);
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
}

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad-side);
}
.l-block {
  position: relative;
  padding-block: var(--gap-block);
}
.l-block:nth-of-type(even) { background: var(--c-surface); }
.l-copy {
  max-width: 60ch;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.l-copy a, .l-copy a:hover { color: var(--c-accent); }
.u-jump {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  padding: 10px 18px;
  z-index: 60;
}
.u-jump:focus { left: 12px; top: 12px; }

/* Announcement */
.l-strip {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  text-align: center;
  padding: 8px var(--pad-side);
  font-size: 0.875rem;
}
.l-strip-note {
  max-width: 32ch;
  margin-inline: auto;
  line-height: 1.5;
}
.l-strip-note { margin: 0; }

/* Header */
.c-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(246 242 234 / .96);
  border-bottom: 1px solid var(--c-line);
  transition: padding .3s ease;
}
.c-topbar-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  transition: padding .3s ease;
}
.c-brand {
  font-family: var(--f-head);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  text-align: center;
}
.l-menu-switch {
  display: none;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--c-text);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-text);
  font: 600 1rem var(--f-body);
  cursor: pointer;
}
.c-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(16px, 3vw, 36px);
}
.l-menu-item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}
.l-menu-item a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: scale(0);
  transition: transform .25s ease;
}
.l-menu-item a:hover::before,
.l-menu-item a[aria-current="page"]::before { transform: scale(1); }
.l-menu-num { color: var(--c-muted); font-size: 0.8125rem; }
.c-topbar.is-compact .c-topbar-in { padding-block: 8px; }
.c-topbar.is-compact .c-brand { font-size: 1.15rem; }
.c-topbar.is-compact .l-menu-switch { min-height: 40px; }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--c-text);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-text);
  font: 600 1rem var(--f-body);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(120deg, var(--c-text), var(--c-text));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease, transform .1s ease, color .3s ease;
}
.c-btn:hover {
  background-size: 100% 100%;
  color: var(--c-bg);
}
.c-btn:focus-visible {
  outline: 4px solid var(--c-accent);
  outline-offset: 3px;
}
.c-btn:active { transform: scale(.96); }
.l-btn-quiet {
  border-color: var(--c-plate-text);
  color: var(--c-plate-text);
  background-image: linear-gradient(120deg, var(--c-plate-text), var(--c-plate-text));
}
.l-btn-quiet:hover { color: var(--c-text); }

/* Hero */
.has-hero { padding-top: clamp(48px, 6vw, 88px); }
.l-hero-title {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 16ch;
  text-wrap: balance;
}
.u-mark { color: var(--c-accent); }
.l-hero-lead {
  max-width: 52ch;
  color: var(--c-muted);
  line-height: 1.6;
  margin-block: 20px 28px;
}
.l-hero-photo {
  margin-top: 28px;
  margin-bottom: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.l-hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Background shapes */
.l-block::before,
.l-block::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.l-block::before {
  left: -120px;
  top: 8%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgb(154 79 20 / .07);
}
.l-block::after {
  right: -140px;
  bottom: 4%;
  width: 340px;
  height: 340px;
  border-radius: 340px 340px 0 0;
  background: rgb(20 33 61 / .06);
}
.l-block > .l-wrap { position: relative; z-index: 1; }

/* Headings */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; }
h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); line-height: 1.3; margin-bottom: 10px; }

/* Cards */
.l-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
}
.c-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.c-tile:hover { transform: translateY(-4px); }
.c-tile img {
  width: 100%;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 18px;
  transition: transform .4s ease;
}
.c-tile { overflow: hidden; }
.c-tile:hover img { transform: scale(1.05); }

/* Prices */
.l-price-list { border-top: 1px solid var(--c-line); }
.l-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 14px;
  border-bottom: 1px solid rgb(20 33 61 / .12);
}
.l-price-name { max-width: 640px; }
.l-price-val { color: var(--c-accent); font-weight: 600; white-space: nowrap; }

/* Form */
.c-inquiry {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
  max-width: 760px;
}
.l-inquiry-row { margin-bottom: 20px; }
.l-inquiry-tag {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9375rem;
}
.l-inquiry-box {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--c-muted);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 1rem var(--f-body);
}
.l-inquiry-box::placeholder { color: var(--c-muted); }
.l-inquiry-area { min-height: 120px; resize: vertical; }
.is-invalid { border-color: var(--c-accent); background: rgb(154 79 20 / .05); }
.l-inquiry-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-block: 20px;
  font-size: 0.9375rem;
}
.l-inquiry-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-accent); }
.l-inquiry-hint { font-size: 0.875rem; color: var(--c-muted); margin-bottom: 20px; }
.l-inquiry-send.is-sending { opacity: .6; pointer-events: none; }

/* Steps */
.l-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.l-step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
.l-step-list > li { counter-increment: step; }
.l-step-list > li h3::before {
  content: counter(step, decimal-leading-zero) " ";
  color: var(--c-accent);
  font-size: 0.85em;
}
.l-steps-photo {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.l-steps-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* FAQ */
.c-qa { display: grid; gap: 12px; max-width: 760px; }
.c-qa-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 4px 20px;
}
.c-qa-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style-position: outside;
}
.c-qa-item summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.c-qa-item p { color: var(--c-muted); padding-bottom: 14px; }

/* Plate */
.c-slab {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 56px);
}
.c-slab h2 { color: var(--c-plate-text); }
.c-slab .l-copy { color: var(--c-plate-text); opacity: .92; }
.c-slab a { color: #E8B08A; }

/* Footer */
.c-bottom {
  background: var(--c-plate-bg);
  color: var(--c-plate-text);
  padding-top: clamp(40px, 6vw, 72px);
}
.c-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.c-bottom-title { font-weight: 700; margin-bottom: 12px; font-size: 1rem; }
.c-bottom-links { display: grid; gap: 8px; }
.c-bottom-links a, .c-bottom address a, .c-bottom-col ul a { color: #E8B08A; text-decoration: none; }
.c-bottom-links a:hover, .c-bottom address a:hover, .c-bottom-col ul a:hover { text-decoration: underline; }
.c-bottom-col address { font-style: normal; font-size: 0.9375rem; line-height: 1.6; }
.c-bottom-col address p { margin-bottom: 8px; }
.c-bottom-col ul li span { color: rgb(246 242 234 / .75); }
.c-bottom-bar {
  border-top: 1px solid rgb(246 242 234 / .2);
  margin-top: 32px;
  padding-block: 20px;
  font-size: 0.875rem;
}

/* Reveal */
.c-fade { transition: opacity .6s ease, transform .6s ease; }
html.has-script .c-fade { opacity: 0; transform: translateY(16px); }
html.has-script .c-fade.is-shown { opacity: 1; transform: none; }

/* Inner pages */
.c-pagehead { padding-top: clamp(40px, 6vw, 72px); }
.c-pagehead h1 {
  font-size: clamp(2.2rem, 4vw + 0.8rem, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 16px;
}
.c-pagehead .l-copy { font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem); }

/* Prose */
.l-copy-prose { max-width: 760px; }
.l-copy-prose h2 { margin-top: 40px; }
.l-copy-prose h3 { margin-top: 28px; }
.l-copy-prose ul, .l-copy-prose ol { padding-left: 22px; list-style: disc; color: var(--c-muted); display: grid; gap: 8px; margin-bottom: 1.25rem; }
.l-copy-prose ol { list-style: decimal; }
.l-copy-prose table { width: 100%; border-collapse: collapse; margin-block: 20px; font-size: 0.9375rem; }
.l-copy-prose th, .l-copy-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.l-copy-prose th { font-weight: 700; }

/* Contact block */
.c-contactcard {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  max-width: 560px;
}

/* Confirm & 404 */
.c-confirm {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
  max-width: 760px;
}
.c-confirm .l-linklist { display: grid; gap: 10px; margin-top: 20px; }
.c-confirm .l-linklist a { color: var(--c-accent); }

/* Breakpoints */
@media (min-width: 480px) {
  .l-grid { grid-template-columns: 1fr; }
  .c-bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .l-grid { grid-template-columns: repeat(2, 1fr); }
  .l-grid .has-wide { grid-column: span 2; }
  .l-step-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .l-steps { grid-template-columns: 2fr 1fr; }
  .l-menu-switch { display: none; }
  .c-menu { display: block; }
}
@media (max-width: 767px) {
  .l-menu-switch { display: inline-flex; }
  .c-menu {
    display: none;
    width: 100%;
    padding-bottom: 12px;
  }
  .c-menu.has-open { display: block; }
  .c-menu-list { flex-direction: column; align-items: center; gap: 2px; }
  .l-menu-item a { padding: 10px 12px; }
}
@media (min-width: 1024px) {
  .l-grid { grid-template-columns: repeat(3, 1fr); }
  .l-grid .has-wide { grid-column: span 2; grid-row: span 1; }
  .l-step-list { grid-template-columns: repeat(3, 1fr); }
  .c-bottom-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .l-hero-title { max-width: 26ch; }
  .l-block { padding-block: 128px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.has-script .c-fade { opacity: 1; transform: none; }
}

/* Art fixes */
.c-btn { padding: 14px 28px; }
.has-hero .c-btn { margin-top: 32px; }
.has-hero + .l-block { padding-top: clamp(48px, 12vw, 72px); }
#dla-kogo .l-grid { margin-top: clamp(24px, 4vw, 40px); }
.l-grid > .c-tile:not(.has-wide):not(:has(img)) { justify-content: center; }
#cennik .l-wrap { max-width: 900px; }
#cennik .l-price-list { margin-inline: auto; }
@media (max-width: 639px) {
  .l-hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); hyphens: auto; }
}
@media (max-width: 479px) {
  .has-hero .c-btn { width: 100%; max-width: 320px; }
}

.c-bottom-col ul { display: grid; gap: 8px; }
.c-bottom-col ul li span { color: rgb(246 242 234 / .85); margin-right: 4px; }
