/* ============================================================
   CUKIERNIA U ADAMA — design tokens
   Kolor: espresso/spalony cukier + krem waniliowy + karmel
   Typografia: Fraunces (display, rzemieślniczy serif) + Inter (body)
   Signature: organiczna "lukrowa" linia oddzielająca sekcje
   ============================================================ */

:root {
  --espresso: #2B1810;
  --espresso-light: #3D2418;
  --cream: #FDF6EC;
  --cream-dim: #F5EBDA;
  --caramel: #C97B3D;
  --caramel-light: #E0A465;
  --chocolate: #8B4226;
  --ink: #1A1310;
  --ink-soft: #4A3B32;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container-w: 1180px;
}

/* ============================================================
   MOTYW JASNY — kolorystyka ze starej strony uadama.pl
   Bazowe kolory: #f5d7ca (łososiowy beż) i #ffffff (biały).
   Przełącznik w nawigacji zamienia ten sam zestaw zmiennych,
   więc cały layout się nie zmienia — zmienia się tylko paleta.
   ============================================================ */

body.theme-classic {
  --espresso: #A66B4F;
  --espresso-light: #BD8369;
  --cream: #FFFFFF;
  --cream-dim: #F5D7CA;
  --caramel: #C98F6E;
  --caramel-light: #DDAB8E;
  --chocolate: #A66B4F;
  --ink: #3D2B22;
  --ink-soft: #6B5142;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--caramel);
  outline-offset: 3px;
}

/* ============================================================
   PLACEHOLDERS (do podstawienia przez klienta / programistę)
   ============================================================ */

.photo-placeholder {
  background: repeating-linear-gradient(
    45deg, var(--cream-dim), var(--cream-dim) 10px, #EAD9BD 10px, #EAD9BD 20px
  );
  border: 2px dashed var(--caramel-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 24px;
  border-radius: 4px;
}

.photo-placeholder--portrait { aspect-ratio: 3/4; }
.photo-placeholder--square { aspect-ratio: 1/1; }

.hero__bg-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg, var(--espresso), var(--espresso) 14px, var(--espresso-light) 14px, var(--espresso-light) 28px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253,246,236,0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 40px;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(43,24,16,0.4);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,123,61,0);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(43,24,16,0.92);
  border-bottom-color: rgba(201,123,61,0.25);
}

.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s ease;
}

.nav.is-scrolled .nav__inner {
  padding: 12px 28px;
}

.nav__brand {
  display: flex;
  align-items: center;
  position: relative;
  height: 64px;
}

.nav__logo {
  width: auto;
  filter: brightness(0) invert(1);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav__logo--full {
  height: 64px;
  opacity: 1;
}

.nav__logo--sygnet {
  height: 40px;
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
}

.nav.is-scrolled .nav__logo--full {
  opacity: 0;
  transform: translateY(-50%) scale(1.1);
  pointer-events: none;
}

.nav.is-scrolled .nav__logo--sygnet {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav__links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  color: var(--cream-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--caramel-light); }
.nav__links a.nav__links--active { color: var(--caramel-light); }

.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--caramel-light);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  display: block;
  transition: 0.25s;
}

.theme-switcher {
  display: flex;
  background: rgba(253,246,236,0.1);
  border: 1px solid rgba(253,246,236,0.25);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.theme-switcher__btn {
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.theme-switcher__btn.is-active {
  background: var(--caramel);
  color: var(--espresso);
}

.theme-switcher__btn:not(.is-active):hover {
  color: var(--caramel-light);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--espresso);
  padding: 8px 28px 20px;
}

.nav__mobile a {
  color: var(--cream-dim);
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,123,61,0.15);
  font-size: 1rem;
}

.nav__mobile-phone { color: var(--caramel-light) !important; font-weight: 600; }

.nav.is-open .nav__mobile { display: flex; }

@media (max-width: 860px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 480px) {
  .theme-switcher { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: var(--espresso);
}

.hero__scrim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(43,24,16,0.55) 0%, rgba(43,24,16,0.75) 55%, rgba(43,24,16,0.92) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 28px 80px;
  text-align: center;
  color: var(--cream);
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  font-optical-sizing: auto;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto 40px;
}

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

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(253,246,236,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .hero__content { padding: 110px 24px 60px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--caramel);
  color: var(--espresso);
}
.btn--primary:hover { background: var(--caramel-light); transform: translateY(-1px); }

