/* =========================================================
   Kancelaria Adwokacka — Adwokat Anna Smolna
   Kolory i kroje zgodne z logo AS
   ========================================================= */
:root {
  --zielen:        #1B2E26; /* kolor liter AS */
  --zielen-2:      #24392F;
  --zielen-3:      #2E4A3D;
  --zloto:         #A8864B; /* kolor wagi */
  --zloto-jasne:   #C9AE7C;
  --krem:          #FAF8F4; /* tło logo */
  --krem-2:        #F2EEE6;
  --tekst:         #1F2622;
  --tekst-2:       #55605A;
  --tekst-ciemne:  #B9C4BD; /* tekst na zielonym tle */
  --linia:         #E2DCD0;
  --szer:          1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --naglowek: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--krem); color: var(--tekst); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--szer); margin: 0 auto; padding: 0 24px; }
.wrap > *, .siatka-2 > *, .hero-siatka > *, .kontakt > *, .stopka-gora > * { min-width: 0; }
:focus-visible { outline: 2px solid var(--zloto); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--zielen); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.05rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
em.zl { font-style: italic; font-weight: 500; color: var(--zloto); }

/* etykieta ze złotą kreską — jak „ADWOKACKA” w logo */
.etykieta { display: inline-flex; align-items: center; gap: 14px; font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--zloto); margin-bottom: 20px; }
.etykieta::before { content: ""; width: 40px; height: 1px; background: currentColor; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font: 600 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--zielen); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-pelny { background: var(--zielen); color: var(--krem); }
.btn-pelny:hover { background: var(--zloto); border-color: var(--zloto); }
.btn-obrys { background: transparent; color: var(--zielen); }
.btn-obrys:hover { background: var(--zielen); color: var(--krem); }

