/* style dla strony Hani (doradca ubezpieczeniowy)
   kolorystyka: granat + zloto, mialo byc elegancko i budzic zaufanie */

/* zmienne */
:root {
  --navy: #101C33;
  --navy-deep: #0A1425;
  --navy-soft: #1A2A4A;
  --gold: #C6A15B;
  --gold-light: #E3CB9A;
  --gold-dark: #8A6D33;      /* ciemniejsze zloto na jasne tla, inaczej kontrast lezy */
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #1C2536;
  --muted: #5C6678;
  --light: #EDF1F8;          /* tekst na granatowym tle */
  --light-muted: #AAB5C9;    /* jw. ale przygaszony */
  --border: #E9E2D6;
  --border-navy: rgba(198, 161, 91, 0.25);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 8px rgba(16, 28, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 28, 51, 0.10);
  --shadow-lg: 0 18px 44px rgba(16, 28, 51, 0.16);

  --radius: 14px;
  --nav-height: 76px;
  --container: 1140px;
}

/* reset i podstawy */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul[class], ol[class] { list-style: none; }

section { scroll-margin-top: calc(var(--nav-height) + 12px); }

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

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* logotypy socialek sa rysowane wypelnieniem, wiec odwracam domyslne ustawienia */
.icon--brand {
  fill: currentColor;
  stroke: none;
}

/* layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(72px, 10vw, 120px); }
.section--cream { background: var(--cream); }
.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--light);
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
  text-align: center;
}
.section--navy .section__eyebrow { color: var(--gold); }
.about .section__eyebrow { text-align: left; }

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section__title--center {
  text-align: center;
  margin-inline: auto;
}
.section__title--center::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin: 22px auto 0;
}

.section__intro {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--muted);
}
.section__intro--light { color: var(--light-muted); }

/* przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(198, 161, 91, 0.35);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(198, 161, 91, 0.45);
}

.btn--outline {
  border: 1.5px solid var(--border-navy);
  color: var(--light);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--nav { min-height: 44px; padding: 10px 22px; font-size: 0.875rem; }

/* menu gorne */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 37, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border-navy);
  box-shadow: 0 8px 30px rgba(4, 10, 22, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1.25;
}
.nav__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(198, 161, 91, 0.55);
  overflow: hidden;
  flex-shrink: 0;
}
.nav__brand-logo img { width: 84%; height: 84%; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; }
.nav__brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav__brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a:not(.btn) {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:not(.btn):hover { color: var(--gold-light); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border-radius: 10px;
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border-navy);
    box-shadow: 0 24px 40px rgba(4, 10, 22, 0.5);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 4px; font-size: 1.0625rem; }
  .nav__links .btn { margin-top: 12px; }
}

/* hero */
.hero {
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(198, 161, 91, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(26, 42, 74, 0.9), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--light);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(72px, 9vw, 128px);
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero__lead {
  font-size: 1.0625rem;
  color: var(--light-muted);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero__rotator {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 24px;
  margin-bottom: 40px;
  max-width: 560px;
}

.rotator__quote {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.rotator__quote.is-fading {
  opacity: 0;
  transform: translateY(8px);
}
.rotator__text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.4;
  margin-bottom: 6px;
}
.rotator__sub {
  font-size: 0.9375rem;
  color: var(--light-muted);
}

.rotator__dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.rotator__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.rotator__dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* zdjecie Hani */
.hero__photo { display: flex; justify-content: center; }

.hero__img {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 3 / 4;
  /* bez luku u gory, zaslanial glowe - zwykle zaokraglone rogi jak na mobile */
  border-radius: var(--radius);
  border: 1px solid var(--border-navy);
  outline: 1px solid rgba(198, 161, 91, 0.5);
  outline-offset: 10px;
  object-fit: cover;
  object-position: top center;
}

/* na mobile daje najpierw tekst a zdjecie nizej, bez tego luku co na desktopie
   (klientowi sie nie podobalo zdjecie na samej gorze) */
@media (max-width: 960px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero__content { display: contents; }
  .hero__eyebrow { order: 1; }
  .hero__title { order: 2; }
  .hero__lead { order: 3; margin-bottom: 28px; }
  .hero__photo { order: 4; margin-bottom: 32px; }
  .hero__rotator { order: 5; }
  .hero__actions { order: 6; }

  .hero__img {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    outline-offset: 6px;
  }
}

/* sekcja kim jestem */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.about__bio p { margin-bottom: 18px; color: var(--ink); }
.about__bio p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink);
}

