/* ==========================================================================
   Creofin — statyczna strona wizytówkowa
   Czysty CSS, bez frameworków. Sekcje: hero, usługi, o nas, kontakt, stopka.
   ========================================================================== */

:root {
  --crimson: #A30000;
  --crimson-light: #C40000;
  --crimson-dark: #7A0000;
  --charcoal: #1C1C1C;
  --charcoal-dark: #111111;
  --slate-50: #F5F6F8;
  --slate-100: #EBEDF1;
  --slate-200: #D5D9E0;
  --slate-400: #8A94A6;
  --white: #FFFFFF;

  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --pad-x: clamp(1rem, 4vw, 6rem);
  --page-max: 1920px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: #222222;
  background: var(--white);
  overflow-x: hidden;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
section { scroll-margin-top: clamp(4.5rem, 10vw, 8rem); }

/* ── wspólne elementy sekcji ────────────────────────────────────────────── */

.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.eyebrow-line {
  height: 1px;
  width: 2rem;
  background: var(--crimson);
  flex-shrink: 0;
}

.eyebrow {
  color: var(--crimson);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  font-size: clamp(1.6rem, 4vw, 3.75rem);
}

.section-title .light { font-weight: 300; color: rgba(28, 28, 28, 0.6); }
.section-title--light { color: var(--white); }
.accent-italic { font-style: italic; color: var(--crimson-light); }
.section-title em { font-style: italic; }

/* płynne pojawianie się sekcji */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   NAGŁÓWEK
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--charcoal);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; }

.header-logo img {
  height: clamp(3.5rem, 10vw, 7rem);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.header-nav { display: none; align-items: center; gap: 0.5rem; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.625rem 1rem;
  overflow: hidden;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.1vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.nav-link:hover::before { transform: scaleY(1); }
.nav-link:hover span { color: var(--white); }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* menu mobilne */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding-top: clamp(5rem, 18vw, 8rem);
  background: rgba(28, 28, 28, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.25rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(1rem, 4vw, 1.5rem);
  transition: color 0.2s ease;
}

.mobile-nav a:hover { color: var(--crimson-light); }

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86dvh;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(252, 250, 247, 0.55) 0%, rgba(248, 244, 238, 0.22) 45%, rgba(40, 20, 18, 0.18) 100%);
}

.hero-pool {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 52rem);
  height: min(42vw, 30rem);
  transform: translate(-50%, -52%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 253, 250, 0.55) 0%, rgba(248, 242, 234, 0.32) 38%, rgba(232, 222, 210, 0.12) 68%, rgba(232, 222, 210, 0) 100%);
}

.hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #A30000 30%, #C40000 50%, #A30000 70%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) 4vw clamp(2rem, 5vh, 4rem);
}

.hero-main-logo {
  width: 85vw;
  height: auto;
  max-width: min(92vw, 72rem);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(40, 22, 18, 0.28)) drop-shadow(0 4px 10px rgba(40, 22, 18, 0.14));
  animation: hero-logo-in 1s ease-out both;
}

@keyframes hero-logo-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   USŁUGI
   ========================================================================== */

.practices {
  background: var(--white);
  padding: clamp(3rem, 8vw, 9rem) 0;
}

.practices .section-title { max-width: 36rem; }

.practices-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--slate-100);
}

.practice-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--charcoal);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.practice-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13); z-index: 2; }
.practice-card:hover::before { transform: translateY(0); }

.practice-icon-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.practice-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--slate-50);
  color: var(--crimson);
  transition: background 0.3s ease, color 0.3s ease;
}

.practice-card:hover .practice-icon {
  background: rgba(163, 0, 0, 0.1);
  color: var(--crimson-light);
}

.practice-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.375;
  margin-bottom: 0.75rem;
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.practice-card p {
  position: relative;
  z-index: 1;
  color: var(--slate-400);
  line-height: 1.625;
  font-size: clamp(0.8rem, 1vw, 0.875rem);
  transition: color 0.2s ease;
}

.practice-card:hover h3 { color: var(--white); }
.practice-card:hover p { color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   O NAS
   ========================================================================== */

.about {
  background: var(--charcoal);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 9rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 0;
  align-items: stretch;
}

.about-image {
  position: relative;
  overflow: hidden;
  order: 2;
  min-height: clamp(220px, 45vw, 600px);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.05);
}

.about-image-shade { position: absolute; inset: 0; pointer-events: none; }

.about-image-shade--lg {
  display: none;
  background: linear-gradient(to right, transparent, transparent, rgba(28, 28, 28, 0.6));
}

.about-image-shade--sm {
  background: linear-gradient(to top, rgba(28, 28, 28, 0.6), transparent, transparent);
}