.btn--ghost {
  border-color: rgba(253,246,236,0.4);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--caramel-light); color: var(--caramel-light); }

.btn--outline-light {
  border-color: rgba(253,246,236,0.5);
  color: var(--cream);
  margin-top: 48px;
}
.btn--outline-light:hover { background: var(--cream); color: var(--espresso); }

/* ============================================================
   SIGNATURE DIVIDER — "lukrowy" akcent
   ============================================================ */

.signature-divider {
  height: 40px;
  color: var(--caramel);
  background: var(--cream);
}
.signature-divider svg { width: 100%; height: 100%; }
.signature-divider--flip { background: var(--espresso); color: var(--caramel); transform: scaleY(-1); }

/* ============================================================
   SECTION COMMON
   ============================================================ */

.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-eyebrow--light { color: var(--caramel-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 700px;
}
.section-title--light { color: var(--cream); }

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 48px;
}
.section-lead--light { color: var(--cream-dim); }

/* ============================================================
   TRADYCJA
   ============================================================ */

.tradycja { padding: 100px 0 110px; }

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 90px;
}

.story-grid__text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.story-grid__text strong { color: var(--chocolate); }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid__photo { max-width: 360px; margin: 0 auto; }
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.timeline__track {
  position: absolute;
  top: 14px;
  left: 0; right: 0;
  height: 2px;
  background: var(--cream-dim);
  z-index: 0;
}

.timeline__item {
  position: relative;
  z-index: 1;
  padding-top: 38px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 6px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--caramel);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--caramel);
}

.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--chocolate);
  margin-bottom: 8px;
}

.timeline__item p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline__track { display: none; }
}

/* Real photos */

.real-photo {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.real-photo--portrait { aspect-ratio: 3/4; }
.real-photo--people { aspect-ratio: 4/5; }
.real-photo--square { aspect-ratio: 1/1; }

/* Family block */

.family-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid var(--cream-dim);
}

.family-block__text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.family-block__text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

@media (max-width: 860px) {
  .family-block { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; padding-top: 56px; }
  .family-block__photo { max-width: 320px; margin: 0 auto; }
}

/* People grid */

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 72px;
}

.people-grid__item {
  text-align: center;
}

.people-grid__photo-wrap {
  max-width: 220px;
  margin: 0 auto 20px;
}

.people-grid__item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.people-grid__item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .people-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   OFERTA
   ============================================================ */

.oferta { padding: 100px 0 90px; background: var(--cream-dim); }

.oferta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.oferta-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 22px 0 10px;
  color: var(--ink);
}

.oferta-card p { color: var(--ink-soft); font-size: 0.96rem; }

