/* =====================================================================
   Adwokat Piotr Modzelewski — main stylesheet
   ---------------------------------------------------------------------
   Plik podzielony na sekcje. Każda sekcja zaczyna się od dużego
   komentarza w stylu  /* ----- Sekcja XYZ ----- *\/  — szukaj nazwy
   sekcji aby szybko znaleźć odpowiedni fragment.
   ===================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }


/* ---------------------------------------------------------------------
   ----- Sekcja: Zmienne (kolory, czcionki) -----
   Zmień te wartości aby zmienić wygląd całej strony.
   --------------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f2f2f0;
  --mid-gray: #b0aea8;
  --text: #2a2a28;
  --text-light: #5c5c58;
  --accent: #8b7d6b;
  --accent-light: #c4b9a8;
  --rule: #e0ddd8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Nawigacja (górne menu) -----
   --------------------------------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; flex-shrink: 0; }
.nav-links li { white-space: nowrap; }
.nav-links a {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

/* Przełącznik języka PL / EN */
.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.2rem 0.1rem;
  transition: color 0.25s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  color: var(--accent);
  font-weight: 600;
}
.lang-switch .sep { color: var(--mid-gray); }


/* ---------------------------------------------------------------------
   ----- Sekcja: Bezposredni kontakt w nawigacji (telefon + email) -----
   --------------------------------------------------------------------- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;             /* logo + contact nie kurcza sie */
  margin-right: 3rem;         /* min. odstep do menu glownego */
}
.nav-brand .nav-logo {
  white-space: nowrap;
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}
.nav-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;        /* numer i email zostaja w jednej linii */
}
.nav-contact-item:hover {
  color: var(--accent);
}
.nav-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Dropdown w nawigacji (Specjalizacje) -----
   --------------------------------------------------------------------- */
.nav-links .has-dropdown {
  position: relative;
}
/* Niewidzialny mostek pod toggle-em — utrzymuje hover na .has-dropdown
   gdy kursor przechodzi w dol do menu przez 1rem przerwy. Bez tego
   menu chowa sie zanim mysz dosiegnie pierwszej pozycji. */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1.2rem;
  pointer-events: auto;
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: color 0.25s;
}
.dropdown-toggle:hover,
.has-dropdown.active .dropdown-toggle {
  color: var(--text);
}
.dropdown-toggle .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.25s;
}
.has-dropdown:hover .dropdown-toggle .caret,
.has-dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  list-style: none;
  padding: 0.4rem 0;
  z-index: 110;
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  list-style: none;
}
.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--accent);
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Hero (ekran powitalny) -----
   --------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 2rem 60px;
}
.hero-grid {
  max-width: 1100px; width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}
.hero-text { animation: fadeUp 0.8s ease-out both; }
.hero-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400; font-style: italic;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-desc {
  font-size: 0.95rem; color: var(--text-light);
  max-width: 520px; margin-bottom: 2.4rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid var(--text);
  transition: all 0.3s;
}
.hero-cta:hover {
  background: var(--text); color: var(--white);
}
.hero-cta svg { width: 14px; height: 14px; transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(3px); }

.hero-photo {
  animation: fadeUp 0.8s 0.15s ease-out both;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute; top: -12px; left: -12px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent-light);
  z-index: -1;
}
.hero-photo img {
  width: 100%; display: block;
  filter: grayscale(20%) contrast(1.02);
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Wspólne elementy sekcji (nagłówki, kontener) -----
   --------------------------------------------------------------------- */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500; line-height: 1.25;
  margin-bottom: 2rem;
}
.divider {
  width: 48px; height: 1px;
  background: var(--accent-light);
  margin-bottom: 2rem;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: O mnie -----
   --------------------------------------------------------------------- */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.about-text p {
  font-size: 0.92rem; color: var(--text-light);
  margin-bottom: 1.2rem;
}
.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 1rem;
}
.highlight {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--rule);
}
.highlight-number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.highlight-label {
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.4rem;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Specjalizacje (obszary praktyki) -----
   --------------------------------------------------------------------- */
.practice { background: var(--white); }
.practice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1rem;
}
.practice-item {
  background: var(--white);
  padding: 2.4rem 2rem;
  transition: background 0.3s;
  text-align: center;
}
.practice-item .practice-icon {
  margin-left: auto;
  margin-right: auto;
}
.practice-item:hover { background: var(--off-white); }
.practice-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.practice-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin-bottom: 0.6rem;
}
.practice-item p {
  font-size: 0.82rem; color: var(--text-light);
  line-height: 1.6;
}