.about-badge {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  left: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.5rem, 1vw, 0.7rem) clamp(0.75rem, 1.5vw, 1.1rem);
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.about-badge-label {
  font-size: clamp(0.45rem, 0.7vw, 0.55rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.about-badge-value {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--white);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  line-height: 1.1;
  margin-top: 0.15rem;
}

.about-text {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.about-text-inner { padding-left: 0; }

.about-text .section-title { margin-bottom: clamp(1.5rem, 3vw, 2rem); }

.about-paragraph {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  max-width: 42rem;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */

.contact { background: var(--slate-50); }

.contact-band {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid #e2e8f0;
}

.contact-italic { font-style: italic; color: var(--crimson); }

.location-label-wrap { padding-top: 0.75rem; }

.location-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-400);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-bottom: 1px solid var(--slate-200);
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 2rem);
  background: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-card:not(:last-child) {
  border-bottom: 1px solid var(--slate-200);
}

.contact-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--crimson);
  transition: width 0.25s ease-out;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  z-index: 10;
}

.contact-card:hover::after { width: 100%; }

.card-head { display: flex; align-items: center; gap: 0.75rem; }

.card-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--slate-200);
  color: var(--slate-400);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.contact-card:hover .card-icon {
  border-color: rgba(163, 0, 0, 0.4);
  background: rgba(163, 0, 0, 0.05);
  color: var(--crimson);
}

.card-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-400);
  transition: color 0.15s ease;
}

.contact-card:hover .card-label { color: #6B7280; }

.card-value {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.625;
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  white-space: pre-line;
  word-break: break-word;
  transition: color 0.15s ease;
  display: block;
}

a.card-value:hover { color: var(--crimson); }

/* mapy */
.maps-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x);
}

.map-item { display: flex; flex-direction: column; gap: 0.75rem; }

.map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
}

/* rezerwacja proporcji 16:9 bez aspect-ratio (stabilnie na mobile) */
.map-spacer { padding-bottom: 56.25%; }

.map-link { position: absolute; inset: 0; z-index: 10; }

.map-caption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-caption-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
}

.map-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
  animation: dot-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.map-caption-address {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--slate-400);
}

/* ==========================================================================
   STOPKA
   ========================================================================== */

.site-footer { background: var(--charcoal-dark); }

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: clamp(2.5rem, 6vw, 3.5rem);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(163, 0, 0, 0.6)) brightness(1.05);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.footer-legal-rows { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-legal-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-legal-text,
.footer-legal-address {
  font-family: var(--font-sans);
  line-height: 1.625;
  font-size: clamp(0.55rem, 1vw, 0.625rem);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.25);
  text-align: left;
}

.footer-legal-text { flex: 1; }

.footer-copyright {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
  font-size: clamp(0.5rem, 0.9vw, 0.6rem);
}

/* ==========================================================================
   TABLET  (768px – 1023px)
   ========================================================================== */

@media (min-width: 640px) {

  .contact-card:not(:last-child) {
    border-bottom: 0;
    border-right: 1px solid var(--slate-200);
  }

  .footer-legal-row { flex-direction: row; align-items: flex-start; gap: 2rem; }

  .footer-legal-address {
    text-align: right;
    flex-shrink: 0;
    min-width: clamp(10rem, 20vw, 16rem);
  }

  .map-caption { flex-direction: row; align-items: center; gap: 1.5rem; }
}

@media (min-width: 768px) {

  .hero-main-logo {
    width: 55vw;
    max-width: 55vw;
  }

  .hero { min-height: 70dvh; }

  .practices-grid { grid-template-columns: repeat(3, 1fr); }

  /* piąta karta zajmuje całą szerokość (układ 3 + 2) */
  .practices-grid .practice-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .about-image { min-height: 280px; }

  .footer-top { gap: 1rem; margin-bottom: 1.5rem; }
}

@media (min-width: 1024px) {

  .header-nav { display: flex; gap: 0.5rem; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }

  .about-image { order: 1; }
  .about-text { order: 2; }
  .about-image-shade--lg { display: block; }
  .about-image-shade--sm { display: none; }
  .about-text-inner { padding-left: clamp(2rem, 5vw, 6rem); }

  .practices-grid { grid-template-columns: repeat(5, 1fr); }
  .practices-grid .practice-card:last-child:nth-child(odd) { grid-column: auto; }
}

/* ==========================================================================
   MOBILE  (do 767px) — kompaktowo, bez przepełnienia poziomego
   ========================================================================== */

