/* Base */
:root {
  --bg: #FFF8F4;
  --surface: #FFFFFF;
  --text: #2B1D14;
  --muted: #6B5545;
  --accent: #B53A0B;
  --accent-text: #FFFFFF;
  --plate-bg: #2B1D14;
  --plate-text: #FFE8D6;
  --line: #EAD8C9;
  --font-heading: Optima, Candara, 'Segoe UI', 'Noto Sans', sans-serif;
  --font-body: Georgia, Cambria, 'Times New Roman', serif;
  --radius-card: 14px;
  --radius-btn: 6px;
  --section-gap: 56px;
  --shadow-soft: 0 1px 2px rgb(43 29 20 / .06), 0 12px 32px rgb(43 29 20 / .08);
  --pad-edge: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgb(181 58 11 / .18), transparent 42%),
    radial-gradient(circle at 88% 24%, rgb(181 58 11 / .14), transparent 46%),
    radial-gradient(circle at 70% 88%, rgb(107 85 69 / .12), transparent 48%),
    radial-gradient(circle at 8% 76%, rgb(181 58 11 / .12), transparent 40%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 650; }

p { max-width: 68ch; margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  z-index: 100;
  text-decoration: none;
}
.u-skip:focus { left: 12px; top: 12px; }

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-accent {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
}

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad-edge);
}

.l-section {
  padding-block: clamp(64px, 9vw, 128px);
  margin-block: var(--section-gap);
}

/* Header */
.l-announce {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.l-announce p { margin: 0; max-width: none; }

.l-header {
  background: var(--surface);
  border-bottom: 4px solid var(--accent);
  position: relative;
}

.l-header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.c-nav { margin-right: auto; }

.c-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.c-nav-link {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 0%;
  background-position: bottom left;
  transition: background-size .3s ease, color .3s ease;
}
.c-nav-link:hover { color: var(--accent-text); background-size: 100% 100%; }
.c-nav-link[aria-current="page"]::after {
  content: "";
  display: block;
  width: 6px; height: 6px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--accent);
  animation: nav-dot 1.6s ease-in-out infinite;
}
.c-nav-link[aria-current="page"]:hover::after { background: var(--accent-text); }

@keyframes nav-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .6; }
}

.c-logo {
  margin-left: auto;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.c-nav-toggle {
  display: none;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
  flex: none;
}
.c-nav-toggle-box {
  display: block;
  width: 100%; height: 3px;
  background: var(--accent);
  box-shadow: 0 -8px 0 var(--accent), 0 8px 0 var(--accent);
}
.c-nav-toggle:hover { background: var(--bg); }
.c-nav-toggle:active { background: var(--line); }

/* Hero */
.c-hero {
  padding-top: clamp(40px, 6vw, 72px);
}

.l-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.l-hero-copy {
  text-align: center;
  background: rgb(255 255 255 / .72);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  animation: hero-in .6s ease both;
}

@keyframes hero-in {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

.c-hero-title { margin: 0 0 16px; }

.c-hero-lead {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem);
  color: var(--muted);
  margin-inline: auto;
}

.l-hero-form {
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-soft);
}

.c-form-title { margin-top: 0; }

.l-hero-photo { margin-top: var(--section-gap); }

/* Photos */
.c-photo {
  margin: 0;
  padding: clamp(10px, 2vw, 18px);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.c-photo img { border-radius: calc(var(--radius-card) - 6px); width: 100%; }
.c-photo { overflow: hidden; }
.c-photo img { transition: transform .5s ease; }
.c-photo:hover img { transform: scale(1.04); }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  font-size: 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 50%, #8F2E09 50%, #8F2E09 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-position .35s ease, background-color .2s ease, color .2s ease;
}
.c-btn:hover { background-position: 100% 0%; }
.c-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.c-btn:active { background: #7A2708; color: #FFE8D6; }

.c-btn-alt {
  background: transparent;
  color: var(--accent);
}
.c-btn-alt:hover { color: var(--accent-text); }

/* Plate */
.c-plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}
.c-plate p { color: var(--plate-text); margin: 0; max-width: none; }
.c-plate a { color: #FFC9A6; }
.c-plate-title { color: var(--plate-text); margin-top: 0; }

.l-contact-plate {
  display: grid;
  gap: 24px;
  align-items: center;
}

/* Cards */
.c-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgb(43 29 20 / .07), 0 18px 44px rgb(43 29 20 / .12);
}
.c-card h3 { margin-top: 0; }
.c-card p { margin-bottom: 0; }