.about__values-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.values {
  display: grid;
  gap: 16px;
}
.values__card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.values__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(198, 161, 91, 0.14);
  color: var(--gold-dark);
  flex-shrink: 0;
}
.values__card h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.values__card p {
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* kompas zycia */
.compass-section { background: var(--white); }

.compass { position: relative; }

/* tarcza kompasu */
.compass__face {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.compass__face-svg {
  width: min(70vw, 280px);
  height: auto;
}
/* igla - krece nia z js po kliknieciu w etap */
.compass__needle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.34, 1.3, 0.4, 1);
}

.compass__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 132px;
  padding: 6px;
  border-radius: 16px;
  transition: transform 0.2s ease;
}
/* granatowe medaliony ze zlota obwodka, jak na projekcie kompasu */
.compass__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  border: 2px solid var(--gold);
  color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(16, 28, 51, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.compass__icon .icon { width: 28px; height: 28px; }
.compass__label {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.compass__item:hover .compass__icon {
  transform: scale(1.08);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-md);
}
.compass__item[aria-pressed="true"] .compass__icon {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--navy-deep);
}
.compass__item[aria-pressed="true"] .compass__label {
  color: var(--gold-dark);
  font-weight: 600;
}

/* panel z opisem etapu, na mobile pod kompasem a na desktopie z boku */
.compass-panel {
  scroll-margin-top: calc(var(--nav-height) + 16px);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--light);
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin-inline: auto;
}
.compass-panel__icon {
  /* flex + auto marginesy = ikona zawsze na srodku karty, takze przy tekscie do lewej */
  display: flex;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.14);
  border: 1px solid var(--border-navy);
  color: var(--gold);
  margin-bottom: 18px;
}
.compass-panel__icon .icon { width: 30px; height: 30px; }
.compass-panel__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.compass-panel__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--light-muted);
  margin-bottom: 20px;
}
.compass-panel__stage > *:last-child { margin-bottom: 0; }
/* lekkie wjechanie tresci przy zmianie etapu */
.compass-panel__stage {
  animation: stage-in 0.35s ease;
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(10px); }
}
.compass-panel__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--gold);
  margin: -6px 0 16px;
}
.compass-panel__qlabel {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.compass-panel__questions {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}
.compass-panel__questions li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--light);
}
.compass-panel__questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--gold);
}
.compass-panel__why {
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  text-align: left;
}
.compass-panel__why-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.compass-panel__why p:not(.compass-panel__why-label) {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--light-muted);
}

/* podsumowanie pod kompasem */
.compass__outro {
  max-width: 760px;
  margin: 56px auto 0;
  text-align: center;
}
.compass__outro h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.compass__outro p {
  color: var(--muted);
  margin-bottom: 26px;
}

.compass__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* kropki pod sliderem - tworzy je js, widoczne tylko na telefonie */
.compass__dots { display: none; }
.compass__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.3);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.compass__dot.is-active {
  background: var(--gold);
  transform: scale(1.35);
}

/* na telefonie: tarcza, pod nia poziomy slider z medalionami (przesuwa sie palcem,
   wybrany etap laduje na srodku), kropki postepu i na koncu panel z opisem */
