/* ==========================================================================
   Strona firmy sprzątającej — arkusz stylów
   Kierunek „Rodzinny fach": ciepły papier i oliwkowa zieleń.
   Typografia: Newsreader (nagłówki) + Figtree (tekst).
   ========================================================================== */

:root {
  /* --- kolory (wszystkie lekko zabarwione — bez czystej bieli i czerni) --- */
  --paper:        #f5f0e6;
  --surface:      #fbf8f2;
  --sand:         #e6ddcb;
  --line:         #d9cfbd;
  --line-strong:  #cfc4af;
  --ink:          #22261f;
  --ink-soft:     #3f443a;
  --muted:        #5a5f52;
  --olive:        #3f5a3c;
  --olive-dark:   #2c3f2a;
  --on-olive:     #f5f0e6;
  --on-olive-2:   #e4dccb;
  --accent:       #3f5a3c;
  --accent-dark:  #2c3f2a;
  --footer-text:  #d8d1c1;
  --ok-bg:        #dfe6d6;
  --err-bg:       #f3dfd3;
  --err-text:     #7f3e21;

  /* --- typografia --- */
  --font-head: "Newsreader", "Georgia", "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- siatka i rytm --- */
  --wrap: 1200px;
  --pad: clamp(1.25rem, 5vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--olive { background: var(--olive); color: var(--on-olive); }
.section--olive h2, .section--olive h3 { color: var(--surface); }
.section--olive p { color: var(--on-olive-2); }

/* mała linijka nad nagłówkiem — zwykłe zdanie, nie wersaliki */
.kicker {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section--olive .kicker { color: #e9dfc6; }

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
}

.muted { color: var(--muted); }

/* ------------------------------------------------------------------ linki i przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 56px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--olive); color: var(--on-olive); }
.btn--primary:hover { background: var(--olive-dark); color: var(--on-olive); }
.btn--light { background: var(--paper); color: var(--olive-dark); }
.btn--light:hover { background: var(--surface); color: var(--olive-dark); }
.btn--outline { border-color: var(--olive); color: var(--olive-dark); background: transparent; }
.btn--outline:hover { background: var(--olive); color: var(--on-olive); }
.section--olive .btn--outline { border-color: var(--on-olive-2); color: var(--on-olive); }
.section--olive .btn--outline:hover { background: var(--on-olive); color: var(--olive-dark); }
.btn--block { width: 100%; }

.text-link {
  display: inline-block;
  padding-block: .4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.text-link--accent { color: var(--accent); text-decoration-color: currentColor; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

/* ------------------------------------------------------------------ nagłówek */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 240, 230, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 88px;
}

.logo {
  display: block;
  margin-right: auto;
  line-height: 0;
}
.logo img { display: block; height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1.02rem; padding-block: .6rem; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .45em;
  text-decoration-thickness: 2px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone svg { width: 19px; height: 19px; }
.header__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .header__bar { min-height: 72px; gap: .75rem; }
  .logo img { height: 44px; }
  .burger { display: grid; }
  .header__phone span { display: none; }
  .header__phone { width: 46px; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--pad) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] {
    text-decoration: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: calc(var(--pad) - 4px) var(--pad);
    border-left: 4px solid var(--accent);
    background: var(--surface);
  }
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 em, .page-head h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin-bottom: 2.4rem; }

/* panel z formularzem obok hero i na stronie kontaktu */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}
.panel h2, .panel h3 { margin-bottom: .3em; }
.panel > p { color: var(--muted); font-size: .98rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ formularze */

.field { margin-bottom: 1rem; }
.field > label, .field__label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .7rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(63, 90, 60, .18);
}
.field__hint { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--olive); }

.form-note { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .95rem; margin: 1rem 0 0; }
.form-note--ok { background: var(--ok-bg); color: var(--olive-dark); }
.form-note--err { background: var(--err-bg); color: var(--err-text); }

/* ------------------------------------------------------------------ nagłówek sekcji */