/* Steps */
.l-steps-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 24px;
}
.l-steps-grid > li { counter-increment: step; }
.l-steps-grid h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Services list */
.c-list-divided {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.c-list-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.c-list-item:first-child { border-top: 1px solid var(--line); }
.c-list-item h3 { margin: 0 0 6px; }
.c-list-item p { margin: 0; }

/* Prices */
.c-price-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.c-price-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.c-price-item:first-child { border-top: 1px solid var(--line); }
.c-price-value {
  font-family: var(--font-heading);
  font-weight: 650;
  color: var(--accent);
}

/* FAQ */
.c-faq { margin-top: 32px; }
.c-faq-item {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  overflow: hidden;
}
.c-faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 650;
  list-style: none;
  position: relative;
}
.c-faq-item summary::-webkit-details-marker { display: none; }
.c-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  transition: transform .3s ease;
}
.c-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.c-faq-item p { padding: 0 24px 20px; margin: 0; }
.c-faq-item[open] summary { color: var(--accent); }

/* Form */
.c-form { margin-top: 20px; }
.c-form-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 12px 0;
}
.c-field { margin-bottom: 18px; }
.c-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.c-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.c-input::placeholder { color: var(--muted); opacity: 1; }
.c-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(181 58 11 / .15); }
.c-textarea { min-height: 120px; resize: vertical; }
.c-field-err {
  color: #8F2E09;
  font-size: 0.9rem;
  margin: 6px 0 0;
  font-family: var(--font-heading);
}
.c-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
  font-size: 0.95rem;
}
.c-check input {
  width: 20px; height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}
.c-check label { display: inline; }
.c-form-btn { width: 100%; height: 48px; padding: 12px 24px; font-weight: 600; }
.is-sending { opacity: .6; pointer-events: none; }

/* Prose (policies, terms, inner pages) */
.c-prose { max-width: 760px; }
.c-prose ol { padding-left: 24px; }
.c-prose ol > li { margin-bottom: 14px; }
.c-prose ul { padding-left: 20px; }
.c-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.c-prose th, .c-prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.c-prose th { font-family: var(--font-heading); background: var(--surface); }

/* Page intro */
.c-page-head {
  padding-block: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}
.c-page-head .c-prose { margin-inline: auto; }

/* Contacts block */
.c-plate ul,
.l-footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c-plate ul li,
.l-footer-grid ul li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  font-size: 1.05rem;
}
.c-plate ul li span,
.l-footer-grid ul li span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .85;
}

/* Footer */
.c-footer {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(40px, 6vw, 72px) 0 32px;
  margin-top: 0;
}
.l-footer-grid {
  display: grid;
  gap: 32px;
}
.c-footer address {
  font-style: normal;
}
.c-footer address p { color: var(--plate-text); margin: 0 0 12px; font-size: 0.98rem; }
.c-footer a { color: #FFC9A6; }
.c-footer-links li a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}
.c-footer-links li a:hover { text-decoration: underline; }
.c-footer-copy {
  border-top: 1px solid rgb(255 232 214 / .2);
  padding-top: 20px;
  margin: 32px 0 0;
  font-size: 0.95rem;
  color: var(--plate-text);
}

/* Reveal */
html.has-js .c-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
html.has-js .c-reveal.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.c-status {
  text-align: center;
  padding-block: clamp(64px, 10vw, 128px);
}
.c-status .c-btn { margin-top: 12px; }

/* Breakpoints */
@media (max-width: 479px) {
  .c-hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .c-logo { font-size: 1rem; max-width: 140px; white-space: normal; }
  .l-contact-plate { text-align: left; }
}

@media (max-width: 767px) {
  .c-nav-toggle { display: block; }
  .c-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 4px solid var(--accent);
    box-shadow: var(--shadow-soft);
    padding: 8px var(--pad-edge) 16px;
  }
  .c-nav.is-open { display: block; }
  .c-nav-list { flex-direction: column; gap: 0; }
  .c-nav-link { display: block; padding: 12px 8px; }
  .l-header-bar { gap: 16px; }
  .c-price-item { flex-direction: column; gap: 2px; }
  .l-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .l-steps-grid { gap: 16px; }
  .c-card { padding: 24px 20px; }
}

@media (min-width: 480px) and (max-width: 639px) {
  .l-hero-grid { gap: 28px; }
}

@media (min-width: 640px) {
  .l-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .l-hero-grid { grid-template-columns: 1fr minmax(340px, 420px); }
  .l-contact-plate { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 768px) {
  .l-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .l-steps-grid { grid-template-columns: repeat(4, 1fr); }
  .l-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .l-hero-grid { grid-template-columns: 1fr 420px; gap: 48px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.has-js .c-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Section rhythm and plates */
#ogloszenie .c-plate {
  padding: clamp(32px, 5vw, 48px) clamp(24px, 6vw, 64px);
  display: grid;
  place-content: center;
}
#ogloszenie .c-plate p {
  max-width: 62ch;
  text-align: left;
}

@media (max-width: 479px) {
  #ogloszenie .c-plate p { max-width: 34ch; }
}

.l-hero-photo .c-photo img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  :root { --section-gap: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-photo img { transform: none; }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  25% { opacity: 1; transform: none; }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  html.has-js .c-reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
  }
}