/* Klikalne kafelki specjalizacji (kazdy <a class="practice-item" href=".../">)
   Wariant linkowy — dziedziczy 99% stylu, dodaje afordancje klikalnosci. */
a.practice-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}
a.practice-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
a.practice-item:hover h3 {
  color: var(--accent);
  transition: color 0.25s;
}

/* ----- Wariant: piramida (1 + 2 + 3) — uzywany na index2 -----
   Trzy rzedy o roznej liczbie kafelkow. Sluzby mundurowe jako
   wyrozniony pierwszy kafelek na szczycie (variant: practice-item-feature).
   Zachowujemy ten sam efekt 1px ramki przez gap+background trick. */
.practice-pyramid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1rem;
  /* override grid z .practice-list */
  grid-template-columns: none;
}
.practice-row {
  display: grid;
  gap: 1px;
  background: var(--rule);
}
.practice-row-1 { grid-template-columns: 1fr; }
.practice-row-2 { grid-template-columns: repeat(2, 1fr); }
.practice-row-3 { grid-template-columns: repeat(3, 1fr); }

/* Wyrozniony kafelek na szczycie: wieksze paddingi, ikona wieksza,
   typografia silniejsza — pyramid feature tile. */
.practice-item-feature {
  padding: 3rem 2rem;
  text-align: center;
}
.practice-item-feature .practice-icon {
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: auto;
}
.practice-item-feature h3 {
  font-size: 1.5rem;
}
.practice-item-feature p {
  font-size: 0.9rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Aktualnosci preview na stronie glownej -----
   --------------------------------------------------------------------- */
.aktualnosci-preview {
  background: var(--white);
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.preview-card {
  display: block;
  padding: 1.8rem;
  background: var(--off-white);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s, border-color 0.25s;
}
.preview-card:hover {
  background: var(--white);
  border-color: var(--accent-light);
}
.preview-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.6rem;
}
.preview-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color 0.25s;
}
.preview-card:hover h3 { color: var(--accent); }
.preview-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}
.preview-more {
  text-align: right;
  margin-top: 1.6rem;
}
.link-more {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s, color 0.25s;
}
.link-more:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Kontakt -----
   --------------------------------------------------------------------- */