@media (max-width: 1099px) {
  .compass-layout { display: flex; flex-direction: column; }
  .compass { display: contents; }
  .compass__face { order: 1; }
  .compass__items {
    order: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* boczny padding = polowa szerokosci minus pol medalionu, dzieki temu
       pierwszy i ostatni etap tez moga stanac na srodku */
    padding: 10px calc(50% - 38px);
    margin-bottom: 6px;
    scrollbar-width: none;
  }
  .compass__items::-webkit-scrollbar { display: none; }
  .compass__items > li { flex: 0 0 auto; scroll-snap-align: center; }
  .compass__item { width: auto; padding: 4px; }
  .compass__label { display: none; }
  .compass__item[aria-pressed="true"] .compass__icon { transform: scale(1.14); }
  .compass__dots {
    display: flex;
    order: 3;
    justify-content: center;
    gap: 7px;
    margin-bottom: 30px;
  }
  .compass-panel {
    order: 4;
    width: 100%;
    align-self: center;
    margin: 0 auto;
  }
}

/* desktop: kompas po lewej, panel po prawej */
@media (min-width: 1100px) {
  .compass-layout {
    display: grid;
    grid-template-columns: 680px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 24px;
  }
  .compass {
    width: 680px;
    height: 680px;
  }
  /* cienki zloty okrag laczacy medaliony, przechodzi przez ich srodki */
  .compass::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 516px;
    height: 516px;
    margin: -258px 0 0 -258px;
    border: 1px solid rgba(198, 161, 91, 0.5);
    border-radius: 50%;
  }
  .compass__face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .compass__face-svg { width: 344px; }
  .compass__items {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
  }
  .compass__items > li {
    position: absolute;
    top: 50%;
    left: 50%;
  }
  /* podpisy maja stala wysokosc i przesuwam wszystko 20px w dol, zeby srodki ikon
     lezaly rowno na okregu - bez tego wychodzi jajko a nie kolo */
  .compass__label { min-height: 33px; }
  .compass__item {
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-258px) rotate(calc(var(--a) * -1)) translateY(20px);
  }
  /* 10 etapow czyli co 36 stopni */
  .compass__items > li:nth-child(1) .compass__item { --a: 0deg; }
  .compass__items > li:nth-child(2) .compass__item { --a: 36deg; }
  .compass__items > li:nth-child(3) .compass__item { --a: 72deg; }
  .compass__items > li:nth-child(4) .compass__item { --a: 108deg; }
  .compass__items > li:nth-child(5) .compass__item { --a: 144deg; }
  .compass__items > li:nth-child(6) .compass__item { --a: 180deg; }
  .compass__items > li:nth-child(7) .compass__item { --a: 216deg; }
  .compass__items > li:nth-child(8) .compass__item { --a: 252deg; }
  .compass__items > li:nth-child(9) .compass__item { --a: 288deg; }
  .compass__items > li:nth-child(10) .compass__item { --a: 324deg; }

  .compass-panel {
    margin: 0;
    max-width: none;
    text-align: left;
    padding: 44px 42px;
  }
  .compass-panel__desc { margin-bottom: 30px; }
}

/* oferta */
.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* kafelki odwracane - przod z lista, tyl z dluzszym opisem.
   trik z grid-area 1/1 sprawia ze kafelek ma wysokosc wyzszej ze stron */
.offer__card {
  perspective: 1200px;
  text-align: center;
  cursor: pointer;
  /* sprezysty podskok na hover, bezier z lekkim przestrzeleniem */
  transition: transform 0.4s cubic-bezier(0.34, 1.8, 0.5, 1);
}
.offer__card:hover { transform: translateY(-12px) scale(1.015); }

.offer__card-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.45, 0.1, 0.25, 1);
}
.offer__card.is-flipped .offer__card-inner { transform: rotateY(180deg); }

