/* Root */
:root {
  --pw_bg: #F3F2EB;
  --pw_surface: #FCFBF7;
  --pw_text: #23261F;
  --pw_muted: #5A5E53;
  --pw_accent: #56651E;
  --pw_accent_text: #FCFBF7;
  --pw_plate_bg: #23261F;
  --pw_plate_text: #F3F2EB;
  --pw_line: #D8D6C9;
  --pw_font_head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --pw_font_body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pw_pad_side: clamp(16px, 4vw, 40px);
  --pw_gap: clamp(48px, 7vw, 96px);
  --pw_radius_card: 14px;
  --pw_radius_btn: 10px;
  --pw_shadow_soft: 0 1px 2px rgb(35 38 31 / .06), 0 12px 32px rgb(35 38 31 / .08);
  --pw_shadow_lift: 0 2px 4px rgb(35 38 31 / .08), 0 20px 44px rgb(35 38 31 / .14);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--pw_bg);
  color: var(--pw_text);
  font-family: var(--pw_font_body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3 {
  font-family: var(--pw_font_head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); }
p { max-width: 68ch; margin: 0 0 1em; }
a { color: var(--pw_accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pw_accent); outline-offset: 3px; }
address { font-style: normal; }

/* Layout */
.pw_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pw_pad_side);
}
.pw_part { padding-block: clamp(48px, 7vw, 96px); }
.pw_part_title { margin: 0 0 16px; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; text-wrap: balance; }
.pw_part_intro { color: var(--pw_muted); margin: 0 0 32px; max-width: 44ch; font-size: 1.0625rem; line-height: 1.6; }
.pw_read_maly { font-size: 0.9rem; color: var(--pw_muted); line-height: 1.55; }

/* Tinted background layer with soft wavy edge */
.pw_tinted {
  background: var(--pw_surface);
  position: relative;
  box-shadow: 0 0 0 100vmax var(--pw_surface);
  clip-path: inset(-100vmax 0 -100vmax 0);
}
.pw_tinted::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -22px;
  height: 44px;
  background: radial-gradient(58% 100% at 50% 100%, var(--pw_surface) 98%, transparent 100%) 0 0 / 200px 44px repeat-x;
  pointer-events: none;
}

/* Skip link */
.pw_skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  background: var(--pw_plate_bg);
  color: var(--pw_plate_text);
  padding: 12px 20px;
  border-radius: var(--pw_radius_btn);
  text-decoration: none;
  transition: top .2s ease;
}
.pw_skip:focus { top: 12px; }

/* Header bar */
.pw_bar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px auto 0;
  max-width: 1200px;
  width: calc(100% - 2 * var(--pw_pad_side));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--pw_surface);
  border: 1px solid var(--pw_line);
  border-radius: 18px;
  padding: 12px 20px;
  min-height: 64px;
  box-shadow: var(--pw_shadow_soft);
}
.pw_bar_call {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--pw_radius_btn);
  background: var(--pw_plate_bg);
  color: var(--pw_plate_text);
  transition: background .25s ease;
}
.pw_bar_call:hover { background: var(--pw_accent); }

/* Logo */
.pw_mark {
  font-family: var(--pw_font_head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pw_text);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.pw_mark:hover { color: var(--pw_text); }
.pw_mark_stopka { font-size: 1.25rem; margin: 0 0 12px; }

/* Nav toggle */
.pw_panel_knob {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--pw_line);
  border-radius: var(--pw_radius_btn);
  background: var(--pw_bg);
  color: var(--pw_text);
  font: 600 0.95rem var(--pw_font_body);
  cursor: pointer;
}
.pw_knob_bars {
  width: 20px; height: 14px;
  border-top: 2px solid var(--pw_text);
  border-bottom: 2px solid var(--pw_text);
  position: relative;
}
.pw_knob_bars::after {
  content: "";
  position: absolute; inset: 50% 0 auto;
  height: 2px; background: var(--pw_text);
}

/* Off-canvas panel */
.pw_panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 84vw);
  background: var(--pw_surface);
  padding: 96px 28px 32px;
  transform: translateX(-102%);
  transition: transform .32s ease;
  z-index: 50;
  overflow-y: auto;
  box-shadow: var(--pw_shadow_lift);
}
.pw_panel.is_rozepchniete, .pw_panel[aria-hidden="false"] { transform: translateX(0); }
.pw_panel_lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pw_panel_pos {
  display: block;
  padding: 12px 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pw_text);
  text-decoration: none;
  position: relative;
}
.pw_panel_pos::after {
  content: "";
  position: absolute;
  left: 0; bottom: 8px;
  height: 2px; width: 0;
  background: var(--pw_accent);
  transition: width .28s ease;
}
.pw_panel_pos:hover, .pw_panel_pos[aria-current="page"] { color: var(--pw_accent); }
.pw_panel_pos:hover::after, .pw_panel_pos[aria-current="page"]::after { width: 34px; }
.pw_panel_zaslona {
  position: fixed; inset: 0;
  background: rgb(35 38 31 / .5);
  z-index: 45;
  border: 0; padding: 0;
}
.pw_panel_zaslona:not([hidden]) { display: block; }

