/* Rieccnonas — Split-Screen Modern archetype
   Theme: renowacja drewnianych skrzyń i kufrów
   Flexbox only, no grid. */

:root {
  --bg: #f4eee2;
  --panel: #ece2cf;
  --ink: #2a1f15;
  --ink-soft: #5a4a39;
  --wood: #7c4f2a;
  --wood-deep: #4f3119;
  --amber: #b9792f;
  --amber-light: #e0b473;
  --cream: #fbf7ef;
  --line: #d8cbb2;
  --shadow: 0 18px 45px rgba(50, 32, 14, 0.14);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  color: var(--wood-deep);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

a { color: var(--wood); text-decoration: none; }
a:hover { color: var(--amber); }

img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
}

/* ---------- Ad disclosure strip ---------- */
.ad-strip {
  background: var(--wood-deep);
  color: #f0e4cf;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Navigation (split nav, top) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 238, 226, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--wood-deep);
  letter-spacing: 0.5px;
}
.brand .mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--wood), var(--amber));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 1.1rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--wood-deep); border-color: var(--amber); }
.nav-cta {
  background: var(--wood-deep);
  color: var(--cream) !important;
  padding: 10px 20px !important;
  border-radius: 40px;
  border: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--amber); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; cursor: pointer;
  color: var(--wood-deep); font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 44px;
  transition: transform .18s, box-shadow .18s, background .2s;
  text-align: center;
}
.btn-primary { background: var(--wood-deep); color: var(--cream); }
.btn-primary:hover { background: var(--amber); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--wood-deep); border: 2px solid var(--wood-deep); }
.btn-ghost:hover { background: var(--wood-deep); color: var(--cream); transform: translateY(-2px); }
.btn-link {
  background: none; color: var(--wood); font-weight: 600;
  border-bottom: 2px solid var(--amber); border-radius: 0;
  padding: 2px 0;
}
.btn-link:hover { color: var(--amber); }

/* ---------- Split hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 82vh;
}
.hero-text {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px clamp(24px, 6vw, 90px);
  background: var(--bg);
}
.hero-text .lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-media {
  flex: 1 1 440px;
  position: relative;
  background-color: var(--wood-deep);
  min-height: 340px;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 28px; bottom: 28px;
  background: rgba(42, 31, 21, 0.82);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 12px;
  max-width: 260px;
  font-size: 0.86rem;
  backdrop-filter: blur(4px);
}
.hero-badge strong { display: block; font-size: 1.5rem; font-family: "Cormorant Garamond", serif; color: var(--amber-light); }

/* ---------- Generic section ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.alt { background: var(--panel); }
.section.dark { background: var(--wood-deep); color: #efe3cd; }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Split rows (alternating) ---------- */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.split.reverse { flex-direction: row-reverse; }
.split-col { flex: 1 1 380px; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 26px; }
.stat b { font-family: "Cormorant Garamond", serif; font-size: 2.3rem; color: var(--amber); display: block; line-height: 1; }
.stat span { font-size: 0.86rem; color: var(--ink-soft); }
.section.dark .stat span { color: #cbb793; }

/* ---------- Service cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 26px; }
.card {
  flex: 1 1 300px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { background-color: var(--panel); aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; color: var(--ink-soft); }
.price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--wood-deep);
  font-weight: 700;
  margin: 6px 0 16px;
}
.price small { font-size: 0.8rem; color: var(--ink-soft); font-family: "Inter", sans-serif; display:block; font-weight:400; }
.card .btn { margin-top: auto; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .ic {
  flex: 0 0 34px; width: 34px; height: 34px;
  background: var(--amber); color: #fff; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 22px; }
.step {
  flex: 1 1 220px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 4px solid var(--amber);
}
.step .num { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--amber); line-height: 1; }

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 24px; }
.quote {
  flex: 1 1 280px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--amber);
  padding: 24px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-style: italic; }
.quote .who { font-weight: 600; font-size: 0.9rem; color: var(--amber-light); font-style: normal; }

/* ---------- Form ---------- */
.form-wrap {
  display: flex; flex-wrap: wrap; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--cream);
}
.form-side {
  flex: 1 1 320px;
  background-color: var(--wood-deep);
  position: relative;
  min-height: 320px;
}
.form-side img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; }
.form-main { flex: 1 1 360px; padding: clamp(28px, 4vw, 48px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(185,121,47,0.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.form-error { color: #9a3412; font-size: 0.85rem; margin: 6px 0 0; display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--wood), var(--wood-deep));
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { color: var(--cream); margin: 0; }
.cta-band p { margin: 6px 0 0; color: #e7d8bd; }

/* ---------- Contact blocks ---------- */
.info-cards { display: flex; flex-wrap: wrap; gap: 22px; }
.info-card {
  flex: 1 1 240px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.info-card .val { font-weight: 600; color: var(--wood-deep); }

/* ---------- Legal / article pages ---------- */
.doc { max-width: 820px; }
.doc h2 { margin-top: 1.6em; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.ref-list { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  background: #241a11;
  color: #cdbfa6;
  padding: 58px 0 30px;
}
.footer a { color: #e0cfab; }
.footer a:hover { color: var(--amber-light); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { flex: 1 1 200px; }
.footer-col h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 0.92rem; }
.footer .disclaimer {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid #3a2c1d;
  font-size: 0.8rem; color: #a7967b; line-height: 1.6;
}
.footer .copy { margin-top: 14px; font-size: 0.8rem; color: #8c7c63; }
.noclick { user-select: all; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 45;
  background: var(--amber);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 44px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s, background .2s;
}
.sticky-cta:hover { background: var(--wood-deep); transform: translateY(-3px); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 60;
  background: var(--wood-deep);
  color: #f0e4cf;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.cookie p { margin: 0; font-size: 0.88rem; flex: 1 1 320px; }
.cookie a { color: var(--amber-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie .btn { padding: 10px 20px; font-size: 0.9rem; }
.cookie .btn-ghost { color: #f0e4cf; border-color: #f0e4cf; }
.cookie .btn-ghost:hover { background: #f0e4cf; color: var(--wood-deep); }
.is-hidden { display: none !important; }

/* ---------- Utilities (replace inline styles) ---------- */
.btn-light { color: #fbf7ef; border-color: #fbf7ef; }
.btn-light:hover { background: #fbf7ef; color: var(--wood-deep); }
.u-center { justify-content: center; }
.u-mt { margin-top: 40px; }
.u-mt-s { margin-top: 18px; }
.text-sm { font-size: 0.9rem; }
.footer-intro { font-size: 0.9rem; color: #cdbfa6; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-120%);
  background: var(--wood-deep); color: var(--cream);
  padding: 14px 24px; border-radius: 40px; z-index: 70;
  box-shadow: var(--shadow); transition: transform .35s ease; font-size: 0.92rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 24px; gap: 4px;
  }
  .nav-links a { padding: 11px 2px; }
  .nav-links.open { display: flex; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .hero { min-height: auto; }
  .hero-media { order: -1; min-height: 280px; flex-basis: 100%; }
}
