/* ==========================================================================
   ubezpieczenia.glogow.pl – Expertia24 (statyczna wersja strony, bez WordPressa)
   Wymiary i kolory odczytane z CSS obecnej strony (Elementor). Punkty przełamania
   jak w Elementorze: tablet ≤ 1024 px, telefon ≤ 767 px.
   Szare teksty są odrobinę ciemniejsze niż w oryginale (kontrast WCAG AA 4,5:1).
   ========================================================================== */

/* ---------- Fonty (lokalnie, podzbiór łaciński + polskie znaki) ---------- */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/roboto-400.woff2) format("woff2"); }

:root {
  --ink: #3c4653;        /* nagłówki */
  --ink-2: #2d3238;      /* aktywna pozycja menu */
  --txt: #676e77;        /* tekst (oryginał #868d95) */
  --sub: #646e7d;        /* podtytuły (oryginał #a9b2bf) */
  --menu: #6b727b;       /* menu (oryginał #8c9299) */
  --red: #dd0026;        /* przyciski, akcenty */
  --red-tab: #cd1634;    /* przyciski podmenu Expertia24 */
  --red-tab-h: #c10033;
  --ft-bg: #303945;      /* stopka */
  --ft-txt: #a3aab2;     /* linki w stopce (oryginał #828992) */
  --ft-line: #454d58;
  --ft-dol: #262d37;     /* dolny pasek stopki */
  --ft-red: #ef5f63;     /* „Skontaktuj się” (oryginał #e34b50) */
  --light: #f1f4f9;
  --bg-1: #f9faff;
  --bg-2: #eff2f7;
  --hd-h: 106px;
  --font: Poppins, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--txt); font: 400 15px/25px var(--font); overflow-x: hidden; }