/* Buttons */
.pw_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--pw_radius_btn);
  font: 600 1rem var(--pw_font_body);
  color: var(--pw_accent_text);
  text-decoration: none;
  cursor: pointer;
  background-image: linear-gradient(135deg, #46511a, #6b7d28);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: var(--pw_shadow_soft);
  transition: background-position .3s ease, box-shadow .2s ease, transform .15s ease;
}
.pw_cta:hover { background-position: 100% 50%; }
.pw_cta:focus-visible {
  outline: 3px solid var(--pw_plate_bg);
  outline-offset: 3px;
}
.pw_cta:active { box-shadow: none; transform: translateY(1px); }
.pw_cta_ghost {
  background: transparent;
  color: var(--pw_accent);
  border: 1.5px solid var(--pw_accent);
}
.pw_cta_ghost:hover { background: var(--pw_accent); color: var(--pw_accent_text); }

/* Hero */
.pw_hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 5vw, 56px); }
.pw_hero_in { text-align: center; }
.pw_hero_title { max-width: 22ch; margin: 16px auto 20px; }
.pw_hero_lead { margin: 0 auto 28px; color: var(--pw_muted); max-width: 62ch; }
.pw_hero_shot { margin: clamp(24px, 4vw, 44px) auto 0; max-width: 100%; width: 100%; }
.pw_hero_shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--pw_radius_card);
  padding: 10px;
  background: var(--pw_surface);
  border: 1px solid var(--pw_line);
  box-shadow: var(--pw_shadow_soft);
}

/* Kicker accent */
.pw_kicker {
  font-family: var(--pw_font_head);
  font-size: clamp(1.15rem, 1rem + 1.4vw, 2rem);
  font-weight: 600;
  color: var(--pw_accent);
  margin: 0;
  letter-spacing: 0;
}

/* Two-column layout with sticky heading */
.pw_two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.pw_two_side { position: relative; align-self: start; }
.pw_two_body { display: grid; gap: 16px; min-width: 0; max-width: 100%; }