/* ================= NAGŁÓWEK ================= */
.naglowek { position: sticky; top: 0; z-index: 20; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.naglowek.przewiniety { border-color: var(--linia); box-shadow: 0 6px 24px -18px rgba(27,46,38,.35); }
.naglowek .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--naglowek); transition: height .3s; }
.naglowek.przewiniety .wrap { height: 68px; }
.naglowek .logo img { height: 54px; width: auto; transition: height .3s; }
.naglowek.przewiniety .logo img { height: 44px; }
.nawigacja { display: flex; align-items: center; gap: 36px; }
.menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { position: relative; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--tekst); padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--zloto); transition: right .3s; }
.menu a:hover::after, .menu a.aktywny::after { right: 0; }
.menu a.aktywny { color: var(--zielen); }
.naglowek .btn { padding: 12px 20px; font-size: 12px; }
.menu-przycisk { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-przycisk span { display: block; width: 26px; height: 1.5px; background: var(--zielen); margin: 6px 0; transition: transform .3s, opacity .3s; }
.menu-przycisk[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-przycisk[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-przycisk[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================= HERO ================= */
.hero { position: relative; padding: 84px 0 120px; overflow: hidden; }
.hero::after { /* znak wodny AS */
  content: ""; position: absolute; right: -140px; bottom: -120px; width: 620px; height: 620px;
  background: url("img/sygnet-as.svg") center/contain no-repeat; opacity: .045; pointer-events: none; }
.hero-siatka { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero .imie { font-family: var(--serif); font-size: 1.5rem; color: var(--zloto); font-style: italic; margin-bottom: 16px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { font-size: 1.12rem; color: var(--tekst-2); max-width: 33em; margin-bottom: 38px; }
.hero .akcje { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.atuty { display: flex; flex-wrap: wrap; gap: 14px 30px; list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--linia); font-size: 14.5px; color: var(--tekst-2); }
.atuty li { display: flex; align-items: center; gap: 10px; }
.atuty svg { width: 18px; height: 18px; color: var(--zloto); flex: none; }
.hero-foto { position: relative; margin: 18px 18px 0 0; }
.hero-foto img.zdj { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 18% 50%; }
.hero-foto::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; border: 1px solid var(--zloto); z-index: -1; }
.hero-foto .plakietka { position: absolute; left: -34px; bottom: 36px; background: var(--zielen); color: var(--krem); padding: 22px 26px; max-width: 250px; box-shadow: 0 20px 40px -20px rgba(27,46,38,.5); }
.plakietka strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.plakietka span { display: block; margin-top: 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--zloto-jasne); }

/* ================= SEKCJE ================= */
section { padding: 120px 0; }
.sekcja-kremowa { background: var(--krem-2); }
.sekcja-ciemna { background: var(--zielen); color: #DCE3DE; }
.sekcja-ciemna h2, .sekcja-ciemna h3 { color: var(--krem); }
.naglowek-sekcji { max-width: 660px; margin-bottom: 64px; }
.naglowek-sekcji p { color: var(--tekst-2); font-size: 1.06rem; margin: 20px 0 0; }
.sekcja-ciemna .naglowek-sekcji p { color: var(--tekst-ciemne); }
.naglowek-sekcji.srodek { margin-left: auto; margin-right: auto; text-align: center; }
.naglowek-sekcji.srodek .etykieta::after { content: ""; width: 40px; height: 1px; background: currentColor; }

/* kancelaria */
.siatka-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.foto-ramka { position: relative; }
.foto-ramka > img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.foto-ramka .pieczec { position: absolute; right: -22px; top: -22px; width: 124px; height: 124px; border-radius: 50%; background: var(--krem); border: 1px solid var(--zloto); display: grid; place-items: center; padding: 22px; }
.wartosci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--linia); }
.wartosci strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--zielen); margin-bottom: 6px; }
.wartosci span { font-size: .93rem; color: var(--tekst-2); line-height: 1.6; display: block; }

/* specjalizacje */
.karty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(168,134,75,.32); border: 1px solid rgba(168,134,75,.32); }
.karta { position: relative; background: var(--zielen); padding: 44px 38px 42px; transition: background .3s; overflow: hidden; }
.karta::after { content: ""; position: absolute; left: 38px; right: 38px; bottom: 0; height: 2px; background: var(--zloto); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.karta:hover { background: var(--zielen-2); }
.karta:hover::after { transform: scaleX(1); }
.karta .ikona { width: 46px; height: 46px; color: var(--zloto); margin-bottom: 26px; }
.karta h3 { margin-bottom: 12px; }
.karta p { font-size: .95rem; color: var(--tekst-ciemne); margin: 0; line-height: 1.65; }
.uwaga-karty { margin: 36px 0 0; font-size: .95rem; color: var(--tekst-ciemne); }
.uwaga-karty a { color: var(--zloto-jasne); }

/* cytat na zdjęciu */
.cytat { position: relative; padding: 150px 0; color: var(--krem); text-align: center; background: var(--zielen) url("img/biblioteka-stare-ksiegi.jpg") center/cover no-repeat; }
.cytat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,46,38,.9), rgba(27,46,38,.82)); }
.cytat .wrap { position: relative; max-width: 900px; }
.cytat .cudzyslow { font-family: var(--serif); font-size: 5.5rem; line-height: .5; color: var(--zloto); display: block; margin-bottom: 26px; }
.cytat blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-style: italic; line-height: 1.35; }
.cytat cite { display: inline-block; margin-top: 30px; font: 600 12px/1 var(--sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--zloto-jasne); }

/* o mnie */
.o-mnie { grid-template-columns: .85fr 1.15fr; }
.o-mnie .foto { position: relative; margin: 0 18px 18px 0; }
.o-mnie .foto img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.o-mnie .foto::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--zloto); z-index: -1; }
.o-mnie blockquote { margin: 32px 0 0; padding-left: 24px; border-left: 2px solid var(--zloto); font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--zielen); line-height: 1.4; }
.podpis { margin-top: 34px; display: flex; align-items: center; gap: 16px; }
.podpis img { width: 58px; }
.podpis strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--zielen); line-height: 1.2; }
.podpis span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--zloto); }

/* współpraca */
.kroki { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: krok; }
.krok { position: relative; padding-top: 34px; border-top: 1px solid var(--zielen); }
.krok::before { counter-increment: krok; content: "0" counter(krok); position: absolute; top: -15px; left: 0; background: var(--krem-2); padding-right: 14px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--zloto); line-height: 1; }
.krok h3 { font-size: 1.4rem; margin-bottom: 10px; }
.krok p { font-size: .95rem; color: var(--tekst-2); margin: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--linia); }
.faq details { border-bottom: 1px solid var(--linia); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--zielen); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--zloto), var(--zloto)) center/14px 1.5px no-repeat,
  linear-gradient(var(--zloto), var(--zloto)) center/1.5px 14px no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--zloto); }