.section-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: .5rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ lista usług */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: grid;
  grid-template-columns: 4rem 1fr;
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
}
.service__num { font-family: var(--font-head); font-size: 1.35rem; color: var(--accent); line-height: 1.6; }
.service h3 { margin-bottom: .35em; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--accent); }
.service p { color: var(--muted); margin-bottom: .6rem; }
.service__price { font-weight: 600; color: var(--ink) !important; margin: 0 !important; }
.service__price span { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-template-columns: 2.75rem 1fr; padding-block: 1.5rem; }
}

/* ------------------------------------------------------------------ historia i zasady */

.story {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 2rem clamp(2.5rem, 7vw, 6rem);
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.story blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.story p { color: var(--ink-soft); font-size: 1.1rem; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles li { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.principles h3 { font-size: 1.6rem; margin-bottom: .4em; }
.principles p { color: var(--muted); font-size: 1rem; margin: 0; }
.section--olive .principles li { border-top-color: var(--on-olive-2); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; gap: 2rem; } }

/* ------------------------------------------------------------------ układ dwukolumnowy */

.split {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 2.5rem clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.split--center { align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* lista z ptaszkami */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding: .7rem 0 .7rem 2rem;
  border-top: 1px solid var(--line);
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 1.05rem; height: 1.05rem;
  background: var(--olive);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section--olive .ticks li { border-color: rgba(228, 220, 203, .3); color: var(--on-olive); }
.section--olive .ticks li::before { background: #e9dfc6; }

.list-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 .6rem; }
.list-title + .ticks { margin-bottom: 2rem; }

/* ------------------------------------------------------------------ strefa działania */

.areas { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 1.5rem 0 0; list-style: none; font-size: 1.05rem; }
.areas li + li::before { content: "·"; margin-right: 1.4rem; color: var(--line-strong); }
.section--olive .areas li { color: var(--on-olive); }
.section--olive .areas li + li::before { color: #8fa38b; }

/* ------------------------------------------------------------------ kontakt: CTA */

.cta {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem clamp(2.5rem, 7vw, 6rem);
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; }
.cta__phone {
  display: inline-block;
  margin: .5rem 0 .75rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--accent);
  text-decoration: none;
}
.cta__phone:hover { color: var(--accent-dark); }
.cta dl { margin: 0; }
.cta dl div { border-top: 1px solid var(--line-strong); padding-block: 1rem 1.4rem; }
.cta dt { font-size: .92rem; color: var(--muted); }
.cta dd { margin: .15rem 0 0; font-size: 1.1rem; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ nagłówek podstrony */

.page-head { padding-block: clamp(2.8rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.5rem, 6.5vw, 4.6rem); max-width: 16em; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ usługi: szczegóły */

.detail__num { font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); display: block; margin-bottom: .6rem; }
.detail .actions { margin-top: 1.8rem; }
.note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }

/* ------------------------------------------------------------------ cennik: pakiety */

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.package {
  display: flex;
  flex-direction: column;
  padding: 2.25rem clamp(1.25rem, 3vw, 2.25rem);
}
.package + .package { border-left: 1px solid var(--line-strong); }
.package--featured { background: var(--surface); box-shadow: inset 0 4px 0 var(--olive); }
.package__tag { font-size: .95rem; font-weight: 600; color: var(--olive); margin-bottom: .5rem; }
.package h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .6em; }
.package__price { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin: 0 0 .35rem; }
.package__unit { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.package .ticks { margin-bottom: 1.8rem; font-size: .98rem; }
.package .btn { margin-top: auto; }
@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr; }
  .package + .package { border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* ------------------------------------------------------------------ kalkulator */

.calc {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.calc__panel fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.calc__panel legend { padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: .98rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--on-olive); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type="range"] { flex: 1; min-height: 44px; padding: 0; border: 0; background: none; accent-color: var(--olive); }
.range-val { font-family: var(--font-head); font-size: 1.5rem; min-width: 5ch; text-align: right; }

.calc__result {
  position: sticky;
  top: 110px;
  background: var(--olive);
  color: var(--on-olive);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.calc__result h3 { color: var(--on-olive-2); font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .4rem; }
.calc__price { font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1.05; color: var(--surface); margin-bottom: .6rem; }
.calc__note { font-size: .92rem; color: var(--on-olive-2); }
.calc__lines { list-style: none; padding: 1rem 0 0; margin: 1rem 0 1.5rem; border-top: 1px solid rgba(228, 220, 203, .3); }
.calc__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; color: var(--on-olive-2); }
@media (max-width: 860px) { .calc__result { position: static; } }

/* ------------------------------------------------------------------ tabela */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
th { font-weight: 600; color: var(--muted); font-size: .92rem; border-bottom: 2px solid var(--ink); }
td:first-child { padding-right: 1.5rem; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
td:nth-child(2) { color: var(--muted); padding-right: 1.5rem; }

/* ------------------------------------------------------------------ FAQ */

.faq { max-width: 820px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq__body { padding-bottom: 1.4rem; color: var(--muted); max-width: 40em; }
.faq__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ kontakt */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { margin: 0; }
.contact-list div { border-top: 1px solid var(--line-strong); padding-block: 1.1rem 1.3rem; }
.contact-list div:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-list dt { font-size: .92rem; color: var(--muted); margin-bottom: .15rem; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list dd a { color: var(--ink); font-weight: 600; }
.contact-list dd a:hover { color: var(--accent); }
.contact-list small { display: block; font-size: .92rem; color: var(--muted); margin-top: .2rem; }

/* ------------------------------------------------------------------ stopka */

.footer {
  background: var(--ink);
  color: var(--footer-text);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer__logo { display: block; height: 58px; width: auto; margin-bottom: 1rem; }
.footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--paper); margin: 0 0 .7rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { color: var(--paper); text-decoration: underline; }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(216, 209, 193, .2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: .88rem;
  color: #b3ac9c;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ pasek na telefonie */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 248, 242, .97);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 52px; padding: 0 1rem; }
@media (max-width: 700px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 76px; }
}


/* ========================================================================
   Wejście treści
   ======================================================================== */

@keyframes mtg-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes mtg-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Pierwszy ekran wjeżdża zaraz po wejściu na stronę. Animacja kończy się na
   widocznej treści, więc nawet gdyby się nie wykonała, wszystko widać. */
.header { animation: mtg-fade .5s ease both; }

.hero h1,
.hero .lead,
.hero .actions,
.hero .panel,
.page-head .kicker,
.page-head h1,
.page-head .lead {
  animation: mtg-rise .7s cubic-bezier(.22, .68, .25, 1) both;
}
.hero h1       { animation-delay: .05s; }
.hero .lead    { animation-delay: .14s; }
.hero .panel   { animation-delay: .16s; }
.hero .actions { animation-delay: .22s; }
.page-head h1    { animation-delay: .06s; }
.page-head .lead { animation-delay: .14s; }

/* Reszta strony pojawia się dopiero, gdy do niej dojedziesz. Chowamy wyłącznie
   wtedy, gdy JavaScript działa (klasa .js na <html>, ustawiana w <head>) —
   bez JS treść jest normalnie widoczna. */
.js .section-head,
.js .service,
.js .story,
.js .principles > li,
.js .split,
.js .detail,
.js .faq details,
.js .cta,
.js .table-wrap,
.js .calc {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .68, .25, 1);
}
.js .section-head.is-in,
.js .service.is-in,
.js .story.is-in,
.js .principles > li.is-in,
.js .split.is-in,
.js .detail.is-in,
.js .faq details.is-in,
.js .cta.is-in,
.js .table-wrap.is-in,
.js .calc.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .section-head,
  .js .service,
  .js .story,
  .js .principles > li,
  .js .split,
  .js .detail,
  .js .faq details,
  .js .cta,
  .js .table-wrap,
  .js .calc {
    opacity: 1;
    transform: none;
  }
}