/* Cards */
.pw_note {
  background: var(--pw_surface);
  border: 1px solid var(--pw_line);
  border-radius: var(--pw_radius_card);
  padding: 26px 28px;
  box-shadow: var(--pw_shadow_soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pw_note:hover { transform: translateY(-4px); box-shadow: var(--pw_shadow_lift); }
.pw_note h3 { margin: 0 0 10px; }
.pw_note p { margin: 0; }

/* Lists */
.pw_who_list, .pw_care_list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 16px;
}
.pw_steps {
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: pw_krok;
  display: grid;
  gap: 16px;
}
.pw_step { counter-increment: pw_krok; position: relative; padding-left: 60px; }
.pw_step::before {
  content: counter(pw_krok, decimal-leading-zero);
  position: absolute; left: 22px; top: 24px;
  font-family: var(--pw_font_head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pw_accent);
}

/* Plans */
.pw_plans { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pw_plan_cost {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--pw_line);
  color: var(--pw_muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contrast plate */
.pw_slab {
  background: var(--pw_plate_bg);
  color: var(--pw_plate_text);
  border-radius: var(--pw_radius_card);
  padding: 28px 32px;
}
.pw_slab p { margin: 0; max-width: none; }
.pw_slab a { color: #D9E2B4; }

/* Images with mat frame */
.pw_shot_mat {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.pw_shot_mat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 10px;
  background: var(--pw_surface);
  border: 1px solid var(--pw_line);
  border-radius: var(--pw_radius_card);
  box-shadow: var(--pw_shadow_soft);
}
.pw_shot_sq img { aspect-ratio: 1 / 1; }
.pw_shot_tall img { aspect-ratio: 3 / 4; }

/* FAQ */
.pw_qa { display: grid; gap: 12px; align-content: start; }
.pw_qa_item {
  background: var(--pw_surface);
  border: 1px solid var(--pw_line);
  border-radius: var(--pw_radius_card);
  padding: 4px 22px;
}
.pw_qa_item summary {
  cursor: pointer;
  font-family: var(--pw_font_head);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 0;
  list-style-position: outside;
}
.pw_qa_item[open] summary { color: var(--pw_accent); }
.pw_qa_item p { padding-bottom: 16px; margin: 0; }

/* Form */
.pw_letter { display: grid; gap: 18px; }
.pw_slot { display: grid; gap: 6px; }
.pw_tag { font-weight: 600; font-size: 0.95rem; }
.pw_line {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: 400 1rem var(--pw_font_body);
  color: var(--pw_text);
  background: var(--pw_surface);
  border: 1.5px solid var(--pw_line);
  border-radius: var(--pw_radius_btn);
}
.pw_line:focus-visible { outline: 2px solid var(--pw_accent); outline-offset: 2px; }
.pw_line::placeholder { color: #6e7264; }
.pw_slot.is_bad .pw_line { border-color: #8a3d20; }
.pw_area { min-height: 120px; resize: vertical; }
.pw_agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--pw_muted);
}
.pw_agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pw_accent); }
.pw_agree.is_bad label { color: #7a331a; }
.pw_fineprint { font-size: 0.9rem; color: var(--pw_muted); margin: 0; }
.pw_letter_go { justify-self: start; }
.pw_letter.is_wait .pw_letter_go { opacity: .65; pointer-events: none; }

/* Footer */
.pw_bottom {
  background: var(--pw_surface);
  border-top: 1px solid var(--pw_line);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  margin-top: var(--pw_gap);
}
.pw_bottom_siatka {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.pw_bottom_tytul {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--pw_accent);
}
.pw_bottom_odnosniki { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pw_bottom_odnosniki a { color: var(--pw_text); text-decoration: none; }
.pw_bottom_odnosniki a:hover { color: var(--pw_accent); text-decoration: underline; }
.pw_bottom address p { margin: 0 0 8px; font-size: 0.95rem; color: var(--pw_muted); }
.pw_bottom address p:first-child { color: var(--pw_text); }
.pw_bottom_stopka_praw {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--pw_line);
}
.pw_bottom_stopka_praw p { margin: 0; }
.pw_bottom ul ul { margin-top: 10px; }
.pw_bottom_kol > ul:not(.pw_bottom_odnosniki) li { margin-bottom: 6px; font-size: 0.95rem; }
.pw_bottom_kol > ul:not(.pw_bottom_odnosniki) span { color: var(--pw_muted); margin-right: 4px; }

/* Prose for policies */
.pw_read { max-width: 760px; }
.pw_read h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 40px 0 14px; }
.pw_read h3 { margin: 28px 0 10px; }
.pw_read ol, .pw_read ul { padding-left: 24px; margin: 0 0 1em; }
.pw_read li { margin-bottom: 6px; }
.pw_read table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
}
.pw_read th, .pw_read td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pw_line);
}
.pw_read th { font-family: var(--pw_font_head); color: var(--pw_accent); }
.pw_read_maly + .pw_read_tresc { margin-top: 24px; }

/* Inner page head */
.pw_strona_glowa { padding-top: clamp(40px, 6vw, 80px); }
.pw_strona_glowa h1 { max-width: 24ch; margin: 12px 0 20px; }
.pw_strona_glowa p { color: var(--pw_muted); }

/* Section reveal */
html.is_live .pw_fadein {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.is_live .pw_fadein.is_seen {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (min-width: 480px) {
  .pw_plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .pw_who_list, .pw_care_list { grid-template-columns: repeat(2, 1fr); }
  .pw_bottom_siatka { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .pw_two { grid-template-columns: minmax(280px, 360px) 1fr; gap: 48px; }
  .pw_two_side { position: sticky; top: 96px; }
  .pw_steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pw_plans { grid-template-columns: repeat(3, 1fr); }
  .pw_bottom_siatka { grid-template-columns: repeat(4, 1fr); }
  .pw_qa { gap: 14px; }
}
@media (min-width: 1280px) {
  .pw_part { padding-block: clamp(48px, 7vw, 96px); }
  .pw_two { gap: 56px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is_live .pw_fadein { opacity: 1; transform: none; }
}

/* Mobile rhythm */
@media (max-width: 479px) {
  .pw_part { padding-block: 56px; }
  .pw_two_body { gap: 16px; }
  .pw_who_list,
  .pw_care_list { gap: 12px; }
  .pw_note { padding: 20px 18px; }
  .pw_wrap { padding-inline: clamp(16px, 5vw, 32px); }
  .pw_bar { padding: 10px 14px; }
  .pw_knob_name { display: none; }
}
@media (max-width: 639px) {
  .pw_part { padding-block: clamp(48px, 7vw, 64px); }
}

/* Overflow guards */
img { max-width: 100%; }
figure { max-width: 100%; min-width: 0; }
.pw_two_side { max-width: 100%; min-width: 0; }
.pw_wrap { max-width: 100%; }
@media (max-width: 859px) {
  .pw_shot_sq img, .pw_shot_tall img { aspect-ratio: 4 / 3; }
}