.oferta-note {
  margin-top: 44px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

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

/* ============================================================
   DLA FIRM (teaser)
   ============================================================ */

.dla-firm-teaser {
  padding: 90px 0;
  background: var(--cream);
}

.dla-firm-teaser__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.dla-firm-teaser__text .section-lead { margin-bottom: 32px; }

.dla-firm-teaser__photo .real-photo { max-width: 320px; margin: 0 auto; }

@media (max-width: 860px) {
  .dla-firm-teaser__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .dla-firm-teaser__text .section-title,
  .dla-firm-teaser__text .section-lead { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   INSTAGRAM
   ============================================================ */

.instagram {
  padding: 100px 0 100px;
  background: var(--espresso);
  text-align: center;
}

.instagram .section-title,
.instagram .section-lead { margin-left: auto; margin-right: auto; }

.instagram-embed {
  background: var(--espresso-light);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 8px;
  overflow: hidden;
}

.instagram-embed iframe {
  display: block;
  border-radius: 3px;
}

/* Social divider between Instagram and Facebook blocks */

.social-divider {
  height: 1px;
  background: rgba(201,123,61,0.25);
  margin: 64px 0 56px;
}

/* Facebook embed */

.facebook-embed {
  display: flex;
  justify-content: center;
  background: var(--espresso-light);
  border-radius: 6px;
  padding: 24px;
  overflow: hidden;
}

.facebook-embed .fb-page,
.facebook-embed iframe {
  max-width: 100%;
  width: 100% !important;
  height: auto;
  aspect-ratio: 900 / 300;
}

/* ============================================================
   LOKALIZACJE
   ============================================================ */

.lokalizacje { padding: 100px 0 110px; }

.lokalizacje-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 640px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.location-card {
  background: var(--cream-dim);
  border: 1px solid #E8D9BF;
  border-radius: 6px;
  padding: 32px;
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.location-card__address {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Legacy — godziny otwarcia wpisane ręcznie. Nieużywane od czasu
   wprowadzenia widgetu Google Place (live godziny). Zostawione
   na wypadek powrotu do statycznej wersji bez API key. */
.location-card__hours {
  margin-bottom: 20px;
}
.location-card__hours div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #E8D9BF;
  font-size: 0.92rem;
}
.location-card__hours dt { color: var(--ink-soft); }
.location-card__hours dd { font-weight: 600; color: var(--ink); }

.location-card__phone {
  display: block;
  font-weight: 700;
  color: var(--chocolate);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.location-card__phone--secondary {
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: -4px;
}
.location-card__phone--secondary span {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.location-card__map {
  font-size: 0.9rem;
  color: var(--caramel);
  font-weight: 600;
}
.location-card__map:hover { text-decoration: underline; }

.location-card__map-embed {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #E8D9BF;
  margin-bottom: 14px;
  margin-top: 20px;
}
.location-card__map-embed iframe { display: block; filter: sepia(8%); }

/* Place widget ma własne, pełnokolorowe zdjęcia i UI Google —
   filtr sepia wyglądałby tu źle, więc go zdejmujemy. */
.location-card__map-embed--place iframe { filter: none; }

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

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--espresso);
  color: var(--cream-dim);
  padding: 56px 0 36px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201,123,61,0.2);
}

.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__sygnet { height: 40px; width: auto; filter: brightness(0) invert(1) opacity(0.85); }
.footer__brand-mark { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--cream); }
.footer__brand-sub { font-size: 0.82rem; color: var(--caramel-light); }

.footer__contact { display: flex; gap: 24px; font-size: 0.92rem; flex-wrap: wrap; }
.footer__contact a:hover { color: var(--caramel-light); }

.footer__social { display: flex; gap: 16px; }
.footer__social a { color: var(--cream-dim); transition: color 0.2s; }
.footer__social a:hover { color: var(--caramel-light); }

.footer__legal {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(253,246,236,0.45);
  margin-top: 22px;
}

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

/* ============================================================
   DLA FIRM — podstrona
   ============================================================ */

.hero--compact {
  min-height: 64vh;
  height: 64vh;
}
.hero--compact .hero__content {
  padding: 150px 28px 70px;
}

.firm-section {
  padding: 90px 0;
  background: var(--cream);
}
.firm-section--alt {
  background: var(--cream-dim);
}

.firm-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.firm-grid--reverse {
  grid-template-columns: 1fr 1.3fr;
}
.firm-grid--reverse .firm-grid__photo { order: -1; }

.firm-grid__text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.firm-grid__text strong { color: var(--chocolate); }

.firm-grid__photo .real-photo { max-width: 320px; margin: 0 auto; }

.firm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  list-style: none;
}
.firm-tags li {
  background: var(--cream);
  border: 1px solid var(--caramel-light);
  color: var(--chocolate);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
}

@media (max-width: 860px) {
  .firm-grid,
  .firm-grid--reverse { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .firm-grid--reverse .firm-grid__photo { order: 0; }
  .firm-grid__text .section-title,
  .firm-grid__text p { margin-left: auto; margin-right: auto; max-width: 480px; }
  .firm-tags { justify-content: center; }
}

.horeca {
  padding: 100px 0;
  background: var(--espresso);
  text-align: center;
}
.horeca .section-title,
.horeca .section-lead { margin-left: auto; margin-right: auto; }
.horeca .section-lead { max-width: 680px; }
.horeca .btn { margin-top: 16px; }

.firm-contact {
  padding: 100px 0 110px;
}

.firm-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.firm-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream-dim);
  border: 1px solid #E8D9BF;
  border-radius: 6px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.18s;
}
.firm-contact-card:hover {
  border-color: var(--caramel);
  transform: translateY(-2px);
}
.firm-contact-card--static:hover {
  transform: none;
  border-color: #E8D9BF;
}

.firm-contact-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.firm-contact-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .firm-contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .firm-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   KONTAKT — przycisk i modal
   ============================================================ */

