/* Base */
:root {
  --bg: #10201B;
  --surface: #172B25;
  --text: #EEF3EF;
  --muted: #A9BDB3;
  --accent: #E9B949;
  --accent-text: #10201B;
  --plate-bg: #E9B949;
  --plate-text: #10201B;
  --line: #2A4038;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 8px;
  --radius-btn: 999px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --pad-side: clamp(16px, 4vw, 40px);
  --gap-block: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--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; }

a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: clamp(1.2rem, 1vw + 0.9rem, 1.5rem); line-height: 1.25; margin: 0 0 8px; }

p { margin: 0 0 16px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { margin: 0; }

address { font-style: normal; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Skip link */
.xx_skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  z-index: 60;
}
.xx_skip:focus { left: 16px; top: 16px; }

/* Layout */
.xx_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-side);
  padding-right: var(--pad-side);
}

.xx_block { padding-top: var(--gap-block); padding-bottom: var(--gap-block); position: relative; }

/* Background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38vw 38vw at 12% 8%, rgb(233 185 73 / 0.18), transparent 70%),
    radial-gradient(46vw 46vw at 88% 30%, rgb(233 185 73 / 0.14), transparent 72%),
    radial-gradient(42vw 42vw at 30% 86%, rgb(233 185 73 / 0.12), transparent 70%),
    radial-gradient(34vw 34vw at 78% 92%, rgb(233 185 73 / 0.16), transparent 70%);
  background-color: var(--bg);
  pointer-events: none;
}

/* Header */
.xx_topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 72px;
  display: flex;
  align-items: center;
}
.xx_topbar.has_bg {
  background-color: rgb(16 32 27 / 0.94);
  box-shadow: 0 1px 0 var(--line);
}
.xx_topbar_row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.xx_topbar_right { justify-self: end; }
.xx_topbar_mail { font-size: 0.9375rem; text-decoration: none; }
.xx_topbar_mail:hover { text-decoration: underline; }
.xx_topbar_note { color: var(--muted); }
.xx_mark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.xx_menu_btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background-color: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-radius 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.xx_menu_btn:hover { border-radius: 12px; background-color: var(--surface); }
.xx_menu_btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.xx_menu_btn:active { border-radius: 12px; transform: translateY(1px); }

/* Overlay menu */
.xx_menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  background-color: rgb(16 32 27 / 0.97);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.xx_menu.is_open { opacity: 1; visibility: visible; transform: translateY(0); }
.xx_menu_cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  width: 100%;
}
.xx_menu_list { list-style: none; }
.xx_menu_item {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.xx_menu_item:hover { color: var(--accent); padding-left: 8px; }
.xx_menu_item[aria-current="page"] { color: var(--accent); }
.xx_menu_contacts p, .xx_menu_contacts ul li { color: var(--muted); }
.xx_menu_heading {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.xx_menu_contacts ul { list-style: none; }
.xx_menu_contacts ul li { padding: 4px 0; }
.xx_menu_contacts ul li a { color: var(--accent); }

/* Buttons */
.xx_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-btn);
  background-color: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-radius 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.xx_btn:hover { background-color: #d5a63c; transform: translateY(-1px); border-radius: 16px; box-shadow: var(--shadow-soft); }
.xx_btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.xx_btn:active { transform: translateY(0); border-radius: var(--radius-btn); }

.xx_btn_alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background-color: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-radius 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.xx_btn_alt:hover { background-color: var(--surface); transform: translateY(-1px); border-radius: 16px; }
.xx_btn_alt:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.xx_btn_alt:active { transform: translateY(0); border-radius: var(--radius-btn); }

/* Hero */
.xx_hero { padding-top: clamp(48px, 6vw, 96px); }
.xx_hero_grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.xx_hero_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xx_hero_title { max-width: 16ch; }
.xx_hero_lead { font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem); color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.xx_hero_collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  align-items: end;
  margin: 0;
}
.xx_shot { margin: 0; }
.xx_shot img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0;
  background-color: var(--surface);
}
.xx_shot_main img { aspect-ratio: 1 / 1; max-height: 460px; }
.xx_shot_tall img { aspect-ratio: 3 / 4; max-height: 380px; }