img, svg, iframe { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }
picture { display: contents; }
a { color: var(--red); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--ft-red); }
h1, h2, h3, h4, h5, p, ul, ol, figure, address { margin: 0; }
address { font-style: normal; }
b, strong { font-weight: 700; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #1b6ed1; outline-offset: 2px; }
.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 { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 4px; }
.skip:focus { top: 8px; color: #fff; }
.tekst p + p { margin-top: 1em; }
.tekst a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.strona { position: relative; isolation: isolate; }

/* ---------- Nagłówek ---------- */
.hd { position: relative; z-index: 50; background: #fff; }
.hd__in { display: flex; align-items: center; max-width: 1340px; min-height: var(--hd-h); margin: 0 auto; padding: 0 50px; }
.hd__logo { display: block; flex: 0 0 auto; width: 27%; padding: 10px; }
.hd__logo img { width: 204px; height: 60px; }
.nav { flex: 1 1 auto; padding: 10px; }
.nav__list { display: flex; justify-content: center; list-style: none; padding: 0; }
.nav__list > li > a { display: block; padding: 13px 20px; color: var(--menu); font-size: 14px; line-height: 60px; white-space: nowrap; }
.nav__list > li > a:hover, .nav__list > li > a[aria-current="page"], .nav__list > li > a.is-aktywne { color: var(--ink-2); }
.nav__sub, .nav__toggle, .nav__tel, .nav__foot { display: none; }

/* ---------- Tło nagłówka strony (zdjęcie 1920×615, jak w szablonie Elementora) ---------- */
.tlo { position: absolute; z-index: -1; left: 0; right: 0; top: var(--hd-h); height: 615px; overflow: hidden; background: #eef1f5; }
.tlo img { width: 100%; height: 615px; object-fit: cover; object-position: 50% 50%; }

/* ---------- Tytuł podstrony ---------- */
.ph { display: flex; align-items: center; gap: 20px; max-width: 1340px; min-height: 439px; margin: 0 auto; padding: 0 50px; }
.ph__txt { padding-bottom: 160px; }
.ph h1 { color: var(--ink); font-size: 45px; font-weight: 600; line-height: 55px; margin-bottom: 20px; }
.ph__sub { color: var(--sub); font-size: 17px; line-height: 27px; }
.ph--srodek { display: block; min-height: 0; padding-top: 10px; padding-bottom: 10px; background: #f7f7f7; text-align: center; }
.ph--srodek .ph__txt { padding: 0; }
.ph--srodek h1 { color: #444; font-size: 35px; line-height: 35px; }
.okruszki { font-size: 15px; font-weight: 500; }
.okruszki a { display: inline-flex; align-items: center; min-height: 44px; color: #6b727b; font-weight: 400; }
.okruszki a:hover { color: var(--red); }

/* Podmenu „Expertia24” (czerwone przyciski na podstronach O Expertia24, Dane rejestrowe, Certyfikaty) */
.tabs { margin-left: auto; margin-right: 16px; }
.tabs ul { display: flex; gap: 10px; list-style: none; padding: 0; }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 24px; border-radius: 5px; background: var(--red-tab); color: #fff; font-size: 15px; line-height: 25px; text-align: center; white-space: nowrap; }
.tabs a:hover, .tabs a:focus-visible { background: var(--red-tab-h); color: #fff; }
.tabs a[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .55); }

/* ---------- Biała karta treści nachodząca na tło ---------- */
.karta { position: relative; max-width: 1240px; margin: -170px auto 0; background: #fff; }
.karta--tekst { padding: 60px 144px 60px 60px; }
.karta--2 { display: flex; }
.karta--2 > * { flex: 1 1 50%; min-width: 0; }
.biala { position: relative; background: #fff; }
.odstep-70 { height: 70px; background: #fff; position: relative; }

.h-sekcji { color: var(--ink); font-size: 35px; font-weight: 600; line-height: 45px; text-align: center; }
.h-karty { color: var(--ink); font-size: 21px; font-weight: 700; line-height: 25px; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 20px 30px; border-radius: 4px; background: var(--red); color: #fff; font-size: 17px; line-height: 17px; }
.btn:hover, .btn:focus-visible { background: rgba(221, 0, 36, .84); color: #fff; }
.btn--ciemny { background: var(--ink); }
.btn--ciemny:hover, .btn--ciemny:focus-visible { background: #000; }
.btn svg { width: 1em; height: 1em; flex: 0 0 auto; fill: currentColor; }

/* ==========================================================================
   Strona główna
   ========================================================================== */
.hero { position: relative; max-width: 1240px; min-height: 615px; margin: 0 auto; padding-top: 105px; }
.hero__in { width: calc(53% - 20px); margin-left: 20px; padding: 10px; }
.hero__l1, .hero__l2 { display: block; color: var(--ink); font-size: 55px; line-height: 65px; }
.hero__l1 { font-weight: 700; }
.hero__l2 { font-weight: 300; margin-top: 5px; }
.hero__l3 { display: block; margin: 0 0 45px; color: var(--ink); font-size: 25px; font-weight: 300; line-height: 65px; }
.hero__l3 b { font-weight: 700; }
.hero__btns { display: flex; gap: 33px; flex-wrap: wrap; }

.tow-intro { position: relative; background: var(--bg-1); padding: 60px 30px 60px; text-align: center; }
.tow-intro h1 { color: var(--ink); font-size: 35px; font-weight: 600; line-height: 45px; margin-bottom: 20px; }
.tow-intro h2 { color: var(--ink); font-size: 25px; font-weight: 700; line-height: 35px; margin-bottom: 20px; }
.tow-intro p { color: var(--sub); font-size: 17px; font-weight: 300; line-height: 27px; }

.tow { position: relative; padding: 0 30px 100px; background: linear-gradient(0deg, var(--bg-2) 85%, var(--bg-1) 85%); }
.tow__box { max-width: 1220px; margin: 0 auto; padding: 50px 50px 50px; background: #fff; }
.tow__siatka { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; padding: 0; }
.tow__siatka li { flex: 0 0 calc((100% - 5 * 16px) / 6); display: flex; align-items: center; justify-content: center; height: 104px; padding: 12px 14px; background: #fff; border: 1px solid #e6eaf0; border-radius: 4px; }
.tow__siatka img { width: auto; max-width: 100%; height: 52px; object-fit: contain; transition: transform .3s; }
.tow__siatka li:hover img { transform: scale(1.08); }
.tow__stopka { padding: 50px 30px 0; text-align: center; }
.tow__stopka h2 { color: var(--ink); font-size: 25px; font-weight: 300; line-height: 35px; margin-bottom: 20px; }
.tow__stopka p { color: var(--txt); font-size: 15px; line-height: 25px; }

/* ==========================================================================
   O Expertia24
   ========================================================================== */
.on-l { padding: 50px 50px 70px; }
.on-l h2 { color: var(--ink); font-size: 21px; font-weight: 700; line-height: 21px; margin-bottom: 20px; }
.on-l .wiecej { display: inline-block; margin: 20px 0; color: var(--ink); font-weight: 600; }
.on-l .wiecej:hover { color: var(--red); }
.on-l .p-just { text-align: justify; }
.on-p { padding: 50px 50px 0 0; text-align: center; }
.misja { position: relative; background: #f3f2f2; }
.misja__in { display: flex; align-items: center; max-width: 1240px; margin: 0 auto; }
.misja__txt { flex: 0 0 75%; padding: 60px 115px 60px 0; }
.misja__txt h2 { margin-bottom: 20px; text-align: left; }
.misja__img { flex: 0 0 25%; align-self: stretch; text-align: right; }
.misja__img img { width: 310px; }
.zdjecia { position: relative; background: linear-gradient(#f3f2f2 59%, #fff 59%); }
.zdjecia__in { display: flex; align-items: center; max-width: 1240px; margin: 0 auto; }
.zdjecia__in > :nth-child(1) { flex: 0 0 50%; }
.zdjecia__in > :nth-child(2) { flex: 0 0 25%; }
.zdjecia__in img { display: block; width: 100%; }
.zespol { position: relative; max-width: 1240px; margin: 0 auto; padding: 70px 0 207px; background: #fff; }
.zespol > .h-sekcji { margin: 10px 0 55px; }
.osoba { display: flex; align-items: center; padding: 10px 0; }
.osoba__foto { flex: 0 0 40%; text-align: center; }
.osoba__foto img { width: 253px; }
.osoba__txt { flex: 0 0 60%; padding: 10px; }
.osoba__rola { color: var(--red); font-size: 15px; font-weight: 600; line-height: 25px; }
.osoba__imie { margin: 5px 0 20px; color: var(--ink); font-size: 21px; font-weight: 600; line-height: 25px; }
.osoba__opis { max-width: 574px; }
.osoba--prawa .osoba__foto { order: 2; }
.osoba--prawa .osoba__txt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }

/* ==========================================================================
   Oferta
   ========================================================================== */
.of-intro .h-karty { margin-bottom: 45px; }
.of-intro .tekst { margin-right: 160px; text-align: justify; }
.of-intro .h-sekcji { margin-top: 55px; margin-bottom: 35px; }
.of { position: relative; background: #fff; }
.of__row { display: flex; max-width: 1240px; margin: 0 auto; }
.of__row + .of__row { margin-top: 50px; }
.of__karta { flex: 0 0 24%; padding: 20px; }
.of__karta > div, .of__karta > a { display: block; height: 100%; color: inherit; padding: 10px 0 50px; border: 2px solid var(--light); text-align: center; transition: border-color .3s; }
.of__row:hover .of__karta > div, .of__row:hover .of__karta > a { border-color: #7a7a7a; }
.of__karta img { width: 100px; height: 100px; margin: 25px auto 50px; display: block; }
.of__karta h2 { margin-bottom: 25px; color: #3f444b; font-size: 25px; font-weight: 300; line-height: 35px; }
.of__opis { flex: 0 0 76%; display: flex; align-items: center; margin: 20px 0; padding: 30px; background: var(--light); text-align: justify; }
.of__koniec { height: 120px; background: #fff; position: relative; }

/* ==========================================================================
   Szkody
   ========================================================================== */
.sz > * { padding: 60px; }
.sz__l .tekst { margin: 25px 0 20px; }
.sz__l a { display: block; }
.sz__l a img { width: 100%; max-width: 500px; }
.sz__p img { width: 100%; max-width: 500px; }

/* ==========================================================================
   Dołącz
   ========================================================================== */
.dol-tytul { padding: 60px 144px 60px 60px; }
.dol { position: relative; background: #fff; }
.dol__row { display: flex; align-items: center; max-width: 1240px; margin: 0 auto; padding-top: 50px; }
.dol__row:first-child { padding-top: 10px; }
.dol__txt { flex: 0 0 67%; padding: 0 20px 0 50px; }
.dol__img { flex: 0 0 33%; padding: 0 50px 0 0; }
.dol__row--odwr .dol__img { order: -1; padding: 0 0 0 50px; }
.dol__row--odwr .dol__txt { padding: 0 50px 0 20px; }
.dol__img img { display: block; width: 100%; }
.dol__karta { display: flex; flex-direction: column; justify-content: center; min-height: 191px; padding: 33px; background: #f4f4f4; color: var(--ink); transition: background-color .3s; }
.dol__karta:hover { background: #e6e6e6; }
.dol__karta h2 { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 25px; margin-bottom: 15px; }
.dol__karta p { font-size: 14.25px; line-height: 21.4px; }
.dol__koniec { height: 70px; }

/* ==========================================================================
   Pliki
   ========================================================================== */
.pliki { display: flex; justify-content: center; gap: 0; padding: 60px 248px; list-style: none; }
.pliki li { flex: 0 0 33.333%; text-align: center; }
.pliki a { display: block; color: #6e6e6e; }
.pliki img { width: 220px; box-shadow: none; transition: transform .3s; }
.pliki a:hover img { transform: translateY(-4px); }
.pliki__opis { display: block; margin: 20px 10px 0; padding: 5px; background: #f8f8f8; font-size: 15px; line-height: 22.5px; }
.pliki a:hover .pliki__opis { color: var(--red); }
.pliki__typ { display: block; font-size: 13px; color: #6e6e6e; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.mapa { position: relative; height: 440px; background: #e9e9e9; overflow: hidden; }
.mapa > img, .mapa picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0); }
.mapa__zgoda { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: min(92%, 440px); padding: 20px 24px; border-radius: 6px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 24px rgba(0, 0, 0, .15); text-align: center; font-size: 13px; line-height: 20px; }
.mapa__zgoda .btn { padding: 12px 22px; font-size: 15px; line-height: 20px; }
.mapa__zgoda p { margin-top: 10px; }
.mapa__zgoda a { text-decoration: underline; }
.mapa__zgoda a[target] { display: inline-flex; align-items: center; min-height: 44px; }
.mapa__osm { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: rgba(255, 255, 255, .85); color: #444; font-size: 11px; line-height: 16px; }
.mapa__osm a { color: #444; text-decoration: underline; }
.mapa.is-on .mapa__zgoda, .mapa.is-on .mapa__osm, .mapa.is-on picture { display: none; }

/* Kontakt: karta biura i formularz obok siebie (równa wysokość), pod spodem obie osoby w kartach obok siebie.
   Karty nie nachodzą na mapę (logo i opis Google zostają widoczne). */
.kt { display: grid; grid-template-columns: 34% minmax(0, 1fr); grid-template-areas: "karta form" "osoby osoby"; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 60px 10px 80px; }
.kt__karta { grid-area: karta; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; background: var(--red); color: #fff; }
.kt__karta picture { display: block; flex: none; }
.kt__karta img { display: block; width: 100%; height: 300px; object-fit: cover; }
.kt__karta-in { flex: 1; padding: 26px 30px 30px; }
.kt__karta h1 { margin: 0 0 14px; font-size: 35px; font-weight: 600; line-height: 45px; }
.kt__adres { margin: 0 0 14px; font-size: 21px; font-weight: 600; line-height: 27px; }
.kt__karta a { color: #fff; }
.kt__karta a:hover { text-decoration: underline; }
.kt__tel { margin: 0; font-size: 21px; font-weight: 600; line-height: 27px; }
.kt__tel a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.kt__tel svg { width: 20px; height: 20px; fill: currentColor; }
.kt__godz { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 16px; line-height: 25px; }
.kt__godz span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kt__osoby { grid-area: osoby; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 30px; }
.kt__osoby h2 { grid-column: 1 / -1; }
.kt__osoby h2, .kt__form h2 { margin: 0 0 6px; color: var(--ink); font-size: 25px; font-weight: 300; line-height: 35px; }
.kt__osoba { padding: 18px 22px 16px; border: 1px solid #e3e6ea; border-radius: 4px; background: #fff; }
.kt__osoba h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 600; line-height: 25px; }
.kt__osoba ul { list-style: none; margin: 0; padding: 0; }
.kt__osoba li { display: flex; align-items: center; gap: 10px; }
.kt__osoba li svg { width: 14px; height: 14px; fill: #868d95; flex: 0 0 auto; }
.kt__osoba li a { display: inline-flex; align-items: center; min-height: 36px; overflow-wrap: anywhere; }
.kt__osoba li a[href^="tel"] { color: var(--txt); }
.kt__osoba li a:hover { color: var(--red); }
.kt__form { grid-area: form; padding: 36px 40px 34px; border-radius: 4px; background: var(--bg-2); }
.kt__form h2 { margin-bottom: 20px; }

/* Formularz: etykiety nad polami, pola 48 px, ten sam wygląd co reszta strony (białe pola, cienka ramka, czerwony przycisk) */
.form { display: flex; flex-wrap: wrap; gap: 16px 10px; }
.form__pole { flex: 1 1 100%; min-width: 0; }
.form__pole--pol { flex: 1 1 calc(50% - 5px); }
.form__etykieta { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 500; }
.form__wym { color: var(--red); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #d9dde2; border-radius: 3px; background: #fff; color: #555;
  font: inherit; font-size: 14px; line-height: 22px; }
.form textarea { min-height: 140px; resize: vertical; }
.form select { appearance: none; padding-right: 40px; cursor: pointer; }
.form__wybor { position: relative; }
.form__wybor::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid #868d95; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.form ::placeholder { color: #767676; opacity: 1; }
.form select:has(option[value=""]:checked) { color: #767676; } /* „Wybierz (opcjonalnie)” szare jak podpowiedzi */
.form input:focus, .form select:focus, .form textarea:focus { border-color: #9aa3ad; outline: 2px solid #1b6ed1; outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--red) !important; }
.form__info { flex: 1 1 100%; margin: -8px 0 0; color: var(--sub); font-size: 13px; line-height: 18px; }
.form__uwaga { flex: 1 1 100%; margin: -6px 0 0; color: var(--sub); font-size: 12px; line-height: 18px; }
.form__zgoda { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--txt); }
.form__zgoda input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.form__zgoda label { cursor: pointer; }
.form__zgoda a { text-decoration: underline; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__btn { width: 100%; min-height: 48px; padding: 0 24px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-size: 14px; line-height: 14px; cursor: pointer; }
.form__btn:hover, .form__btn:focus-visible { background: #b8001f; }
.form__btn[disabled] { opacity: .6; cursor: progress; }
.form__blad { display: block; margin-top: 4px; color: #c4001f; font-size: 13px; line-height: 18px; }
.komunikat { flex: 1 1 100%; padding: 14px 16px; border-radius: 4px; font-size: 14px; line-height: 21px; }
.komunikat--ok { background: #e7f5ea; color: #1d5b2a; border: 1px solid #b7dfc0; }
.komunikat--blad { background: #fdecee; color: #8a0019; border: 1px solid #f3b8c1; }
.komunikat[hidden] { display: none; }
/* komunikaty bez JavaScriptu (po przekierowaniu z kontakt.php na #wyslano / #blad) */
.komunikat--cel { display: none; }
.komunikat--cel:target { display: block; }

/* ==========================================================================
   Dane rejestrowe
   ========================================================================== */
.dr { align-items: center; }
.dr__img { flex: 0 0 33% !important; padding: 60px 0 30px 60px; }
.dr__img img { width: 100%; max-width: 349px; }
.dr__txt { flex: 0 0 67% !important; padding: 50px 51px 50px; text-align: justify; }
.dr-dane { position: relative; max-width: 1240px; margin: 0 auto; padding: 10px 60px 70px; background: #fff; }
.dr-dane h2 { margin: 0 0 20px; color: var(--ink); font-size: 21px; font-weight: 700; line-height: 25px; }
.dr-dane h2:not(:first-child) { margin-top: 40px; }
.dr-tabela { width: 100%; max-width: 760px; border-collapse: collapse; }
.dr-tabela th, .dr-tabela td { padding: 10px 14px; border-bottom: 1px solid #e6eaf0; text-align: left; vertical-align: top; }
.dr-tabela th { width: 42%; color: var(--ink); font-weight: 600; }
.dr-lista { columns: 2; column-gap: 40px; max-width: 760px; padding-left: 20px; }
.dr-lista li { break-inside: avoid; }
.dr-knf { margin-top: 16px; }
.dr-knf .btn { padding: 12px 22px; font-size: 15px; line-height: 20px; }
.dr-uwaga { margin-top: 12px; font-size: 13px; line-height: 20px; }

/* ==========================================================================
   Certyfikaty (siatka + lekki lightbox na <dialog>)
   ========================================================================== */
.cert { padding: 50px 50px 30px; }
.cert__siatka { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 30px; list-style: none; padding: 0; }
.cert__siatka + .cert__siatka { margin-top: 50px; }
.cert__siatka li { flex: 0 0 calc((100% - 3 * 30px) / 4); }      /* duże pionowe i poziome: 4 w rzędzie */
.cert__siatka--male li { flex-basis: calc((100% - 5 * 30px) / 6); } /* mniejsze: 6 w rzędzie, ostatni rząd wyśrodkowany */
.cert__siatka a { display: block; border-radius: 2px; }
.cert__siatka img { display: block; width: 100%; transition: transform .3s; }
.cert__siatka a:hover img { transform: scale(1.03); }
.cert__koniec { height: 70px; background: #fff; position: relative; }

.lb { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 24, 30, .92); color: #fff; }
.lb::backdrop { background: rgba(20, 24, 30, .6); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb__fig { display: flex; flex-direction: column; align-items: center; max-width: 92vw; max-height: 92vh; }
.lb__fig img { max-width: 92vw; max-height: calc(92vh - 40px); width: auto; height: auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb__opis { margin-top: 10px; font-size: 14px; line-height: 20px; color: #dfe3e8; }
.lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lb__btn:hover, .lb__btn:focus-visible { background: rgba(255, 255, 255, .28); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb__zamknij { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   O mnie
   ========================================================================== */
.om { max-width: 1180px; }
.om__l { flex: 0 0 33% !important; padding: 70px 0 0; text-align: right; }
.om__l img { width: 253px; }
.om__l img + img, .om__l picture + picture img { width: 150px; margin-top: 43px; }
.om__p { flex: 0 0 67% !important; padding: 60px 144px 60px 60px; }
.om__p h2 { color: var(--ink); font-size: 45px; font-weight: 600; line-height: 55px; margin-bottom: 45px; }
.om__p strong.czerw { color: var(--red); }
.om__cert { display: none; }

/* ==========================================================================
   Polityka prywatności, 404
   ========================================================================== */
.polityka { position: relative; max-width: 1240px; margin: 0 auto; padding: 20px 30px 70px; background: #fff; color: #6e6e6e; font: 400 16px/24px Roboto, Arial, sans-serif; }
.polityka h2 { margin: 28px 0 10px; color: var(--ink); font: 600 19px/27px var(--font); }
.polityka p, .polityka ul { margin-bottom: 12px; }
.polityka ul { padding-left: 22px; }
.polityka a { text-decoration: underline; }
.p404 { position: relative; max-width: 1240px; margin: -170px auto 0; padding: 60px; background: #fff; }
.p404__txt { margin-top: 20px; }
.p404 ul { margin-top: 20px; padding-left: 20px; }
.p404 li { padding: 4px 0; }
.p404 .btn { margin-top: 30px; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.ft { position: relative; background: var(--ft-bg); color: var(--ft-txt); font-weight: 500; }
.ft__in { display: flex; max-width: 1240px; margin: 0 auto; padding: 110px 0 70px; }
.ft__col { flex: 0 0 20%; padding: 10px; }
.ft__h { margin-bottom: 20px; color: #fff; font-size: 21px; font-weight: 600; line-height: 25px; }
.ft__list { list-style: none; padding: 0; }
.ft__list li { margin-bottom: 5px; }
.ft__list a, .ft__kontakt a { color: var(--ft-txt); }
.ft__list a::before, .ft__cookies::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 1px; border: solid var(--ft-red); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ft__list a:hover, .ft__cookies:hover, .ft__kontakt a:hover, .ft__more:hover { color: var(--ft-red); }
.ft__kontakt p + p { margin-top: 10px; }
.ft__kontakt strong { color: #fff; font-weight: 600; }
/* Rejestr KNF: dwa numery pod napisem, wcięte do tekstu (strzałka tylko przy pierwszej linii) */
.ft__list .ft__knf { display: flex; width: fit-content; align-items: flex-start; }
.ft__list .ft__knf::before { flex: none; margin-top: 9px; }
.ft__nr { display: block; font-weight: 400; }
.ft__linia { display: flex; align-items: center; gap: 8px; width: 150px; margin-bottom: 5px; }
.ft__linia::before { content: ""; flex: 0 0 128px; height: 2.4px; background: #4b5869; }
.ft__linia svg { width: 16px; height: 21px; fill: #4b5869; transform: rotate(-45deg); }
.ft__pyt { color: #fff; font-size: 15px; font-weight: 600; line-height: 25px; }
.ft__call { margin: 5px 0 10px; color: var(--ft-red); font-size: 21px; font-weight: 700; line-height: 25px; }
.ft__more { display: inline-flex; align-items: center; color: var(--ft-txt); font-weight: 400; }
.ft__more img { width: 19px; height: 19px; margin-left: 10px; }
.ft__tel { margin-top: 20px; padding: 10px 18px; font-size: 18px; line-height: 22px; font-weight: 600; text-align: left; }
.ft__tel svg { width: 22px; height: 22px; margin-right: 4px; }
.ft__tel small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; }
.ft__tel span { white-space: nowrap; }
.ft__cookies { padding: 0; border: 0; background: none; color: var(--ft-txt); font: inherit; text-align: left; cursor: pointer; }
/* Dolny pasek jak na szkolneubezpieczenia.pl: „logo | Realizacja studiodi.pl” po lewej, prawa autorskie po prawej.
   Ciemniejszy pas na całą szerokość; litery logo w kolorze tekstu, piksele białe */
.ft__dol { background: var(--ft-dol); color: var(--ft-txt); font-size: 13px; line-height: 16px; font-weight: 400; }
.ft__dol-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 4px 10px; }
.ft__studio { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ft-txt); }
.ft__studio strong { font-weight: 600; color: #dfe3e8; }
.ft__kreska { color: #66707d; }
.ft__logo-sd { display: block; flex: none; width: auto; height: 14px; aspect-ratio: 244 / 49; color: var(--ft-txt); }
.ft__piksel { fill: #fff; transition: fill .2s; }
/* po najechaniu zmieniają kolor tylko piksele logo (jak na pozostałych stronach Studio Di), litery i tekst zostają */
.ft__studio:hover .ft__piksel, .ft__studio:focus-visible .ft__piksel { fill: var(--ft-red); }
.ft__prawa { margin: 0; }

/* ---------- Baner zgód (zgody.js): lekki, przy dolnej krawędzi, dwa równorzędne przyciski ---------- */
.zgody { position: fixed; z-index: 100; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; max-width: 600px; padding: 10px 12px; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px rgba(48, 57, 69, .22); color: var(--txt); }
.zgody[hidden], .nav-open .zgody { display: none; } /* otwarte menu mobilne chowa baner */
.zgody__tekst { font-size: 13px; line-height: 1.4; }
.zgody__tekst a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.zgody__przyciski { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zgody__przyciski button { min-height: 44px; padding: 0 12px; border: 2px solid var(--ft-bg); border-radius: 6px; background: var(--ft-bg); color: #fff; font: 600 15px/1 var(--font); cursor: pointer; }
.zgody__przyciski button:hover, .zgody__przyciski button:focus-visible { background: var(--ink-2); border-color: var(--ink-2); }
@media (min-width: 768px) {
  .zgody { left: 24px; right: auto; bottom: 24px; width: calc(100% - 48px); max-width: 520px; gap: 12px; padding: 16px 18px; }
  .zgody__tekst { font-size: 14px; line-height: 1.5; }
}

/* ==========================================================================
   Tablet ≤ 1024 px: menu mobilne, węższe odstępy
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --hd-h: 100px; }
  .hd__in { padding: 0 20px; }
  .hd__logo { width: auto; }
  .nav { flex: 0 0 auto; padding: 0; margin-left: auto; }

  /* hamburger przyklejony w prawym górnym rogu */
  .nav__toggle { position: fixed; z-index: 120; top: 26px; right: 16px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 8px; background: var(--ft-bg); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(48, 57, 69, .25); transition: background-color .3s; }
  .nav__toggle:hover { background: var(--ink); }
  .nav__bars { position: relative; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color .2s .15s; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s cubic-bezier(.6, 0, .3, 1), top .3s .15s; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav-open .nav__toggle { background: var(--red); }
  .nav-open .nav__bars { background: transparent; transition-delay: 0s; }
  .nav-open .nav__bars::before { top: 0; transform: rotate(45deg); transition: top .2s, transform .3s .15s cubic-bezier(.6, 0, .3, 1); }
  .nav-open .nav__bars::after { top: 0; transform: rotate(-45deg); transition: top .2s, transform .3s .15s cubic-bezier(.6, 0, .3, 1); }

  /* pełnoekranowy panel w kolorach strony, otwierany kołem od przycisku */
  .nav__panel { position: fixed; z-index: 110; inset: 0; display: flex; flex-direction: column; padding: 110px 28px 28px; overflow-y: auto; overscroll-behavior: contain; background: var(--ft-bg);
    clip-path: circle(0 at calc(100% - 40px) 50px); visibility: hidden; transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s .55s; }
  .nav-open .nav__panel { clip-path: circle(150% at calc(100% - 40px) 50px); visibility: visible; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
  .nav__list { display: block; margin: auto 0; max-width: 520px; width: 100%; align-self: center; }
  .nav__list > li { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
  .nav-open .nav__list > li { opacity: 1; transform: none; transition: opacity .45s, transform .45s cubic-bezier(.2, .7, .2, 1); }
  .nav-open .nav__list > li:nth-child(1) { transition-delay: .18s; }
  .nav-open .nav__list > li:nth-child(2) { transition-delay: .23s; }
  .nav-open .nav__list > li:nth-child(3) { transition-delay: .28s; }
  .nav-open .nav__list > li:nth-child(4) { transition-delay: .33s; }
  .nav-open .nav__list > li:nth-child(5) { transition-delay: .38s; }
  .nav-open .nav__list > li:nth-child(6) { transition-delay: .43s; }
  .nav-open .nav__list > li:nth-child(7) { transition-delay: .48s; }
  .nav__list > li > a { display: flex; align-items: center; min-height: 52px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; font-size: 22px; font-weight: 500; line-height: 30px; }
  .nav__list > li > a:hover, .nav__list > li > a[aria-current="page"], .nav__list > li > a.is-aktywne { color: #fff; }
  .nav__list > li > a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--ft-red); }
  .nav__sub { display: block; list-style: none; padding: 4px 0 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__sub a { display: flex; align-items: center; min-height: 44px; color: var(--ft-txt); font-size: 17px; line-height: 24px; }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { color: #fff; }
  .nav__sub a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--ft-red); }
  .nav__foot { display: block; max-width: 520px; width: 100%; align-self: center; margin-top: 28px; opacity: 0; transition: opacity .3s; }
  .nav-open .nav__foot { opacity: 1; transition: opacity .45s .5s; }
  .nav__tel { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 20px; border-radius: 6px; background: var(--red); color: #fff; font-size: 18px; font-weight: 600; }
  .nav__tel:hover { background: #b8001f; color: #fff; }
  .nav__tel svg { width: 20px; height: 20px; fill: currentColor; }
  .nav__adres { margin-top: 14px; color: var(--ft-txt); font-size: 14px; line-height: 22px; text-align: center; }
  html.nav-open { overflow: hidden; }

  .ph { padding: 0 20px; }
  .ph--tabs { display: block; min-height: 0; padding-top: 89px; padding-bottom: 200px; }
  .ph--tabs .ph__txt { padding-bottom: 0; }
  .tabs { margin: 24px 0 0; }
  .tabs ul { flex-wrap: wrap; }
  .karta { margin-left: 20px; margin-right: 20px; }
  .karta--tekst { padding: 50px 40px; }
  .karta--2 { display: block; }
  .on-l .p-just, .of-intro .tekst, .dr__txt, .of__opis { text-align: left; }
  .on-p { padding: 0 40px 50px; }
  .om__l { padding: 50px 40px 0; text-align: center; }
  .dr__img { padding: 40px 40px 0; }
  .dr__txt { padding: 30px 40px 40px; }
  .sz > * { padding: 40px; }
  .of-intro .tekst { margin-right: 0; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero__in { width: 78%; margin-left: 0; }
  .tow__siatka li { flex-basis: calc((100% - 3 * 16px) / 4); }
  .kt { grid-template-columns: minmax(0, 1fr); grid-template-areas: "karta" "osoby" "form"; gap: 30px; padding: 40px 30px 60px; }
  .kt__karta { display: grid; grid-template-columns: 42% minmax(0, 1fr); } /* zdjęcie obok danych */
  .kt__karta img { height: 100%; min-height: 280px; }
  .ft__in { padding: 60px 20px 60px; flex-wrap: wrap; }
  .ft__col { flex-basis: 33.333%; margin-bottom: 20px; }
  .ft__list a, .ft__cookies { display: inline-flex; align-items: center; min-height: 44px; }
  .ft__dol-in { padding-inline: 30px; }
  .ft__list li { margin-bottom: 0; }
  .cert__siatka li { flex-basis: calc((100% - 2 * 30px) / 3); }
  .cert__siatka--male li { flex-basis: calc((100% - 3 * 30px) / 4); }
  .om__cert { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
  .om__cert a { flex: 0 1 240px; }
  .om__cert img { width: 100%; }
  .om__p { padding: 50px 40px; }
  .pliki { padding: 60px 20px; }
  .dol__txt { padding-left: 20px; }
  .dol__img { padding-right: 20px; }
  .dol__row--odwr .dol__img { padding-left: 20px; }
  .dol__row--odwr .dol__txt { padding-right: 20px; }
  .zespol { padding-bottom: 100px; }
  .misja__txt { padding-right: 40px; padding-left: 20px; }
}

/* ==========================================================================
   Telefon ≤ 767 px
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .hd__in { padding: 0 10px; }
  .hd__logo { padding: 10px; }
  .nav__toggle { top: 26px; right: 14px; }

  .ph { display: block; min-height: 0; padding: 89px 20px 190px; }
  .ph__txt { padding-bottom: 0; }
  .ph h1 { font-size: 38px; line-height: 46px; margin-bottom: 12px; }
  .tabs { margin: 24px 0 0; }
  .tabs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tabs a { min-height: 48px; padding: 10px 12px; white-space: normal; line-height: 20px; }
  .ph--srodek { padding: 10px 20px; }
  .ph--srodek h1 { font-size: 30px; line-height: 38px; }

  .karta { margin-left: 0; margin-right: 0; }
  .karta--2 { display: block; }
  .karta--tekst { padding: 20px; }
  .h-sekcji { font-size: 30px; line-height: 40px; }

  .hero { min-height: 615px; padding: 105px 20px 30px; }
  .hero__in { width: auto; padding: 10px 0; }
  .hero__l1 { font-size: 46px; line-height: 54px; }
  .hero__l2 { font-size: 38px; line-height: 48px; margin-top: 4px; }
  .hero__l3 { margin: 14px 0 28px; line-height: 35px; }
  .hero__btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__btns .btn { width: 100%; }
  .tow-intro { padding: 60px 20px; }
  .tow-intro h1 { font-size: 28px; line-height: 38px; }
  .tow { padding: 0 10px 60px; }
  .tow__box { padding: 20px 12px 30px; }
  .tow__siatka { gap: 8px; }
  .tow__siatka li { flex-basis: calc((100% - 2 * 8px) / 3); height: 76px; padding: 8px; }
  .tow__siatka img { height: 36px; }
  .tow__stopka { padding: 30px 10px 0; }

  .on-l, .on-p { padding: 20px; }
  .on-l h2 { line-height: 27px; }
  .on-l .p-just, .of-intro .tekst, .dr__txt, .of__opis { text-align: left; }
  .on-p img { width: 100%; max-width: 494px; }
  .misja__in { display: block; }
  .misja__txt { padding: 40px 20px; }
  .misja__img { text-align: center; }
  .misja__img img { width: 100%; max-width: 332px; }
  .zdjecia { background: linear-gradient(#f3f2f2 30%, #fff 30%); }
  .zdjecia__in { display: block; }
  .zdjecia__in > :nth-child(2) { display: block; width: 60%; margin: 0 auto; }
  .zespol { padding: 40px 20px 60px; }
  .zespol > .h-sekcji { margin-bottom: 30px; }
  .osoba, .osoba--prawa { display: block; margin-bottom: 30px; text-align: center; }
  .osoba--prawa .osoba__txt { display: block; text-align: center; }
  .osoba__txt { padding: 20px 0 0; }
  .osoba__opis { margin: 0 auto; }

  .of__row { display: block; padding: 0 20px; }
  .of__row + .of__row { margin-top: 30px; }
  .of__karta { padding: 0; }
  .of__opis { margin: 0; padding: 24px 20px; text-align: left; }
  .of__koniec { height: 60px; }

  .sz > * { padding: 20px; }
  .dol-tytul { padding: 20px; }
  .dol__row, .dol__row--odwr { display: flex; flex-direction: column; padding: 30px 20px 0; }
  .dol__row:first-child { padding-top: 10px; }
  .dol__img, .dol__row--odwr .dol__img { order: -1; padding: 0; width: 100%; }
  .dol__txt, .dol__row--odwr .dol__txt { padding: 0; width: 100%; }
  .dol__karta { min-height: 0; padding: 24px 20px; }
  .dol__koniec { height: 50px; }

  .pliki { display: block; padding: 30px 20px; }
  .pliki li + li { margin-top: 30px; }

  .mapa { height: 420px; }
  .kt { grid-template-columns: minmax(0, 1fr); grid-template-areas: "karta" "osoby" "form"; gap: 30px; padding: 30px 20px 40px; }
  .kt__karta { display: block; }
  .kt__karta img { height: 200px; min-height: 0; }
  .kt__osoby { grid-template-columns: minmax(0, 1fr); }
  .kt__karta-in { padding: 22px 20px 24px; }
  .kt__form { padding: 24px 20px; }
  .kt__osoba li a { min-height: 44px; }
  .mapa__zgoda { top: 34%; }
  .mapa__osm { top: 0; bottom: auto; }
  .form__pole--pol { flex-basis: 100%; }
  .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { font-size: 16px; } /* bez powiększania strony na iPhonie */


  .dr__img, .dr__txt { padding: 20px; }
  .dr__txt { text-align: left; }
  .dr-dane { padding: 10px 20px 50px; }
  .dr-tabela th, .dr-tabela td { display: block; width: auto; padding: 4px 0; border: 0; }
  .dr-tabela tr { display: block; padding: 10px 0; border-bottom: 1px solid #e6eaf0; }
  .dr-lista { columns: 1; }

  .cert { padding: 20px; }
  .cert__siatka { gap: 20px 14px; }
  .cert__siatka li { flex-basis: calc((100% - 14px) / 2); }
  .cert__siatka--male li { flex-basis: calc((100% - 2 * 14px) / 3); }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }

  .om__l { padding: 30px 20px 0; text-align: center; }
  .om__l img + img, .om__l picture + picture img { display: block; margin: 20px auto 0; }
  .om__p { padding: 30px 20px; }
  .om__p h2 { font-size: 34px; line-height: 42px; margin-bottom: 24px; }

  .polityka { padding: 20px 20px 50px; }
  .p404 { margin: -170px 0 0; padding: 30px 20px; }

  .ft__in { padding: 30px 10px 20px; }
  .ft__col { flex-basis: 100%; }
  .ft__col--pol { flex-basis: 50%; }
  .ft__dol-in { flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 20px 16px; }
}

/* Ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