.lokalizacje-contact-btn {
  display: block;
  margin: 0 auto;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal[hidden] { display: none; }

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 16, 0.65);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
}

.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.contact-modal__close:hover { color: var(--chocolate); }

.contact-modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 24px;
}

.contact-modal__section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-dim);
}
.contact-modal__section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--chocolate);
  margin-bottom: 8px;
}
.contact-modal__address {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.contact-modal__nip {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.contact-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-modal__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-modal__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.contact-modal__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
a.contact-modal__value:hover { color: var(--caramel); }

.contact-modal__value--mono {
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contact-modal__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.contact-modal__bank {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-dim);
  margin-bottom: 24px;
}

.contact-modal__social {
  display: flex;
  gap: 20px;
}
.contact-modal__social a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--caramel);
}
.contact-modal__social a:hover { text-decoration: underline; }

@media (max-width: 540px) {
  .contact-modal__panel { padding: 28px 24px; }
  .contact-modal__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUDYT MOBILNY — globalne poprawki dla małych ekranów
   ============================================================ */

@media (max-width: 600px) {
  /* Zmniejszenie nadmiarowego paddingu sekcji — mniej przewijania,
     ten sam content w bardziej zwartym układzie. */
  .tradycja { padding: 56px 0 64px; }
  .oferta { padding: 56px 0 48px; }
  .dla-firm-teaser { padding: 56px 0; }
  .instagram { padding: 56px 0; }
  .lokalizacje { padding: 56px 0 64px; }
  .firm-section { padding: 56px 0; }
  .horeca { padding: 64px 0; }
  .firm-contact { padding: 56px 0 64px; }

  .story-grid { margin-bottom: 56px; }
  .family-block { margin-top: 40px; padding-top: 40px; }
  .people-grid { margin-top: 48px; }

  /* Kontener — mniejszy padding boczny, więcej miejsca na treść */
  .container { padding: 0 20px; }

  /* Sekcja eyebrow/title/lead — odstępy dociągnięte do mniejszego ekranu */
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 16px; }
  .section-lead { margin-bottom: 32px; font-size: 1rem; }

  /* Przyciski na całą szerokość, łatwiejsze do trafienia kciukiem */
  .hero__actions .btn,
  .btn--outline-light {
    width: 100%;
  }
  .hero__actions { flex-direction: column; gap: 12px; }

  /* Karty lokalizacji — mniejszy padding wewnętrzny */
  .location-card { padding: 22px; }

  /* Mapa w karcie lokalizacji — nieco niższa na telefonie */
  .location-card__map-embed iframe { height: 180px; }

  /* Modal kontaktowy — pełna wysokość ekranu na małych telefonach */
  .contact-modal { padding: 12px; }
  .contact-modal__panel { max-height: 92vh; }
  .contact-modal__title { font-size: 1.4rem; }

  /* Footer — mniej rozjechany na bardzo wąskich ekranach */
  .footer { padding: 40px 0 28px; }
  .footer__contact { flex-direction: column; gap: 10px; align-items: center; }
  .footer__sygnet { height: 32px; }

  /* Theme-switcher i nav-phone już chowane wcześniej; logo nieco
     mniejsze na samym starcie strony na małych telefonach */
  .nav__brand { height: 52px; }
  .nav__logo--full { height: 52px; }
  .nav__logo--sygnet { height: 34px; }

  /* Instagram/Facebook embed boxy — mniejszy padding na wąskim ekranie */
  .instagram-embed { padding: 8px; }
  .facebook-embed { padding: 12px; }
  .social-divider { margin: 40px 0 36px; }

  .lokalizacje-contact-btn { width: 100%; }

  /* Hero compact (podstrona Dla firm) — wyższa specyficzność klasy
     ignorowała ogólny .hero__content mobile padding, dociskamy tu */
  .hero--compact .hero__content { padding: 110px 24px 60px; }
  .hero--compact { min-height: 56vh; height: 56vh; }
}

@media (max-width: 400px) {
  /* Bardzo małe telefony (np. starsze iPhone SE) — dodatkowy docisk */
  .hero__title { font-size: 1.9rem; }
  .hero__subtitle { font-size: 1rem; }
  .nav__inner { padding: 16px 18px; }
  .nav.is-scrolled .nav__inner { padding: 10px 18px; }
  .contact-modal__value--mono { font-size: 0.8rem; }
}

