/* ============================================================
   thingsatis — pracownia renowacji drewnianych ławek
   Archetyp: SPLIT-SCREEN MODERN
   ============================================================ */

:root {
  --bg: #f4ede0;
  --surface: #fffdf8;
  --surface-alt: #efe5d4;
  --ink: #2a2018;
  --ink-soft: #4b3d2f;
  --muted: #6f6151;
  --line: #e2d6c1;
  --accent: #a4642b;
  --accent-deep: #83491c;
  --accent-soft: #e9cfa9;
  --green: #5a6b4d;
  --green-deep: #3f4c37;
  --shadow: 0 24px 60px -32px rgba(42, 32, 24, 0.55);
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1rem; }

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

img { display: block; }

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

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

/* -------- Media containers (image fallback safe) -------- */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--accent-soft);
  border-radius: var(--radius);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

/* ============================================================
   GLOBAL HEADER (prefix sx-)
   ============================================================ */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.sx-adbar {
  background: var(--green-deep);
  color: #f3efe6;
}
.sx-adbar__text {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px 24px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.sx-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sx-brand {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sx-brand:hover { text-decoration: none; color: var(--accent-deep); }
.sx-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.sx-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.sx-nav a:hover { color: var(--accent-deep); text-decoration: none; }
.sx-nav a.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}
.sx-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .sx-nav-toggle { display: inline-block; }
  .sx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    display: none;
  }
  .sx-nav.is-open { display: flex; }
  .sx-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sx-header__inner { position: relative; }
}

/* ============================================================
   HERO / SPLIT SECTIONS
   ============================================================ */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.split__text, .split__media {
  flex: 1 1 420px;
  min-width: 300px;
}
.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px);
}
.split__media { min-height: 360px; }
.split__media .media { height: 100%; border-radius: 0; }
.split--reverse { flex-direction: row-reverse; }

.hero {
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(164, 100, 43, 0.10), transparent 60%),
    var(--surface);
}
.hero .split__text { gap: 6px; }
.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 48ch;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--wide { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.inline-link {
  font-weight: 600;
  border-bottom: 1px solid var(--accent-soft);
}

/* -------- Generic section -------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--surface-alt); }
.section--ink { background: var(--green-deep); color: #efe9dd; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: var(--accent-soft); }
.section--ink p { color: #ddd6c6; }

.section__head { max-width: 62ch; margin-bottom: 42px; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* -------- Stats strip -------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.stat {
  flex: 1 1 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.stat__num {
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
  color: var(--accent-deep);
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; }

/* -------- Cards (flex, no grid) -------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.card {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card .media { border-radius: 0; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__price {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--accent-deep);
  margin: 4px 0 10px;
}
.card__meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-top: auto;
  padding-top: 14px;
}
.tick { list-style: none; padding: 0; margin: 10px 0 16px; }
.tick li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* -------- Process steps -------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.step {
  flex: 1 1 240px;
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
}
.step__n {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--accent-deep);
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 14px;
}

/* -------- Quote / testimonials -------- */
.quotes { display: flex; flex-wrap: wrap; gap: 26px; }
.quote {
  flex: 1 1 300px;
  background: var(--surface);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px;
}
.quote p { font-style: italic; color: var(--ink-soft); }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: 0.9rem; }

/* -------- Feature split content -------- */
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list strong { display: block; font-family: "Fraunces", serif; font-size: 1.1rem; }

/* -------- Form -------- */
.form-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-shell__aside {
  flex: 1 1 320px;
  background: var(--ink);
  color: #efe6d6;
  padding: clamp(32px, 4vw, 54px);
}
.form-shell__aside h2 { color: #fff; }
.form-shell__aside p { color: #d7ccba; }
.form-shell__main {
  flex: 1 1 380px;
  padding: clamp(32px, 4vw, 54px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(164, 100, 43, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.form-error {
  color: #9a2b2b;
  font-size: 0.88rem;
  margin-top: 10px;
  display: none;
}
.form-error.is-visible { display: block; }

/* -------- Banner / disclaimer box -------- */
.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 30px clamp(24px, 4vw, 44px);
  border: 1px solid var(--accent);
}
.callout h3 { color: var(--accent-deep); }

/* -------- Prose for legal / about -------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 90px) 0;
}
.page-hero .eyebrow { margin-bottom: 0.6rem; }

/* -------- Contact blocks -------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 26px; }
.contact-card {
  flex: 1 1 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--accent-deep); font-size: 1.15rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   GLOBAL FOOTER (prefix sv-)
   ============================================================ */
.sv-footer {
  background: #231a13;
  color: #cdc2b0;
  padding: 64px 0 28px;
  font-size: 0.95rem;
}
.sv-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.sv-footer__col { flex: 1 1 220px; }
.sv-footer__brand {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 12px;
}
.sv-footer__title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #9c8e78;
  margin: 0 0 14px;
}
.sv-footer__col p { margin: 0 0 10px; line-height: 1.6; }
.sv-footer__col a { color: #d9cdb9; display: block; margin-bottom: 9px; }
.sv-footer__col a:hover { color: #fff; }
.sv-footer__bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid #3a2d22;
  color: #8f8169;
  font-size: 0.85rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: #efe6d6;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { margin: 0 0 16px; font-size: 0.92rem; color: #ddd3c2; }
.cookie a { color: var(--accent-soft); }
.cookie__row { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie__row .btn { padding: 11px 22px; font-size: 0.9rem; }
.btn--sm-ghost { background: transparent; color: #efe6d6; border-color: #6a5a46; }
.btn--sm-ghost:hover { background: #efe6d6; color: var(--ink); }

/* -------- misc -------- */
.spacer-sm { height: 18px; }
.center { text-align: center; }
.mt-lg { margin-top: 28px; }
.cta-row--center { justify-content: center; }
.callout--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 55;
  box-shadow: var(--shadow);
  display: none;
}
@media (min-width: 821px) { .sticky-cta { display: inline-block; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .split__text { padding: 44px 24px; }
}