.faq .odp { padding: 0 48px 26px 0; color: var(--tekst-2); }
.faq .odp p:last-child { margin: 0; }

/* kontakt */
.kontakt { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.dane { list-style: none; padding: 0; margin: 34px 0 0; }
.dane li { display: grid; grid-template-columns: 120px 1fr; padding: 18px 0; border-bottom: 1px solid var(--linia); }
.dane li > span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--zloto); padding-top: 4px; }
.dane a { text-decoration: none; }
.dane a:hover { color: var(--zloto); }
.mapa { margin-top: 34px; background: var(--krem-2); border: 1px solid var(--linia); min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--tekst-2); font-size: .9rem; }
.mapa iframe { width: 100%; height: 260px; border: 0; display: block; }

.formularz { background: #fff; border: 1px solid var(--linia); padding: 48px 44px; box-shadow: 0 30px 60px -40px rgba(27,46,38,.35); }
.formularz h3 { font-size: 1.8rem; margin-bottom: 8px; }
.formularz > p { color: var(--tekst-2); font-size: .95rem; margin-bottom: 28px; }
.pola { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.pole { display: flex; flex-direction: column; gap: 7px; }
.pole.pelne { grid-column: 1 / -1; }
.pole label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zielen); }
.pole input, .pole select, .pole textarea { font: 400 16px/1.5 var(--sans); color: var(--tekst); background: var(--krem); border: 1px solid var(--linia); padding: 13px 14px; border-radius: 0; transition: border-color .2s, background .2s; width: 100%; -webkit-appearance: none; appearance: none; }
.pole select { background-image: linear-gradient(45deg, transparent 50%, var(--zloto) 50%), linear-gradient(135deg, var(--zloto) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.pole textarea { min-height: 140px; resize: vertical; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: none; border-color: var(--zloto); background-color: #fff; }
.zgoda { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--tekst-2); }
.zgoda input { margin-top: 3px; accent-color: var(--zielen); width: 16px; height: 16px; flex: none; }
.zgoda a { color: var(--zielen); }
.formularz .btn { margin-top: 26px; }
.formularz .info { margin: 16px 0 0; font-size: 12.5px; color: var(--tekst-2); }
.komunikat { display: none; margin-top: 16px; padding: 14px 16px; background: var(--krem-2); border-left: 2px solid var(--zloto); font-size: 14px; }
.komunikat.widoczny { display: block; }

/* ================= STOPKA ================= */
.stopka { background: var(--zielen); color: var(--tekst-ciemne); font-size: .95rem; }
.stopka-cta { border-bottom: 1px solid rgba(168,134,75,.3); }
.stopka-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.stopka-cta h2 { color: var(--krem); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stopka-cta .btn-pelny { background: var(--zloto); border-color: var(--zloto); color: var(--zielen); }
.stopka-cta .btn-pelny:hover { background: var(--krem); border-color: var(--krem); }
.stopka-gora { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 60px; }
.stopka-logo img { width: 190px; }
.stopka h4 { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--zloto); margin: 8px 0 22px; }
.stopka ul { list-style: none; margin: 0; padding: 0; }
.stopka li { margin-bottom: 10px; }
.stopka a { text-decoration: none; color: #DCE3DE; }
.stopka a:hover { color: var(--zloto-jasne); }
.stopka-dol { border-top: 1px solid rgba(168,134,75,.3); }
.stopka-dol .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: .85rem; color: #8FA096; }

/* ================= PODSTRONA (polityka prywatności) ================= */
.podstrona { padding: 90px 0 110px; }
.podstrona .wrap { max-width: 820px; }
.podstrona h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.podstrona h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.podstrona p, .podstrona li { color: var(--tekst-2); }
.podstrona ul { padding-left: 20px; }
.podstrona .data { font-size: 14px; color: var(--zloto); margin-bottom: 40px; }

/* ================= ANIMACJE ================= */
.js .odslon { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .odslon.widoczny { opacity: 1; transform: none; }
.odslon.d1 { transition-delay: .1s; } .odslon.d2 { transition-delay: .2s; } .odslon.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .odslon { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* pasek postępu czytania pod nagłówkiem */
.postep { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--zloto); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* przycisk „do góry” */
.do-gory { position: fixed; right: 22px; bottom: 22px; z-index: 15; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--zloto); background: var(--zielen); color: var(--zloto-jasne); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility 0s .35s, background .25s, color .25s; box-shadow: 0 12px 24px -12px rgba(27,46,38,.6); }
.do-gory.widoczny { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.do-gory:hover { background: var(--zloto); color: var(--zielen); }
.do-gory svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* połysk na pełnych przyciskach */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-pelny::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn-pelny:hover::before { left: 130%; }

/* komunikat formularza */
.komunikat.widoczny { animation: wysun .45s ease both; }

/* Efekty ruchu — tylko gdy użytkownik nie wyłączył animacji w systemie */
@media (prefers-reduced-motion: no-preference) {
  /* płynne przejście między stronami (Chrome, Edge, Safari 18+) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .35s ease both zanik; }
  ::view-transition-new(root) { animation: .5s ease both pojaw; }

  /* wejście nagłówka i znaku wodnego po załadowaniu */
  .naglowek { animation: zGory .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero::after { animation: znakWodny 2.4s ease .4s both; }

  /* złote podkreślenie słowa „prostym” */
  .js h1.odslon em.zl { background: linear-gradient(var(--zloto), var(--zloto)) 0 92%/0 1px no-repeat; transition: background-size 1.1s cubic-bezier(.2,.7,.2,1) 1s; }
  .js h1.odslon.widoczny em.zl { background-size: 100% 1px; }

  /* zdjęcia odsłaniane jak kurtyna, z lekkim oddaleniem */
  .js .hero-foto.odslon img.zdj, .js .foto-ramka.odslon > img, .js .o-mnie .foto.odslon img {
    clip-path: inset(100% 0 0 0); transform: scale(1.14);
    transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), transform 2s cubic-bezier(.2,.7,.2,1); }
  .js .hero-foto.odslon.widoczny img.zdj, .js .foto-ramka.odslon.widoczny > img, .js .o-mnie .foto.odslon.widoczny img { clip-path: inset(0 0 0 0); transform: none; }

  /* złote ramki wsuwają się za zdjęcie */
  .js .hero-foto.odslon::before, .js .o-mnie .foto.odslon::after { opacity: 0; translate: -18px 18px; transition: opacity .9s ease .9s, translate .9s cubic-bezier(.2,.7,.2,1) .9s; }
  .js .hero-foto.odslon.widoczny::before, .js .o-mnie .foto.odslon.widoczny::after { opacity: 1; translate: 0 0; }

  /* plakietka i pieczęć */
  .js .hero-foto.odslon .plakietka { opacity: 0; translate: -30px 0; transition: opacity .8s ease 1.1s, translate .8s cubic-bezier(.2,.7,.2,1) 1.1s; }
  .js .hero-foto.odslon.widoczny .plakietka { opacity: 1; translate: 0 0; }
  .js .foto-ramka.odslon .pieczec { opacity: 0; transform: rotate(-120deg) scale(.5); transition: opacity .6s ease .9s, transform 1.1s cubic-bezier(.2,.7,.2,1.2) .9s; }
  .js .foto-ramka.odslon.widoczny .pieczec { opacity: 1; transform: none; }

  /* złota kreska przy etykietach rośnie */
  .js .etykieta.odslon::before, .js .etykieta.odslon::after { width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1) .35s; }
  .js .etykieta.odslon.widoczny::before, .js .etykieta.odslon.widoczny::after { width: 40px; }

  /* ikony specjalizacji rysują się kreską */
  .js .karta.odslon .ikona { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.8s ease .45s; }
  .js .karta.odslon.widoczny .ikona { stroke-dashoffset: 0; }
  .karta:hover .ikona { animation: ikona .6s ease; }

  /* linie kroków współpracy rysują się od lewej */
  .js .krok.odslon { border-top-color: transparent; }
  .js .krok.odslon::before { z-index: 1; }
  .js .krok.odslon::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--zielen); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .25s; }
  .js .krok.odslon.d1::after { transition-delay: .4s; } .js .krok.odslon.d2::after { transition-delay: .55s; } .js .krok.odslon.d3::after { transition-delay: .7s; }
  .js .krok.odslon.widoczny::after { transform: none; }

  /* cytat: cudzysłów i lekka paralaksa tła */
  .js .cytat .odslon .cudzyslow { opacity: 0; transform: scale(.4); transition: opacity .8s ease .2s, transform 1s cubic-bezier(.2,.7,.2,1.3) .2s; }
  .js .cytat .odslon.widoczny .cudzyslow { opacity: 1; transform: none; }

  /* odpowiedzi w FAQ wysuwają się łagodnie */
  .faq details[open] .odp { animation: wysun .45s ease both; }

  /* menu mobilne: zjazd z góry i kolejne pozycje */
  @media (max-width: 820px) {
    .nawigacja { display: flex; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }
    .nawigacja.otwarte { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nawigacja.otwarte .menu li { animation: wysun .4s ease both; }
    .nawigacja.otwarte .menu li:nth-child(2) { animation-delay: .04s; } .nawigacja.otwarte .menu li:nth-child(3) { animation-delay: .08s; }
    .nawigacja.otwarte .menu li:nth-child(4) { animation-delay: .12s; } .nawigacja.otwarte .menu li:nth-child(5) { animation-delay: .16s; }
    .nawigacja.otwarte .menu li:nth-child(6) { animation-delay: .2s; }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 981px) and (hover: hover) {
  .cytat { background-attachment: fixed; }
}

@keyframes zanik { to { opacity: 0; } }
@keyframes pojaw { from { opacity: 0; transform: translateY(14px); } }
@keyframes zGory { from { transform: translateY(-100%); } }
@keyframes znakWodny { from { opacity: 0; transform: scale(.85) rotate(-8deg); } }
@keyframes wysun { from { opacity: 0; transform: translateY(-8px); } }
@keyframes ikona { 50% { transform: translateY(-5px); } }

/* ================= RESPONSYWNOŚĆ ================= */
@media (max-width: 1060px) {
  .naglowek .btn { display: none; }
}
@media (max-width: 980px) {
  .hero-siatka, .siatka-2, .o-mnie, .kontakt { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding-top: 56px; }
  .hero-foto { max-width: 540px; }
  .karty { grid-template-columns: 1fr 1fr; }
  .kroki { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .stopka-gora { grid-template-columns: 1fr 1fr; }
  .o-mnie .foto { max-width: 460px; }
}
@media (max-width: 820px) {
  .menu-przycisk { display: block; }
  .nawigacja { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--krem); border-bottom: 1px solid var(--linia); padding: 6px 24px 24px; box-shadow: 0 20px 30px -20px rgba(27,46,38,.3); }
  .nawigacja.otwarte { display: flex; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--linia); }
  .menu a::after { display: none; }
  .naglowek .btn { display: inline-flex; justify-content: center; margin-top: 18px; }
}
.tylko-telefon { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* strona startowa na telefonie: mniej tekstu */
  .tylko-komputer { display: none; }
  .tylko-telefon { display: inline; }
  .hero { padding: 36px 0 72px; }
  .hero-siatka { gap: 44px; }
  .hero .imie { font-size: 1.25rem; margin-bottom: 10px; }
  .hero h1 { font-size: 2.35rem; margin-bottom: 18px; }
  .hero .lead { font-size: 1.02rem; margin-bottom: 28px; }
  .hero .akcje { margin-bottom: 0; }
  .hero .akcje .btn { flex: 1 1 100%; justify-content: center; }
  .atuty { display: none; }
  .hero-foto img.zdj { aspect-ratio: 4/3; }
  section { padding: 84px 0; }
  .cytat { padding: 100px 0; }
  .karty, .kroki, .wartosci, .stopka-gora, .pola { grid-template-columns: 1fr; }
  .naglowek .logo img { height: 46px; }
  .hero-foto .plakietka { left: -8px; bottom: 20px; max-width: 210px; padding: 18px 20px; }
  .hero::after { width: 380px; height: 380px; right: -120px; bottom: -60px; }
  .foto-ramka .pieczec { right: -4px; top: -30px; width: 100px; height: 100px; padding: 18px; }
  .dane li { grid-template-columns: 1fr; gap: 4px; }
  .formularz { padding: 34px 22px; }
  .faq summary { font-size: 1.25rem; }
  .faq .odp { padding-right: 0; }
}
