/* ============================================================
   HMS Runo · /entruempelung
   Paleta: ciemny granat / biel / złote akcenty
   Mobile first, od 360 px. Bez zewnętrznych fontów.
   ============================================================ */

:root {
  color-scheme: light dark;
  --navy-900: #0d0d0d;
  --navy-800: #1a1a1a;
  --navy-700: #2e2e2e;
  --gold: #c8922a;
  --gold-deep: #9e6e1a;
  --white: #ffffff;
  --paper: #faf8f4;
  --ink: #171717;
  --ink-soft: #5e5e5e;
  --line: #e7e0d4;
  --radius: 14px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  --wrap: 1200px;

  /* Theme-aware page-surface tokens (light sections, cards, form fields) */
  --surface: var(--white);
  --surface-alt: var(--paper);
  --on-surface: var(--ink);
  --on-surface-soft: var(--ink-soft);
  --surface-line: var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #14171c;
    --surface-alt: #1b1f26;
    --on-surface: #eef1f6;
    --on-surface-soft: #a7adba;
    --surface-line: #2a2f38;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Dostępność ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typografia ---------- */
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.7rem, 5.5vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 0.6em;
}
.eyebrow-onDark { color: var(--gold); }

/* „fuga" – złota linia-sygnatura pod nagłówkami */
.bead {
  display: block;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  margin: 0 0 1.6rem;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--white); }

.btn-outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent;
}
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }

.btn-ghost {
  border-color: var(--gold);
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--gold); color: var(--navy-900); }

.link-gold { color: var(--gold); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-deep); }
.brand img {
  display: block;
  width: 170px;
  max-width: 52vw;
  height: auto;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(200,146,42,.16), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, rgba(200,146,42,.08), transparent 65%),
    var(--navy-900);
  color: var(--white);
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 32px; }
.hero-grid-single { max-width: 760px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); }

.hero-big {
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-weight: 700;
  margin: 0.4em 0 0.3em;
}
.hero-sub {
  color: #c6cede;
  margin: 0 0 1.4em;
  max-width: 52ch;
}

.hero-price {
  background: var(--white);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
  border-left: 6px solid var(--gold);
}
.price-main {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
}
.price-main strong {
  color: var(--gold-deep);
  font-size: 1.25em;
}
.price-secondary {
  margin: 0.35em 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.4rem;
}
.hero-cta .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.hero-cta .btn-outline:hover { background: var(--white); color: var(--navy-900); }

.hero-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero-benefits li {
  padding-left: 26px;
  position: relative;
  color: #dfe4ee;
}
.hero-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.6 8.3l1.4-1.4 2.5 2.5 5.5-5.6 1.4 1.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.6 8.3l1.4-1.4 2.5 2.5 5.5-5.6 1.4 1.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; }
.section-light { background: var(--surface-alt); }
.section-light:nth-of-type(odd) { background: var(--surface); }
.section-navy {
  background: var(--navy-900);
  color: var(--white);
}
.section-navy h2 { color: var(--white); }

.section-note {
  font-style: italic;
  color: var(--on-surface-soft);
  margin-top: -0.8rem;
  margin-bottom: 1.4rem;
}

/* ---------- Kafelki zastosowań ---------- */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 14px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Kroki ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  padding: 14px 16px 14px 60px;
  position: relative;
  font-weight: 600;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 800;
}

/* ---------- Jakość ---------- */
.quality-grid { display: grid; gap: 28px; }
.quality-text { color: #dfe4ee; max-width: 52ch; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 30px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  background: var(--gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.6 8.3l1.4-1.4 2.5 2.5 5.5-5.6 1.4 1.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 12.2 2.6 8.3l1.4-1.4 2.5 2.5 5.5-5.6 1.4 1.4z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Formularze ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  font: inherit;
  color: var(--on-surface);
  background: var(--surface);
}
.field-row { display: grid; gap: 0 16px; }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list summary {
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 1.4rem;
  font-weight: 800;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--on-surface-soft);
}

/* ---------- Kontakt ---------- */
.contact-form {
  background: var(--surface);
  color: var(--on-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-alt {
  margin-top: 1.2rem;
  color: #dfe4ee;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-800);
  color: #c6cede;
  padding: 40px 0 90px; /* miejsce na sticky CTA na mobile */
}
.footer-grid { display: grid; gap: 24px; }
.footer-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 12px;
}
.footer-brand img {
  display: block;
  width: 175px;
  max-width: 72vw;
  height: auto;
}
.site-footer a { color: var(--gold); }
.footer-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--navy-700);
  font-size: 0.9rem;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 23, 48, 0.96);
  backdrop-filter: blur(6px);
}

/* ============================================================
   Breakpointy (mobile first)
   ============================================================ */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .hero-grid-single { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; max-width: 640px; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}


/* Dodatki */
.launch-note {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 10px 14px;
  border: 1px solid rgba(200,146,42,.42);
  border-radius: 999px;
  background: rgba(200,146,42,.10);
  color: #f7ead1;
  font-size: .9rem;
}
.form-note {
  margin: 14px 0 0;
  color: var(--on-surface-soft);
  font-size: .9rem;
}
.site-header { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
@media (max-width: 420px) {
  .brand img { width: 145px; max-width: 50vw; }
  .header-nav .btn { padding: 8px 11px; font-size: .78rem; }
  .lang-switch { padding: 6px 8px; font-size: .74rem; }
  .sticky-cta .btn { padding: 12px 8px; font-size: .86rem; }
}