.offer__face {
  grid-area: 1 / 1;
  /* min-width 0 jest kluczowe - bez tego lista z width:max-content rozpycha
     scianke poza kafelek i obrocony tyl laduje obok zamiast w miejscu */
  min-width: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius);
  padding: 40px 34px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.offer__card:hover .offer__face {
  border-color: rgba(198, 161, 91, 0.55);
  background: rgba(255, 255, 255, 0.06);
}
/* pasek bezpieczenstwa: w polowie obrotu twardo chowam/pokazuje scianki,
   bo samo backface-visibility potrafi przepuszczac elementy z wlasna warstwa */
.offer__face--front {
  visibility: visible;
  transition: border-color 0.3s ease, background-color 0.3s ease, visibility 0s 0.35s;
}
.offer__card.is-flipped .offer__face--front { visibility: hidden; }

.offer__face--back {
  transform: rotateY(180deg);
  visibility: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, visibility 0s 0.35s;
}
.offer__card.is-flipped .offer__face--back { visibility: visible; }
.offer__face--back h3 {
  font-size: 1.1875rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.offer__face--back p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--light-muted);
  text-align: left;
}

.offer__hint {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  transition: color 0.2s ease;
}
.offer__hint .icon { width: 16px; height: 16px; }
.offer__hint:hover { color: var(--gold-light); }
.offer__card:hover .offer__icon {
  background: rgba(198, 161, 91, 0.22);
}

.offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.14);
  border: 1px solid var(--border-navy);
  color: var(--gold);
  margin-inline: auto;
  margin-bottom: 22px;
  /* uwaga: zadnych animacji transform na ikonce! przegladarka wynosila ja
     wtedy na osobna warstwe i przeswitywala przez tyl obroconego kafelka */
  transition: background-color 0.3s ease;
}
.offer__icon .icon { width: 26px; height: 26px; }

.offer__card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}

/* liste centruje jako caly blok, ale wiersze zostawiam do lewej bo tak czytelniej */
.offer__list {
  display: grid;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
}
.offer__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light-muted);
  font-size: 0.9375rem;
}
.icon--check {
  width: 18px;
  height: 18px;
  color: var(--gold);
  stroke-width: 2.5;
}

/* kropki pod sliderem oferty - tworzy je js, widoczne tylko na telefonie */
.offer__dots { display: none; }

/* na mobile kafelki jada w poziomym sliderze, jeden prawie na cala szerokosc */
@media (max-width: 900px) {
  .offer__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* wyjezdzam poza padding kontenera, zeby slider szedl od krawedzi ekranu */
    margin-inline: -24px;
    padding: 4px 32px 8px;
    scrollbar-width: none;
  }
  .offer__grid::-webkit-scrollbar { display: none; }
  .offer__card {
    flex: 0 0 min(84%, 420px);
    scroll-snap-align: center;
  }
  .offer__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
  }
  .offer__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(198, 161, 91, 0.3);
    transition: background-color 0.25s ease, transform 0.25s ease;
  }
  .offer__dots span.is-active {
    background: var(--gold);
    transform: scale(1.35);
  }
}
@media (max-width: 640px) {
  .offer__face { padding: 26px 20px; }
  .offer__icon { width: 46px; height: 46px; margin-bottom: 16px; }
  .offer__icon .icon { width: 22px; height: 22px; }
  .offer__card h3 { font-size: 1.125rem; margin-bottom: 14px; }
  .offer__list { gap: 10px; }
  .offer__list li { font-size: 0.8125rem; gap: 9px; align-items: flex-start; }
  .offer__list .icon--check { margin-top: 3px; }
}

/* pasek "przeanalizuje twoja polise" pod kafelkami */
.offer__note {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 860px;
  margin: 44px auto 0;
  padding: 26px 30px;
  border: 1px dashed var(--border-navy);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}
.offer__note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.14);
  color: var(--gold);
  flex-shrink: 0;
}
.offer__note p {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--light-muted);
}
.offer__note .btn { flex-shrink: 0; }

@media (max-width: 760px) {
  .offer__note {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 28px 22px;
  }
}