/* Split layout */
.xx_split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.xx_split_side { position: sticky; top: 96px; }
.xx_split_body > p { line-height: 1.7; }
.xx_split_body a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.xx_split_title { margin-bottom: 12px; }
.xx_split_intro { color: var(--muted); }
.xx_split_body img { margin-bottom: 24px; }

/* Cards */
.xx_stack { display: grid; gap: 20px; margin-bottom: 24px; }
.xx_card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.xx_card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 18px 44px rgb(0 0 0 / .14); }
.xx_card { padding: 32px 40px; }
.xx_card p { color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 60ch; }
.xx_card h3 { margin-bottom: 0; }

/* Section headers */
.xx_section_title { margin-bottom: 12px; }
.xx_section_intro { color: var(--muted); margin-bottom: 40px; }

/* Pricing */
.xx_pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.xx_price { display: flex; flex-direction: column; }
.xx_price ul { list-style: none; margin-top: 16px; }
.xx_price li { padding: 0 0 0 28px; position: relative; color: var(--muted); }
.xx_price li + li { margin-top: 14px; }
.xx_price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}
.xx_price_value {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 4px;
}
.xx_price_mid { border-color: var(--accent); }

/* List */
.xx_list { list-style: none; }
.xx_list li { padding: 0 0 0 28px; position: relative; color: var(--muted); }
.xx_list li + li { margin-top: 14px; }
.xx_list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Plate + accent */
.xx_plate {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 40px);
  max-width: 640px;
}
#zapytanie { padding-bottom: clamp(96px, 12vw, 128px); }
.xx_plate .xx_plate_note { color: #4A3A10; max-width: 60ch; margin-bottom: 24px; }
.xx_plate .xx_accent {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw + 0.8rem, 3.4rem);
  line-height: 1.1;
  color: var(--plate-text);
  margin-bottom: 12px;
}
.xx_plate a { color: #3D2E08; text-decoration: underline; }

/* Steps */
.xx_steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  margin-bottom: 40px;
}
.xx_step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.xx_step:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.xx_step_num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.xx_step p { color: var(--muted); margin: 0; }

/* FAQ */
.xx_faq_item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: var(--surface);
  padding: 0;
  margin-bottom: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.xx_faq_item:hover { border-color: var(--accent); transform: translateY(-2px); }
.xx_faq_item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  list-style-position: inside;
}
.xx_faq_item[open] summary { border-bottom: 1px solid var(--line); }
.xx_faq_item > div { padding: 16px 24px 20px; }
.xx_faq_item > div p { color: var(--muted); margin: 0; }