.contact { background: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info p {
  font-size: 0.92rem; color: var(--text-light);
  margin-bottom: 1.4rem;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-detail svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-detail-text .label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid-gray);
}
.contact-detail-text .value {
  font-size: 0.95rem; color: var(--text);
  margin-top: 0.2rem;
}
.contact-detail-text a {
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s;
}
.contact-detail-text a:hover { border-color: var(--accent); }
.contact-detail-text .address-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--mid-gray);
  line-height: 1.45;
  max-width: 32rem;
}
.contact-map {
  background: var(--light-gray);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.contact-map iframe {
  width: 100%; height: 100%; min-height: 320px;
  border: 0; filter: grayscale(100%) contrast(1.05);
}
.contact-info > .contact-map {
  margin-top: 0.5rem;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Formularz kontaktowy -----
   --------------------------------------------------------------------- */
.contact-form {
  display: grid;
  gap: 1rem;
  align-content: start;
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--rule);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.contact-form label > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-body);
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  padding: 0.95rem 2rem;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.4rem;
  align-self: start;
}
.form-submit:hover {
  background: var(--text);
  color: var(--white);
}
.form-note {
  font-size: 0.74rem;
  color: var(--mid-gray);
  font-style: italic;
  margin-top: 0.2rem;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Rachunki bankowe w bloku kontaktowym -----
   Renderowane jako <details>, domyslnie zwiniete. IBAN-y w monospace
   dla latwosci kopiowania.
   --------------------------------------------------------------------- */
.bank-accounts {
  margin-top: 0.1rem;
}
.bank-accounts summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  outline: none;
}
.bank-accounts summary::-webkit-details-marker {
  display: none;
}
.bank-accounts summary::after {
  content: "▾";
  font-size: 0.7rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.bank-accounts[open] summary::after {
  transform: rotate(180deg);
}
.bank-accounts summary .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.bank-accounts summary:hover .label {
  color: var(--accent);
}
.bank-accounts-intro {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.6rem 0 0.8rem;
  line-height: 1.55;
}
.bank-group {
  margin-top: 0.8rem;
}
.bank-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.bank-row {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.bank-row:last-child {
  border-bottom: none;
}
.bank-purpose {
  font-size: 0.78rem;
  color: var(--text-light);
}
.bank-iban {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.02em;
  user-select: all;             /* podwojny klik zaznacza caly numer */
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Stopka -----
   --------------------------------------------------------------------- */
footer {
  padding: 2.4rem 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.75rem; color: var(--mid-gray);
  letter-spacing: 0.04em;
}


/* ---------------------------------------------------------------------
   ----- Sekcja: Animacje -----
   --------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ---------------------------------------------------------------------
   ----- Sekcja: Wersje mobilne (responsywność) -----
   --------------------------------------------------------------------- */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle svg { width: 22px; height: 22px; color: var(--text); }

/* Wezsze desktopy: chowamy oba labels (telefon + email) razem —
   zostaja same ikony zeby zachowac symetrie i nie wprowadzac
   "polowicznego" stanu (jeden tekst + jedna ikona). */
/* Wezsze desktopy: chowamy etykiety telefonu/emaila — zostaja ikony.
   Granica musi byc na tyle wysoka, by przy widocznych etykietach mial
   sie cale menu + lang switch bez przycinania prawej krawedzi
   (~1390px potrzebnych przy pelnym tekscie). */
@media (max-width: 1400px) {
  .nav-contact-label { display: none; }
  .nav-brand { gap: 1.5rem; margin-right: 2rem; }
  .nav-contact { gap: 1rem; }
}

/* Tablet/wezsze desktopy: layout jednokolumnowy; nawigacja przelacza sie
   na hamburger zeby pasek menu nie kolidowal z blokiem kontaktowym. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-photo { max-width: 300px; margin: 0 auto; order: -1; }
  .hero-desc { margin: 0 auto 2.4rem; }
  .hero-cta { margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .practice-list { grid-template-columns: 1fr 1fr; }
  /* Piramida na <900px: row-2 zostaje 2-kolumnowy, row-3 collapse'uje
     do 1 kolumny (zeby uniknac wisiora 2+1). Feature tile juz 1-kolumnowy. */
  .practice-row-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .nav-brand { gap: 1.2rem; margin-right: 0; }
  .nav-contact { gap: 0.9rem; }
  .mobile-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  /* W mobile menu wszystkie pozycje sa pelnej szerokosci.
     Domyslny align-items: center na .nav-links zwijal <li>
     do szerokosci tresci, przez co dropdown-menu nie mialo
     prawidlowej referencji szerokosci. Stretch + text-align: center
     daje ten sam wizualnie efekt (wycentrowany tekst), ale <li>
     i jego dzieci zajmuja pelna szerokosc kontenera. */
  .nav-links { align-items: stretch; text-align: center; }
  .nav-links > li { width: 100%; }
  .nav-links a { padding: 0.7rem 2rem; display: block; }
  .nav-links .lang-switch { padding: 0.7rem 2rem; }

  /* Dropdown specjalizacji w mobile menu: rozwija sie w linii (push).
     Toggle wycentrowany jak inne pozycje. */
  .has-dropdown::after { display: none; }
  .dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 2rem;
  }
  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    margin: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--off-white);
    width: 100%;
    padding: 0.4rem 0;
    text-align: center;
  }
  /* Na mobile rezygnujemy z hover-CSS — tylko klik (toggle .open).
     Najpierw zerujemy hover-rule, potem ustawiamy regule .open
     zeby nadpisala (rowna specyficznosc — wygrywa pozniejsza). */
  .has-dropdown:hover > .dropdown-menu { display: none; }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu li { list-style: none; width: 100%; }
  .dropdown-menu a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    display: block;
  }
}

@media (max-width: 640px) {
  /* Bardzo waskie ekrany: contact icons jeszcze ciasniej */
  .nav-brand { gap: 1rem; }
  .nav-contact { gap: 0.7rem; }
  .nav-inner { padding: 0 1.5rem; }      /* zgodne z section padding ponizej */
  .practice-list { grid-template-columns: 1fr; }
  .practice-row-2 { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 1.5rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}