@media (max-width: 767px) {

  .hero-bg img { object-position: center 30%; }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: clamp(4.5rem, 12vh, 7rem);
    padding-bottom: 2rem;
  }

  .hero-content {
    padding-left: 4vw;
    padding-right: 4vw;
    max-width: 100vw;
  }

  .hero-main-logo {
    width: 74vw;
    max-width: 74vw;
  }

  .practices { padding-top: 2rem; padding-bottom: 2rem; }
  .about { padding-top: 0; padding-bottom: 0; }
  .contact-band { padding-top: 1.5rem; padding-bottom: 1.25rem; }

  .section-head { margin-bottom: 1rem; }
  .practices .section-title { font-size: 1.3rem; }
  .about .section-title { font-size: 1.3rem; margin-bottom: 0.6rem; }
  .contact .section-title { font-size: 1.3rem; }

  /* dwie kolumny kart, piąta na całą szerokość */
  .practices-grid { grid-template-columns: 1fr 1fr; }
  .practices-grid .practice-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .practice-card { padding: 0.75rem; }
  .practice-card h3 { font-size: 0.8rem; margin-bottom: 0.25rem; line-height: 1.3; }
  .practice-card p { font-size: 0.72rem; line-height: 1.45; }
  .practice-icon-wrap { margin-bottom: 0.5rem; }
  .practice-icon { width: 2.25rem; height: 2.25rem; }

  .about-image { min-height: 180px; }
  .about-text { padding-top: 1rem; padding-bottom: 0.5rem; }
  .about-paragraph { font-size: 0.8rem; line-height: 1.6; }

  .contact-card { padding: 0.6rem 0.75rem; gap: 0.35rem; }
  .card-value { font-size: 0.75rem; }

  /* mapy jedna pod drugą, niższe */
  .maps-grid { grid-template-columns: 1fr; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
  .map-spacer { padding-bottom: 45%; }
  .map-caption { gap: 0.5rem; }

  .footer-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .footer-top { gap: 0.75rem; margin-bottom: 1rem; }
  .footer-legal { padding-top: 0.75rem; }
  .footer-legal-rows { gap: 0.5rem; }
  .footer-legal-row { gap: 0.15rem; }
  .footer-legal-text,
  .footer-legal-address { font-size: 0.5rem; line-height: 1.5; }
  .footer-copyright { margin-top: 0.75rem; padding-top: 0.5rem; }
  .footer-copyright p { font-size: 0.48rem; letter-spacing: 0.15em; }
}

/* telefon w orientacji poziomej — niska wysokość ekranu */
@media (max-height: 420px) and (max-width: 915px) {
  .hero {
    min-height: 100dvh;
    padding-top: 3.5rem;
    padding-bottom: 1rem;
  }
  .hero-main-logo { width: 42vw; max-width: 42vw; }
}

/* ==========================================================================
   DUŻE EKRANY  (1920px+) i ULTRA-WIDE (2560px+)
   ========================================================================== */

@media (min-width: 1920px) {
  html { font-size: 18px; }

  .hero-main-logo { width: 60vw; max-width: 60rem; }

  .section-title { font-size: 3.5rem; }

  .practices-grid { grid-template-columns: repeat(5, 1fr); }
  .practice-card { padding: 2.5rem; }
  .practice-card h3 { font-size: 1.25rem; }
  .practice-card p { font-size: 1rem; }

  .about-image { min-height: 700px; }
  .about-paragraph { font-size: 1.1rem; }

  .contact-card { padding: 2.5rem 3rem; }
  .map-spacer { padding-bottom: 50%; }

  .footer-legal-text,
  .footer-legal-address { font-size: 0.75rem; }
  .footer-copyright p { font-size: 0.65rem; }
}

@media (min-width: 2560px) {
  html { font-size: 22px; }

  .hero-main-logo { width: 50vw; max-width: 70rem; }

  .footer-legal-text,
  .footer-legal-address { font-size: 0.9rem; }
  .footer-copyright p { font-size: 0.8rem; }
}

/* dostępność — ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-main-logo { animation: none; }
  .map-dot { animation: none; }
}
/* ─────────────────────────────────────────────────────────────
   CREOFIN — style linków do paneli w stopce (Optima, Poczta)
   Dopisz na SAMYM KOŃCU pliku styles.css.
   ───────────────────────────────────────────────────────────── */
.footer-contact-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-left: auto;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--font-sans, "DM Sans", system-ui, sans-serif);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.footer-contact-item:hover { color: #ffffff; }
.footer-contact-item:hover svg { color: #C40000; }
.footer-contact-item:focus-visible { outline: 2px solid #C40000; outline-offset: 4px; }

@media (max-width: 767px) {
  .footer-contact-links { margin-left: 0; width: 100%; gap: 0.5rem 1.25rem; }
  .footer-contact-item { font-size: 0.65rem; }
  .footer-contact-item svg { width: 0.85rem; height: 0.85rem; }
}