/* jak wyglada wspolpraca */
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
  counter-reset: step;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.5;
}

.process__step {
  text-align: center;
  position: relative;
  padding-inline: 8px;
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.process__step:hover .process__num {
  background: var(--navy);
  color: var(--gold);
  transform: scale(1.08);
}
.process__step h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.process__step p {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin-inline: auto; }
  .process__steps::before {
    top: 24px;
    bottom: 24px;
    left: 33px;
    right: auto;
    width: 1.5px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  }
  .process__step {
    display: grid;
    grid-template-columns: 68px 1fr;
    column-gap: 20px;
    text-align: left;
    align-items: start;
    padding-block: 18px;
  }
  .process__num { margin-bottom: 0; }
  .process__step h3 { grid-column: 2; }
  .process__step p { grid-column: 2; }
}

/* kontakt */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-navy);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.contact__card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 161, 91, 0.55);
  background: rgba(255, 255, 255, 0.07);
}
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.14);
  color: var(--gold);
  margin-bottom: 8px;
}
.contact__label {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-muted);
}
.contact__value {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gold-light);
}

.contact__knf {
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px dashed var(--border-navy);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.contact__knf > .icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
}
.contact__knf p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--light-muted);
}
.contact__knf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--gold-light);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(198, 161, 91, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.contact__knf-link:hover {
  color: var(--white);
  border-bottom-color: var(--gold);
}
.contact__knf-link .icon { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .contact__knf { flex-direction: column; text-align: center; }
}

.contact__social {
  margin-top: 40px;
  text-align: center;
}
.contact__social-label {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 18px;
}
.contact__social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact__social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border-navy);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--light-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.contact__social-list .icon { width: 20px; height: 20px; }
.contact__social-list a:hover,
.contact__social-list a:focus-visible {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.14);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* stopka */
.footer {
  background: var(--navy-deep);
  color: var(--light-muted);
  border-top: 1px solid var(--border-navy);
  padding-block: 40px 28px;
  font-size: 0.875rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(198, 161, 91, 0.55);
  flex-shrink: 0;
  /* bez tego rogi kwadratowego obrazka wystawaly poza kolko */
  overflow: hidden;
}
.footer__logo img { width: 84%; height: 84%; object-fit: contain; }
.footer__brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
}
.footer__brand-sub {
  font-size: 0.75rem;
  color: var(--light-muted);
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__links a {
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--gold-light); }

.footer__social {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-navy);
  color: var(--light-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer__social .icon { width: 18px; height: 18px; }
.footer__social a:hover,
.footer__social a:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.12);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 161, 91, 0.15);
  font-size: 0.8125rem;
}
.footer__credit a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__credit a:hover { color: var(--white); border-bottom-color: var(--gold); }

@media (max-width: 640px) {
  .footer { text-align: center; }
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer__brand { flex-direction: column; gap: 10px; }
  .footer__right { align-items: center; }
  .footer__links {
    justify-content: center;
    gap: 4px 18px;
  }
  .footer__social { justify-content: center; }
  .footer__links a { padding: 8px 4px; }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* animacje przy scrollowaniu */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* male opoznienia zeby karty wjezdzaly jedna po drugiej a nie wszystkie naraz */
.values__card.reveal:nth-child(2), .offer__card.reveal:nth-child(2), .process__step.reveal:nth-child(2) { transition-delay: 0.08s; }
.values__card.reveal:nth-child(3), .offer__card.reveal:nth-child(3), .process__step.reveal:nth-child(3) { transition-delay: 0.16s; }
.values__card.reveal:nth-child(4), .process__step.reveal:nth-child(4) { transition-delay: 0.24s; }
.process__step.reveal:nth-child(5) { transition-delay: 0.32s; }

/* jak ktos ma wylaczone animacje w systemie to je wylaczam */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    /* bez tego opoznione przelaczanie visibility na kafelkach kulaloby przy wylaczonych animacjach */
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