/* Form */
.xx_form { display: grid; gap: 20px; }
.xx_field { display: grid; gap: 6px; }
.xx_label { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--plate-text); margin-bottom: 8px; }
.xx_input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--plate-text);
  background-color: #F4E1AC;
  border: 1px solid #C79A2E;
  border-radius: var(--radius-card);
  padding: 0 16px;
  height: 48px;
  font-size: 16px;
  min-height: 48px;
  width: 100%;
}
.xx_input::placeholder { color: #6B571F; opacity: 1; }
.xx_input:focus-visible { outline: 2px solid var(--plate-text); outline-offset: 2px; }
.xx_area { min-height: 120px; resize: vertical; }
.xx_check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--plate-text); }
.xx_check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #8A6B14; flex: none; }
.xx_plate .xx_check a { color: #3D2E08; text-decoration: underline; }
.xx_note { font-size: 0.9375rem; color: var(--muted); }
.xx_plate .xx_note { color: #4A3A10; }
.xx_send[disabled] { opacity: 0.7; cursor: wait; }
.xx_form.is_sending .xx_send { opacity: 0.7; pointer-events: none; }
.xx_err { color: #5A1206; font-size: 0.875rem; font-weight: 600; }
.xx_input.xx_err { border-color: #5A1206; background-color: #F0CBB8; }

/* Float bar */
.xx_floatbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px var(--pad-side) calc(12px + env(safe-area-inset-bottom, 0px));
  background-color: rgb(16 32 27 / 0.96);
  border-top: 1px solid var(--line);
  display: none;
}
.xx_floatbar .xx_btn { width: 100%; }

/* Footer */
.xx_bottom {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  padding: clamp(40px, 5vw, 64px) 0 24px;
  margin-top: var(--gap-block);
}
.xx_bottom_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.xx_bottom_title { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.xx_bottom_text { color: var(--muted); font-size: 0.9375rem; }
.xx_bottom address p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 8px; }
.xx_bottom ul { list-style: none; }
.xx_bottom_links li { padding: 3px 0; }
.xx_bottom_links a { color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.xx_bottom_links a:hover { color: var(--accent); text-decoration: underline; }
.xx_bottom ul:not(.xx_bottom_links) li { color: var(--muted); font-size: 0.9375rem; padding: 3px 0; }
.xx_bottom ul:not(.xx_bottom_links) li span { color: var(--text); }
.xx_bottom_copy { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
.xx_bottom_copy_text { color: var(--muted); font-size: 0.9375rem; }

/* Prose */
.xx_prose { max-width: 760px; }
.xx_prose h2 { margin-top: 32px; }
.xx_prose h3 { margin-top: 28px; }
.xx_prose p, .xx_prose li { color: var(--muted); }
.xx_prose ul, .xx_prose ol { padding-left: 24px; margin-bottom: 16px; }
.xx_prose li { padding: 4px 0; }
.xx_prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}
.xx_prose th, .xx_prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  color: var(--text);
}
.xx_prose th { background-color: var(--surface); font-family: var(--font-body); }

/* Inner page header */
.xx_page_head { padding-bottom: 0; }
.xx_page_intro { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem); max-width: 56ch; }

/* Reveal */
html.has_js .xx_reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.has_js .xx_reveal.is_shown { opacity: 1; transform: translateY(0); }
html.has_js .xx_reveal .xx_shot { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.has_js .xx_reveal.is_shown .xx_shot { opacity: 1; transform: translateY(0); }

.xx_center { text-align: center; }
.xx_center .xx_prose, .xx_center p { margin-left: auto; margin-right: auto; }
.xx_links_row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }

/* Breakpoints */
@media (max-width: 1280px) {
  .xx_split { grid-template-columns: minmax(280px, 340px) 1fr; }
  .xx_hero_grid { grid-template-columns: 1fr 0.9fr; }
}

@media (max-width: 1024px) {
  .xx_pricing { grid-template-columns: repeat(2, 1fr); }
  .xx_price_mid { grid-column: 1 / -1; }
  .xx_bottom_grid { grid-template-columns: repeat(2, 1fr); }
  .xx_split { grid-template-columns: 1fr; }
  .xx_split_side { position: static; }
  .xx_steps { grid-template-columns: 1fr; }
  .xx_shot_main img, .xx_shot_tall img { height: 100%; }
}

@media (max-width: 768px) {
  .xx_floatbar { display: block; }
  body { padding-bottom: 84px; }
  .xx_topbar { min-height: 64px; }
  .xx_menu_cols { grid-template-columns: 1fr; gap: 32px; }
  .xx_menu_item { font-size: 1.5rem; }
  .xx_topbar_note { display: none; }
}

@media (max-width: 768px) {
  .xx_hero_grid { grid-template-columns: 1fr; }
  .xx_hero_collage { max-width: 560px; margin-top: 24px; }
  .xx_hero_text .xx_btn { width: 100%; margin-top: 24px; }
}

@media (max-width: 640px) {
  .xx_pricing { grid-template-columns: 1fr; }
  .xx_price_mid { grid-column: auto; }
  .xx_hero_collage { grid-template-columns: 1fr 1fr; max-width: none; gap: 0; }
  .xx_shot_main img { aspect-ratio: 1 / 1; max-height: 320px; }
  .xx_shot_tall img { aspect-ratio: 3 / 4; max-height: 320px; }
  .xx_bottom_grid { grid-template-columns: 1fr; }
  .xx_step { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .xx_mark { font-size: 1rem; white-space: normal; }
  .xx_card { padding: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.has_js .xx_reveal,
  html.has_js .xx_reveal .xx_shot { opacity: 1; transform: none; }
}

/* Plate-scoped overrides */
.xx_check a { color: var(--accent); text-decoration: underline; }
.xx_plate h3,
.xx_plate .xx_list li { color: #3D2E08; }
.xx_plate .xx_list li::before { background-color: #3D2E08; }

/* Menu on short screens */
@media (max-height: 600px) {
  .xx_menu { align-items: flex-start; overflow-y: auto; }
  .xx_menu_cols { padding-top: 84px; padding-bottom: 32px; }
}
