/* =========================================================
   bezpiecznezwierzaki.pl — style strony
   Projekt: Figma „Redesign – lekki kierunek” (desktop 1440 / mobile 412)
   ========================================================= */

/* ---------- Font (hostowany lokalnie, bez połączeń z Google) ---------- */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/google-sans-flex-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/google-sans-flex-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/google-sans-flex-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/google-sans-flex-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  --cream: #FCF9F8;
  --white: #FFFFFF;
  --ink: #2A2225;
  --ink-soft: #75686C;       /* lead, tekst drugi */
  --ink-card: #6E5F64;       /* tekst w kartach */
  --ink-sage: #5F6B67;       /* tekst na szałwii */
  --ink-muted: #6F6266;      /* etykiety grup (poprawiony kontrast) */
  --rose: #B4415F;           /* CTA */
  --rose-dark: #8F3049;
  --rose-deep: #8B0012;      /* etykieta nad H1 */
  --rose-ink: #7A4452;
  --blush: #F8EBE8;
  --petal: #F0E4E5;
  --petal-2: #F4DDE0;
  --sage: #EEF3F0;
  --sage-2: #E4EBEA;
  --sage-ink: #4F6B63;
  --stone: #ECECE9;
  --teal: #0A4D4E;
  --line: #F1E4E1;
  --line-sage: #D9E4DF;
  --line-step: #CFDDD7;
  --field-border: #A8989A;   /* ramka pól formularza, kontrast 3:1 */

  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 28px;
  --container: 1200px;
  --section-y: clamp(50px, 6.25vw, 90px);

  --r-card: clamp(22px, 2.3vw, 32px);
  --r-big: clamp(24px, 2.8vw, 40px);

  --shadow-soft: 0 8px 30px rgba(180, 65, 95, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
}
@media (min-width: 900px) { :root { --gutter: clamp(32px, 8.33vw, 120px); } }
@media (max-width: 359px) { :root { --gutter: 20px; } }

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip; /* animowane ilustracje na pełną szerokość nie tworzą poziomego przewijania */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- Typografia ---------- */
.eyebrow {
  display: block;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--rose);
}
.h1 {
  font-size: clamp(38px, 4.72vw, 68px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(30px, 3.33vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.heading-group { display: flex; flex-direction: column; gap: 8px; }
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }
@media (min-width: 900px) { .heading-group { gap: 16px; } }
.section-intro { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .section-intro { gap: 40px; } }

/* ---------- Przycisk CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.btn:hover { background: var(--rose-dark); box-shadow: 0 10px 24px rgba(180, 65, 95, 0.22); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn__circle {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
  transition: transform .25s var(--ease-out);
}
.btn__circle .icon { width: 18px; height: 18px; }
.btn:hover .btn__circle { transform: rotate(45deg); }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: #083B3C; box-shadow: 0 10px 24px rgba(10, 77, 78, 0.22); }
@media (min-width: 900px) {
  .btn { min-height: 60px; padding: 8px 8px 8px 28px; font-size: 18px; }
  .btn__circle { width: 44px; height: 44px; }
}

.text-link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: #E4C9C4;
  text-underline-offset: 5px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--ink); }
@media (min-width: 900px) { .text-link { font-size: 16px; } }

/* ---------- Nagłówek / menu ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 16px 0;
  pointer-events: none;
}
@media (min-width: 1180px) { .site-header { padding-top: 40px; transition: transform .3s var(--ease-out); } .site-header.is-scrolled { transform: translateY(-24px); } }
.nav-pill {
  pointer-events: auto;
  max-width: 1248px;
  margin-inline: auto;
  min-height: 56px;
  padding: 6px 6px 6px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(42, 34, 37, 0.06);
}
@media (min-width: 1180px) {
  .nav-pill { min-height: 78px; padding: 8px 8px 8px 22px; box-shadow: 0 10px 30px rgba(42, 34, 37, 0.07); }
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink-card);
  min-height: 44px;
}
.brand__mark { width: 36px; height: 36px; color: var(--ink-card); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.brand__tag { font-size: 10px; font-weight: 300; }
.site-nav { display: none; }
.site-nav a {
  font-size: 15px; color: var(--ink-card); text-decoration: none;
  padding: 10px 4px; border-radius: 8px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 80%;
  transition: background-size .25s var(--ease-out), color .2s ease;
}
.site-nav a:hover { color: var(--ink); background-size: 100% 1px; }
.site-nav a[aria-current="page"] { color: var(--rose); }
.nav-cta { display: none; }
.menu-toggle {
  width: 44px; height: 44px;
  border: 0; border-radius: 999px;
  background: var(--stone);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background-color .2s ease;
}
.menu-toggle:hover { background: #E2E2DE; }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  pointer-events: auto;
  max-width: 1248px;
  margin: 8px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(42, 34, 37, 0.10);
  padding: 12px;
  transform-origin: top right;
  animation: menu-in .18s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  padding: 12px 16px; border-radius: 16px; line-height: 1.35;
  text-decoration: none; font-size: 17px; color: var(--ink);
}
.mobile-menu a:not(.btn):hover { background: var(--blush); }
.mobile-menu .btn { width: 100%; margin-top: 8px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }

@media (min-width: 1180px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 32px; }
  .nav-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- HERO (Nie martw się rachunkiem u weterynarza) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 742px;
  padding-top: calc(88px + 48px);
  padding-bottom: 48px;
  background: #F4F2EE;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__content { display: flex; flex-direction: column; gap: 24px; max-width: 493px; }
.hero .eyebrow { color: var(--rose-deep); }
.hero__lead { max-width: 454px; font-size: clamp(16px, 1.32vw, 19px); }
/* H1 zawsze w 3 liniach */
.h1--lines > span { display: block; white-space: nowrap; }
/* akapit: na telefonie naturalne zawijanie, od 600 px zawsze te same 3 linie */
@media (min-width: 600px) {
  .hero__lead { max-width: none; }
  .hero__lead .line { display: block; white-space: nowrap; }
}
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; }
@media (max-width: 899px) {
}
/* telefon i tablet (do 899 px): tekst na tle w kolorze ściany z grafiki, ilustracja w całości pod spodem.
   Dolna krawędź grafiki jest przezroczysta (falista) – pasek na dole tła sekcji ma kolor następnej sekcji. */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; padding-bottom: 0;
          background: linear-gradient(to bottom, #ECECE9 calc(100% - 3vw), var(--cream) calc(100% - 3vw)); }
  .hero__media { position: relative; inset: auto; order: 2; margin-top: -30px; } /* grafika wsuwa się 30 px pod przycisk; z-index -2 trzyma ją pod treścią */
  .hero__media img { height: auto; aspect-ratio: 2600 / 2358; object-fit: contain; }
}
@media (min-width: 900px) {
  .hero { min-height: clamp(760px, 56.25vw, 1080px); padding-top: 158px; }
  .hero__media img { object-position: 0% 100%; }
  .hero__content { gap: 24px; }
  .hero__actions { gap: 28px; }
}

/* ---------- ILE KOSZTUJE WIZYTA U WETERYNARZA ---------- */
.costs__layout { display: grid; gap: 32px; }
.costs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cost-tile {
  border-radius: 24px;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 103px;
}
.cost-tile__label { font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.cost-tile__value { font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.cost-tile--visit { background: var(--blush); }
.cost-tile--consult { background: var(--sage); }
.cost-tile--consult .cost-tile__label { color: var(--ink-sage); }
.cost-tile--xray { background: var(--white); border: 1px solid #D8E2E1; }
.cost-tile--usg { background: var(--white); border: 1px solid #EFD6D9; }
.cost-tile--blood { background: var(--sage-2); }
.cost-tile--blood .cost-tile__label { color: var(--ink-sage); }
.cost-tile--hospital { background: var(--petal); }
.cost-tile--hospital .cost-tile__label { color: var(--rose-ink); }
.cost-tile--hospital .cost-tile__value { color: var(--rose); }
@media (min-width: 900px) {
  .costs__layout { grid-template-columns: minmax(0, 370fr) minmax(0, 740fr); gap: clamp(40px, 6.25vw, 90px); align-items: start; }
  .costs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cost-tile { border-radius: 32px; padding: 28px; min-height: 166px; }
  .cost-tile__label { font-size: 16px; line-height: 1.35; }
  .cost-tile__value { font-size: 22px; line-height: 1; letter-spacing: -0.03em; }
  .cost-tile--visit, .cost-tile--hospital { grid-column: span 2; }
  .cost-tile--visit .cost-tile__value, .cost-tile--hospital .cost-tile__value { font-size: 36px; }
}

/* ---------- POMOC W POKRYCIU KOSZTÓW LECZENIA (co obejmuje) ---------- */
.coverage { background: var(--sage); }
.coverage__intro { display: grid; gap: 32px; }
.coverage__image { width: 100%; aspect-ratio: 570 / 320; object-fit: cover; object-position: 50% 50%; }
/* mobile: ilustracja nad sekcją, od krawędzi do krawędzi ekranu (jak ilustracja „spacer”) */
@media (max-width: 899px) {
  .coverage { padding-top: 0; }
  .coverage__intro { display: flex; flex-direction: column; gap: 0; }
  .coverage__image {
    order: -1;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    margin: 0 calc(-1 * var(--gutter)) var(--section-y);
  }
}
.coverage__list { display: grid; gap: 8px; margin-top: 32px; }

/* Karta / zakładka „co obejmuje”
   mobile: akordeon – zwinięta = tytuł + pierwsza linia opisu z wielokropkiem,
           rozwinięta = pełny opis + etykieta z kwotą
   desktop: statyczne karty z pełną treścią */
.cover-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 0 14px;
  padding: 15px 18px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background-color .46s var(--ease-out), border-color .46s var(--ease-out);
}
.cover-item__circle {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--blush); color: var(--ink-card);
  transition: background-color .46s var(--ease-out), color .46s var(--ease-out);
}
.cover-item__circle .icon { width: 20px; height: 20px; }
.cover-item__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 1px; }
.cover-item__title { font-size: 16px; line-height: 1.3; font-weight: 500; }
.cover-item__btn { all: unset; cursor: pointer; display: inline; font: inherit; color: inherit; }
/* cała karta klikalna (rozciągnięty obszar przycisku) */
.cover-item__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cover-item__btn:focus-visible { outline: none; }
.cover-item:has(.cover-item__btn:focus-visible) { outline: 2px solid var(--rose); outline-offset: 3px; }
.cover-item__body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cover-item__text { font-size: 15px; line-height: 1.6; color: var(--ink-card); align-self: stretch; min-width: 0; }
.cover-item .tag { transition: background-color .46s var(--ease-out), color .46s var(--ease-out); }
.cover-item__toggle { width: 20px; height: 20px; margin-top: 11px; position: relative; }
.cover-item__toggle::before, .cover-item__toggle::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.25px; margin-top: -.6px;
  background: var(--ink); border-radius: 2px; transition: transform .46s var(--ease-out);
}
.cover-item__toggle::after { transform: rotate(90deg); }
.cover-item.is-expanded .cover-item__toggle::after { transform: rotate(0deg); }
.tag {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.5; font-weight: 500;
  background: var(--blush); color: var(--ink-card);
  white-space: nowrap;
}
@media (max-width: 899px) {
  /* zwinięta: jedna linia opisu z wielokropkiem, bez etykiety */
  .js .cover-item:not(.is-expanded):not(.is-closing) .cover-item__text {
    font-size: 13px; line-height: 1.5; color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .js .cover-item:not(.is-expanded):not(.is-closing) .tag { display: none; }
  .cover-item.is-expanded .cover-item__main, .cover-item.is-closing .cover-item__main { gap: 10px; }
  .cover-item.is-expanded { padding-bottom: 20px; }
  /* rozwinięta: tło #F8EBE8 */
  .cover-item.is-expanded { background: var(--blush); border-color: var(--blush); }
  .cover-item.is-expanded .cover-item__circle { background: var(--white); color: var(--rose); }
  .cover-item.is-expanded .tag { background: var(--white); color: var(--rose); }
}
@media (min-width: 900px) {
  .coverage__intro { grid-template-columns: minmax(0, 490fr) minmax(0, 570fr); gap: clamp(48px, 9.7vw, 140px); align-items: start; }
  .coverage__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 80px; }
  .cover-item { border-radius: 32px; padding: 30px; display: flex; flex-direction: column; gap: 24px; min-height: 310px; }
  .cover-item__circle { width: 48px; height: 48px; }
  .cover-item__circle .icon { width: 22px; height: 22px; }
  .cover-item__main { gap: 24px; padding: 0; }
  .cover-item__title { font-size: 21px; line-height: 1.25; }
  .cover-item__btn { cursor: default; pointer-events: none; }
  .cover-item__btn::after { display: none; }
  .cover-item__toggle { display: none; }
  .cover-item__body { gap: 24px; }
  /* kolory kart zgodnie z projektem */
  .cover-item--featured { background: var(--blush); border-color: var(--blush); }
  .cover-item--featured .cover-item__circle { background: var(--white); color: var(--rose); }
  .cover-item--featured .tag { background: var(--white); color: var(--rose); }
  .cover-item--sage { background: var(--sage); }
  .cover-item--sage .cover-item__circle, .cover-item--sage .tag { background: var(--white); color: var(--sage-ink); }
}

/* ---------- Ilustracja: spacer ---------- */
.illustration-band {
  background: linear-gradient(180deg, var(--sage) 8%, var(--cream) 88%);
}
@media (min-width: 900px) { .illustration-band { padding-inline: 24px; } }
.illustration-band img {
  object-position: 40% 50%;
  max-width: 1392px; width: 100%;
  margin-inline: auto;
  aspect-ratio: 1392 / 580; object-fit: cover;
}
@media (max-width: 899px) { .illustration-band img { aspect-ratio: 364 / 204; } }

/* ---------- ILE KOSZTUJE UBEZPIECZENIE PSA LUB KOTA ---------- */
.pricing__layout { display: grid; gap: 32px; }
.pricing__aside { display: flex; flex-direction: column; gap: 32px; }
.price-cta {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  padding-top: 20px;
}
.price-cta__title { font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.price-cta__text { color: var(--ink-soft); }
.price-cta .btn { margin-top: 16px; }
@media (min-width: 900px) {
  .pricing__layout { grid-template-columns: minmax(0, 516fr) minmax(0, 560fr); gap: clamp(40px, 8.33vw, 120px); align-items: stretch; }
  .pricing__aside { justify-content: space-between; gap: 72px; }
  .price-cta { background: var(--blush); border-radius: 32px; padding: 40px; gap: 24px; }
  .price-cta__title { font-size: 26px; letter-spacing: -0.015em; }
  .price-cta__text { color: var(--ink-card); }
  .price-cta .btn { margin-top: 0; }
}
/* kolejność na mobile: nagłówek → przełącznik i karta → CTA */
@media (max-width: 899px) {
  .pricing__aside { display: contents; }
  .pricing__heading { order: 1; }
  .pricing__widget { order: 2; }
  .price-cta { order: 3; }
}

/* przełącznik wariantu */
.pricing__widget { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.variant-switch {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; padding: 4px;
  background: var(--blush);
  border-radius: 999px;
}
.variant-switch__indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: 0;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(180, 65, 95, 0.12);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
  will-change: transform;
  z-index: 0;
}
.variant-switch__tab {
  position: relative; z-index: 1;
  min-height: 44px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent;
  font-size: 14px; line-height: 1.5; font-weight: 400;
  color: var(--ink-soft);
  transition: color .25s ease, border-color .2s ease;
}
.variant-switch__tab:hover { border-color: var(--ink-soft); }
.variant-switch__tab[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: transparent; }
.variant-switch__tab:focus-visible { outline-offset: 2px; border-color: var(--ink-soft); }
.no-js .variant-switch__tab[aria-selected="true"] { background: var(--white); }
@media (min-width: 900px) {
  .variant-switch__tab { min-height: 50px; font-size: 15px; }
}

/* karta ceny */
.price-stage {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  border-radius: 24px;
  transition: height .45s var(--ease-out);
}
.price-card {
  background: var(--sage);
  border-radius: 24px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
  border: 2px solid transparent;
}
.price-card[hidden] { display: none; }
.price-card--featured { border-color: var(--blush); }
.price-card__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 16px; }
.price-card__badge {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 16px 5px 12px;
  border-radius: 999px;
  background: rgba(248, 235, 232, 0.87);
  color: var(--rose);
  font-size: 14px; line-height: 1.5;
  white-space: nowrap;
}
.price-card__badge .icon { width: 19px; height: 19px; }
.price-card__variant, .price-card__price { display: flex; flex-direction: column; gap: 6px; }
.price-card__price { align-items: flex-end; text-align: right; }
.price-card__label { font-size: 14px; line-height: 1.5; color: var(--ink-sage); }
.price-card__name { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
.price-card__amount { font-size: 40px; line-height: 1; letter-spacing: -0.035em; color: var(--rose); white-space: nowrap; }
.price-card__divider { height: 1px; background: var(--line-sage); border: 0; margin: 0; }
.price-card__rows { display: flex; flex-direction: column; gap: 24px; }
.price-row { display: flex; flex-direction: column; gap: 6px; }
.price-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-row__title { font-size: 15px; line-height: 1.4; font-weight: 500; }
.price-row__value { font-size: 15px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.price-row--main .price-row__value { font-size: 20px; font-weight: 600; }
.price-row__note { font-size: 13px; line-height: 1.55; color: var(--ink-sage); }
@media (min-width: 900px) {
  .price-stage, .price-card { border-radius: 40px; }
  .price-card { padding: 30px 40px 40px; gap: 32px; }
  .price-card__head { grid-template-columns: 1fr auto; }
  .price-card__badge { grid-column: 1; grid-row: 1; font-size: 15px; }
  .price-card__variant { grid-column: 1; }
  .price-card__price { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .price-card__label { font-size: 15px; }
  .price-card__name { font-size: 30px; }
  .price-card__amount { font-size: 56px; }
  .price-card__rows { gap: 32px; }
  .price-row__title, .price-row__value { font-size: 16px; }
  .price-row--main .price-row__value { font-size: 24px; }
  .price-row__note { font-size: 14px; }
}
.price-hint { font-size: 13px; line-height: 1.5; color: var(--ink-soft); text-align: center; }
@media (min-width: 900px) { .price-hint { display: none; } }

/* ---------- JAK UBEZPIECZYĆ PSA LUB KOTA ---------- */
.steps-section { padding-block: 0 var(--section-y); }
.steps-card { background: var(--stone); border-radius: 24px; padding: 50px 28px; display: flex; flex-direction: column; gap: 32px; }
.steps-card .lead { color: var(--ink-sage); }
.steps-cta { display: flex; justify-content: center; }
@media (min-width: 900px) { .steps-cta { justify-content: flex-start; margin-top: -16px; } }
.steps { display: flex; flex-direction: column; gap: 6px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; align-content: start; }
.step__marker { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step__num {
  width: 44px; height: 44px; border-radius: 999px; background: var(--white);
  display: grid; place-items: center; color: var(--rose); font-size: 17px; font-weight: 500;
}
.step__line { width: 1px; flex: 1; min-height: 28px; background: var(--line-step); }
.step__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 26px; }
.step__title { font-size: 18px; line-height: 1.3; font-weight: 500; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--ink-sage); }
.step:last-child .step__line { visibility: hidden; }
@media (min-width: 900px) {
  .steps-section { background: var(--stone); padding-block: var(--section-y); }
  .steps-card { background: none; border-radius: 0; padding: 0; gap: 64px; }
  .steps-card .section-intro { max-width: 640px; gap: 16px; }
  .steps { flex-direction: row; gap: 32px; }
  .step { flex: 1; grid-template-columns: 1fr; gap: 22px; }
  .step__marker { flex-direction: row; gap: 16px; }
  .step__num { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }
  .step__line { height: 1px; width: auto; min-height: 0; flex: 1; }
  .step__body { padding: 0; gap: 22px; }
  .step__title { font-size: 20px; }
  .step__text { font-size: 16px; }
}
@media (max-width: 899px) {
  .steps-section .container { padding-inline: 28px; }
}

/* ---------- JAKIE ZWIERZAKI UBEZPIECZAMY ---------- */
.pets__layout { display: grid; gap: 32px; }
.pets__main { display: flex; flex-direction: column; gap: 32px; }
.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.55; }
.check-circle {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px;
  background: var(--blush); color: var(--rose); display: grid; place-items: center;
}
.check-circle .icon { width: 16px; height: 16px; }
.note-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  font-size: 14px; line-height: 1.6; color: var(--ink-card);
}
.note-box .icon { width: 20px; height: 20px; color: var(--ink-soft); margin-top: 1px; }
.requirements { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.requirements__title { font-size: 20px; line-height: 1.3; font-weight: 500; }
.requirements li { display: flex; gap: 18px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.requirements li + li { margin-top: 14px; }
.req-circle { display: none; }
@media (min-width: 900px) {
  .pets__layout { grid-template-columns: minmax(0, 638fr) minmax(0, 466fr); gap: clamp(40px, 6.7vw, 96px); align-items: end; }
  .pets__main { gap: 40px; }
  .checklist { gap: 18px; }
  .checklist li { gap: 16px; font-size: 18px; line-height: 1.5; }
  .check-circle { width: 34px; height: 34px; }
  .check-circle .icon { width: 17px; height: 17px; }
  .note-box { border-radius: 40px; padding: 24px; gap: 14px; font-size: 15px; }
  .note-box .icon { width: 22px; height: 22px; }
  .requirements { background: var(--white); border: 1px solid var(--line); border-radius: 40px; padding: 60px 48px; gap: 40px; }
  .requirements__title { font-size: 26px; line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; }
  .requirements ul { display: flex; flex-direction: column; gap: 40px; }
  .requirements li { font-size: 16px; color: var(--ink-card); }
  .requirements li + li { margin-top: 0; }
  .req-circle {
    display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 999px; background: var(--sage); color: var(--sage-ink);
  }
  .req-circle .icon { width: 22px; height: 22px; }
}

/* ---------- STOPKA (Pomagamy z rachunkiem u weterynarza) ---------- */
.site-footer { background: var(--blush); padding-block: 50px; }
.footer__top { display: flex; flex-direction: column; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.footer__title { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 400; }
.footer__col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__label { font-size: 12px; line-height: 1.5; color: var(--ink-muted); margin-bottom: 2px; }
.footer__col a {
  display: block; padding-block: 4px;
  font-size: 16px; line-height: 1.5;
  color: var(--ink-card); text-decoration: none;
}
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__col a .icon { display: inline-block; vertical-align: -2px; width: 16px; height: 16px; margin-left: 4px; }
.partners {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  padding: 40px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--ink-card);
  text-align: center;
}
.partners__intro { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.partners__intro .icon { width: 56px; height: 56px; opacity: .9; }
.partners__site { font-size: 20px; font-weight: 700; line-height: 1.6; }
.partners__claim, .partner__label { font-size: 12px; line-height: 1.4; }
.partners__sep { width: 100%; max-width: 208px; height: 1px; background: #CFC2BF; border: 0; margin: 0; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.partner .logo-pzu { width: 32px; height: 32px; }
.partner .logo-ignaszak { width: 72px; height: 23px; }
.partner .logo-projekt { width: 80px; height: 17px; }
/* mobile: logotypy lżejsze wizualnie, kolejność grup jak w projekcie */
@media (max-width: 899px) {
  .partners { color: var(--ink-soft); gap: 14px; }
  .partners__intro .icon, .partners__site, .partner svg { color: #A2959A; }
  .partners__intro .icon { width: 48px; height: 48px; opacity: 1; }
  .partners__site { font-size: 19px; color: #85767A; }
  .partner { gap: 10px; }
  .partners__sep { background: #E3D3D0; }
  .footer__top { gap: 28px; }
  .footer__brand { order: 0; }
  .footer__col--nav { order: 1; }
  .footer__col--docs { order: 2; }
  .footer__col--legal { order: 3; }
}
@media (min-width: 900px) {
  .partner .logo-pzu { width: 40px; height: 40px; }
  .partner .logo-ignaszak { width: 94px; height: 30px; }
  .partner .logo-projekt { width: 115px; height: 24px; }
  .partner__label { white-space: nowrap; }
  .partners__claim { max-width: 240px; }
}
.footer__disclaimer { margin-top: 32px; max-width: none; font-size: 13px; line-height: 1.6; color: var(--ink-card); }
.footer__disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer a:hover { color: var(--ink); }
.footer__bottom { margin-top: 32px; padding-top: 4px; border-top: 1px solid var(--ink-card); text-align: center; }
.footer__copy { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.footer__legal { display: none; }
.footer__col--legal { display: flex; }
@media (min-width: 900px) {
  .site-footer { padding-block: 90px; }
  .footer__top { flex-direction: row; justify-content: space-between; gap: 56px; }
  .footer__brand { align-items: flex-start; text-align: left; gap: 40px; max-width: 348px; }
  .footer__brand .heading-group { gap: 16px; }
  .footer__title { font-size: 32px; line-height: 1.15; }
  .footer__col--legal { display: none; }
  .partners {
    margin-top: 60px; flex-direction: row; justify-content: flex-start; gap: 32px;
    border-radius: 32px; padding: 24px 40px; text-align: left;
  }
  .partners__intro { flex-direction: row; gap: 40px; padding-right: 32px; }
  .partners__intro .icon { width: 38px; height: 38px; }
  .partners__site { font-size: inherit; font-weight: inherit; line-height: inherit; }
  .partners__claim { max-width: 210px; }
  .partners__sep { width: 1px; max-width: none; height: 44px; align-self: center; }
  .partners__intro .icon { width: 44px; height: 44px; }
  .partner { flex-direction: row; gap: 32px; }
  .footer__bottom { margin-top: 60px; border-top: 0; padding-top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
  .footer__legal { display: flex; gap: 31px; }
  .footer__legal a { font-size: 14px; color: var(--ink-card); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
  .footer__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
}
/* węższy desktop / tablet poziomo: logo strony w pierwszym rzędzie, partnerzy pod spodem */
@media (min-width: 900px) and (max-width: 1239px) {
  .partners { flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .partners__intro { flex-basis: 100%; justify-content: center; padding-right: 0; }
  .partners__intro + .partners__sep { display: none; }
  .partner { gap: 20px; }
}

/* =========================================================
   PODSTRONA FAQ
   ========================================================= */
.faq-hero {
  padding-top: calc(88px + 50px);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
}
.faq-hero__layout { display: grid; gap: 32px; }
.faq-hero__text { display: flex; flex-direction: column; gap: 16px; }
.faq-hero__media { display: none; }
@media (min-width: 900px) {
  .faq-hero { padding-top: 160px; }
  .faq-hero__layout { grid-template-columns: minmax(0, 616fr) minmax(0, 524fr); gap: 46px; align-items: end; }
  .faq-hero__text { gap: 32px; padding-top: 32px; padding-bottom: 116px; }
  .faq-hero__media { display: block; position: relative; height: 340px; overflow: hidden; }
  .faq-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .faq-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 2%, rgba(255,255,255,0) 38%); }
}

.faq__layout { display: grid; gap: 40px; }
.faq-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-filter__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--field-border);
  background: var(--white); color: var(--ink);
  font-size: 14px; line-height: 1.5;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.faq-filter__btn:hover { border-color: var(--rose); }
.faq-filter__btn[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--white); font-weight: 500; }
.faq-filter__count { display: none; }
.owu-box { display: none; }
@media (min-width: 900px) {
  .faq__layout { grid-template-columns: minmax(0, 320px) minmax(0, 800px); gap: 80px; justify-content: space-between; align-items: start; }
  .faq__aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 24px; }
  .faq-filter { flex-direction: column; flex-wrap: nowrap; gap: 6px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; }
  .faq-filter__btn { justify-content: space-between; min-height: 52px; padding: 0 20px; border: 0; font-size: 16px; }
  .faq-filter__btn:hover { background: var(--cream); }
  .faq-filter__btn[aria-pressed="true"] { background: var(--blush); color: var(--rose); }
  .faq-filter__count { display: inline; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
  .faq-filter__btn[aria-pressed="true"] .faq-filter__count { color: var(--rose); }
  .owu-box { display: flex; flex-direction: column; gap: 10px; background: var(--sage); border-radius: 28px; padding: 28px; }
  .owu-box__title { font-size: 17px; line-height: 1.35; font-weight: 500; }
  .owu-box p { font-size: 14px; line-height: 1.6; color: var(--ink-sage); }
  .owu-box a { font-size: 14px; font-weight: 500; color: var(--ink); text-underline-offset: 5px; text-decoration-color: #B9CEC5; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
}

.faq-groups { display: flex; flex-direction: column; gap: 40px; }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group[hidden] { display: none; }
.faq-group__title { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 400; padding-bottom: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 20px; transition: background-color .25s ease, border-color .25s ease; }
.faq-item.is-open { background: var(--blush); border-color: var(--blush); }
.faq-item__heading { font-size: inherit; font-weight: inherit; }
.faq-item__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; min-height: 64px;
  border: 0; background: none; text-align: left;
  font-size: 16px; line-height: 1.4; color: var(--ink);
  border-radius: 20px;
}
.faq-item.is-open .faq-item__btn { font-weight: 500; }
.faq-item__circle {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px;
  background: var(--blush); position: relative;
  transition: background-color .25s ease;
}
.faq-item.is-open .faq-item__circle { background: var(--white); }
.faq-item__circle::before, .faq-item__circle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.3px;
  margin: -.65px 0 0 -5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-out), background-color .25s ease;
}
.faq-item__circle::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__circle::before, .faq-item.is-open .faq-item__circle::after { background: var(--rose); }
.faq-item.is-open .faq-item__circle::after { transform: rotate(0deg); }
.faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease-out); }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__answer { padding: 0 38px 22px 18px; font-size: 15px; line-height: 1.65; color: var(--ink-card); }
.faq-item__answer .todo { color: var(--rose); font-weight: 500; }
@media (min-width: 900px) {
  .faq-groups { gap: 56px; }
  .faq-group { gap: 10px; }
  .faq-group__title { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; padding-bottom: 0; }
  .faq-item { border-radius: 24px; }
  .faq-item.is-open { border-radius: 28px; }
  .faq-item__btn { padding: 20px 28px; min-height: 82px; font-size: 18px; gap: 20px; border-radius: 24px; }
  .faq-item.is-open .faq-item__btn { font-size: 19px; padding-top: 26px; padding-bottom: 14px; }
  .faq-item__circle { width: 40px; height: 40px; }
  .faq-item__answer { padding: 0 132px 30px 28px; font-size: 16px; line-height: 1.7; }
}

/* kontakt */
.contact-section { padding-inline: 16px; }
.contact {
  max-width: 1200px; margin-inline: auto;
  background: var(--sage); border-radius: 32px; padding: 32px 16px 16px;
  display: grid; gap: 28px;
}
.contact__intro { display: flex; flex-direction: column; gap: 12px; padding-inline: 8px; }
.contact__title { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
.contact__text { font-size: 15px; line-height: 1.6; color: var(--ink-sage); }
.form {
  background: var(--white); border-radius: 24px; padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(79, 107, 99, 0.10);
  display: flex; flex-direction: column; gap: 20px;
}
.form__row { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 1.4; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--field-border); border-radius: 16px; background: var(--white);
  font-size: 16px; line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #857579; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 77, 78, 0.15); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field__error { font-size: 13px; line-height: 1.4; color: #B3261E; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--ink-card); }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--teal); }
.consent a { color: var(--ink); }
.consent.has-error { color: #B3261E; }
.form__footer { display: flex; flex-direction: column-reverse; align-items: center; gap: 20px; }
.form__note { font-size: 13px; color: var(--ink-soft); }
.form__status { font-size: 15px; line-height: 1.5; padding: 14px 18px; border-radius: 16px; }
.form__status:empty { display: none; }
.form__status.is-success { background: var(--sage); color: var(--sage-ink); }
.form__status.is-error { background: #FBEAEA; color: #8C1D18; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 900px) {
  .contact-section { padding-inline: var(--gutter); padding-block: var(--section-y); }
  .contact { grid-template-columns: minmax(0, 275fr) minmax(0, 653fr); gap: 80px; border-radius: 40px; padding: 88px 96px; }
  .contact__intro { gap: 40px; padding: 0; }
  .contact__title { font-size: 44px; line-height: 1.08; }
  .contact__text { font-size: 18px; }
  .form { border-radius: 32px; padding: 40px; gap: 24px; box-shadow: 0 30px 60px rgba(79, 107, 99, 0.12); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__footer { flex-direction: row; justify-content: space-between; }
}
.faq-spacer { height: 56px; }
@media (min-width: 900px) { .faq-spacer { display: none; } }

/* =========================================================
   RUCH PRZY WCZYTYWANIU SEKCJI (design-motion-principles)
   Optyka: Jakub Krehel (subtelny polish) + jeden moment Jhey (linie kroków).
   Nagłówki i akapity pojawiają się od razu – animujemy tylko media i grupy.
   Klasa .motion-ok jest dodawana tylko, gdy użytkownik nie ogranicza ruchu.
   ========================================================= */
:root { --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.motion-ok [data-reveal] {
  transition:
    opacity var(--rd, 560ms) var(--reveal-ease),
    transform var(--rd, 560ms) var(--reveal-ease),
    filter var(--rd, 560ms) var(--reveal-ease);
  transition-delay: var(--d, 0ms);
}
.motion-ok [data-reveal]:not(.is-in) { opacity: 0; }

/* hero: ilustracja „osiada”, treść wchodzi 3 krokami (jedyna sekwencja na wejściu) */
.motion-ok [data-reveal="hero-media"] { --rd: 1100ms; transform-origin: 60% 70%; }
.motion-ok [data-reveal="hero-media"]:not(.is-in) { transform: scale(1.035); opacity: 1; } /* obraz LCP widoczny od razu, tylko „osiada” */
.motion-ok [data-reveal="hero"] { --rd: 520ms; }
.motion-ok [data-reveal="hero"]:not(.is-in) { transform: translateY(10px); }

/* ilustracje: materializacja (blur tylko na obrazach, nigdy na tekście) */
.motion-ok [data-reveal="image"] { --rd: 700ms; }
.motion-ok [data-reveal="image"]:not(.is-in) { transform: translateY(12px) scale(1.015); filter: blur(4px); }

/* grupy treści (karty zakresu, cennik, kontakt) */
.motion-ok [data-reveal="group"] { --rd: 560ms; }
.motion-ok [data-reveal="group"]:not(.is-in) { transform: translateY(16px); }

/* karty pojawiające się jedna po drugiej (koszty, zakres ochrony); odstęp nadaje skrypt */
.motion-ok [data-reveal="tile"] { --rd: 520ms; }
.motion-ok [data-reveal="tile"]:not(.is-in) { transform: translateY(14px); }

/* kafelki kosztów „osiadają” jako całość */
.motion-ok [data-reveal="settle"] { --rd: 600ms; transform-origin: 50% 0; }
.motion-ok [data-reveal="settle"]:not(.is-in) { transform: scale(0.97); }

/* kroki: linia łącząca rysuje się po kolei – pokazuje kolejność procesu */
.motion-ok [data-reveal="steps"] { opacity: 1 !important; transition: none; }
.motion-ok .steps .step__line {
  transform-origin: 50% 0;
  transition: transform 700ms var(--reveal-ease);
  transition-delay: calc(var(--i, 0) * 160ms + 150ms);
}
.motion-ok .steps:not(.is-in) .step__line { transform: scaleY(0); }
@media (min-width: 900px) {
  .motion-ok .steps .step__line { transform-origin: 0 50%; }
  .motion-ok .steps:not(.is-in) .step__line { transform: scaleX(0); }
}

/* ---------- Ruch: szacunek dla ustawień systemu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Bez JavaScript: wszystkie warianty jeden pod drugim ---------- */
.no-js .variant-switch, .no-js .price-hint { display: none; }
.no-js .price-stage { display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.no-js .price-card[hidden] { display: flex; }
.no-js .faq-item__panel { grid-template-rows: 1fr; }

/* =========================================================
   PODSTRONA KONTAKT
   ========================================================= */
.page-top { padding-top: calc(88px + 40px); background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 320px); }
.contact__more { font-size: 15px; line-height: 1.6; color: var(--ink-sage); }
.contact__more a { color: var(--ink); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .page-top { padding-top: 120px; }
  .contact__more { font-size: 16px; }
}

/* =========================================================
   PODSTRONY PRAWNE (polityka prywatności, cookies, regulamin, RODO)
   ========================================================= */
.legal-page { padding-top: calc(88px + 50px); padding-bottom: var(--section-y); background: linear-gradient(180deg, #FFFFFF 0%, var(--cream) 360px); }
.legal-head { padding-bottom: 32px; }
.legal-layout { display: grid; gap: 32px; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 20px 20px 16px; align-self: start; }
.legal-toc__title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.legal-toc ol { display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.4; color: var(--ink-card); text-decoration: none; }
.legal-toc a:hover { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }

.legal { max-width: 760px; min-width: 0; color: var(--ink-card); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal__intro p + p { margin-top: 12px; }
.legal__section { padding-top: 40px; scroll-margin-top: 110px; }
.legal h2 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul ul { list-style: circle; margin-top: 8px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--rose); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal small { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.legal a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }

.legal-related { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-related__title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.legal-related__links { display: flex; flex-wrap: wrap; gap: 8px; }
.legal .legal-related__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; text-decoration: none; }
.legal .legal-related__links a:hover { border-color: var(--rose); color: var(--rose-dark); }

@media (min-width: 900px) {
  .legal-page { padding-top: 170px; }
  .legal-head { padding-bottom: 56px; }
  .legal-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
  .legal-toc { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; }
  .legal { font-size: 17px; }
  .legal h2 { font-size: 26px; }
  .legal__section { padding-top: 48px; }
}
