:root {
  --navy: #18364a;
  --teal: #248c91;
  --green: #7da65a;
  --coral: #d85f50;
  --yellow: #e5b949;
  --cream: #f7f3eb;
  --paper: #fffefa;
  --ink: #24333a;
  --muted: #607076;
  --line: #dbe2df;
  --shadow: 0 18px 50px rgba(24, 54, 74, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Nunito", sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

/* Justowanie obejmuje wyłącznie akapity treści głównej. Nagłówki, menu,
   przyciski, dane kontaktowe, etykiety i stopka zachowują naturalne wyrównanie. */
main p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 10px 16px; background: var(--navy); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 254, 250, .94); border-bottom: 1px solid rgba(219, 226, 223, .9); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 800; line-height: 1.2; }
.brand span { max-width: 310px; }
.brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; text-decoration: none; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--teal); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; background: white; color: var(--navy); font-weight: 800; }

.hero { padding: 70px 0 80px; overflow: hidden; background: radial-gradient(circle at 7% 12%, rgba(229,185,73,.16), transparent 27%), linear-gradient(135deg, #fffefa 40%, #eef6f2 100%); }
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(34px, 5vw, 64px); }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--teal); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--navy); font-family: "Playfair Display", serif; line-height: 1.12; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); }
h3 { margin: 0; color: var(--navy); line-height: 1.3; }
.hero-copy > p { max-width: 610px; margin: 26px 0 30px; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 2px solid var(--navy); border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24,54,74,.16); }
.button-primary { color: white; background: var(--navy); }
.button-secondary { color: var(--navy); background: transparent; }
.hero-image { position: relative; margin: 0; }
.hero-image::before { content: ""; position: absolute; width: 145px; height: 145px; right: -34px; top: -34px; border-radius: 50%; background: var(--yellow); opacity: .65; }
.hero-image::after { content: ""; position: absolute; width: 90px; height: 90px; left: -28px; bottom: -28px; border-radius: 50%; background: var(--coral); opacity: .75; }
.hero-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: right center; border-radius: 46% 54% 47% 53% / 56% 42% 58% 44%; background: #dceee8; box-shadow: var(--shadow); }

.section { padding: 100px 0; }
.section-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); }
.copy-stack p { margin: 0 0 20px; color: var(--muted); font-size: 1.04rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.value-card > span { color: var(--coral); font-weight: 800; }
.value-card h3 { margin-top: 18px; font-size: 1.3rem; }
.value-card p { margin: 10px 0 0; color: var(--muted); }

.news { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 42px; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.news-card { min-height: 295px; padding: 38px; border-radius: var(--radius); background: white; box-shadow: 0 10px 35px rgba(24,54,74,.07); }
.news-card.featured { color: white; background: var(--navy); }
.news-card.featured h3, .news-card.featured p { color: white; }
.news-label { color: var(--teal); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.featured .news-label { color: #82d6d4; }
.news-card h3 { margin: 34px 0 15px; font-size: 1.45rem; }
.news-card p { margin: 0; color: var(--muted); }

.gallery-section { background: white; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 245px; gap: 15px; }
.gallery-item { overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: var(--cream); cursor: zoom-in; }
.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); }
.gallery-item:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

.contact { color: white; background: var(--teal); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(50px, 9vw, 120px); }
.contact h2 { color: white; }
.contact p { margin: 24px 0 0; color: rgba(255,255,255,.88); }
.contact .eyebrow { color: #ffdd82; }
.contact-card { display: grid; gap: 24px; margin: 0; padding: 35px; border-radius: var(--radius); background: rgba(255,255,255,.12); font-style: normal; }
.contact-card div { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-card div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-card span { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 700; }
.contact-card strong, .contact-card a { color: white; font-size: 1.08rem; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }

.map-section { background: var(--cream); }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.map-frame { position: relative; overflow: hidden; height: 440px; border: 8px solid white; border-radius: var(--radius); background: #dbe5df; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-label { position: absolute; z-index: 2; top: 18px; left: 18px; display: grid; max-width: min(390px, calc(100% - 36px)); padding: 15px 18px; border-radius: 15px; color: var(--ink); background: rgba(255,254,250,.96); box-shadow: 0 8px 24px rgba(24,54,74,.2); line-height: 1.35; pointer-events: none; }
.map-label span { margin-bottom: 4px; color: var(--coral); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.map-label strong { color: var(--navy); font-size: .98rem; }
.map-label small { margin-top: 4px; color: var(--muted); font-size: .82rem; }

.site-footer { padding: 30px 0; color: #d8e4e7; background: var(--navy); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .88rem; }
.footer-brand { display: flex; align-items: center; gap: 13px; color: white; font-weight: 700; line-height: 1.35; }
.footer-brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }

.lightbox { max-width: min(1000px, 92vw); max-height: 90vh; padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(12,25,34,.86); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 18px; }
.lightbox-close { position: absolute; z-index: 1; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.6); font-size: 1.8rem; line-height: 1; cursor: pointer; }

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 680px); }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 14px; right: 14px; display: none; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; gap: 6px; }
  .main-nav a { padding: 10px; }
  .main-nav a::after { display: none; }
  .brand span { max-width: 245px; font-size: .88rem; }
  .hero { padding-top: 48px; }
  .hero-grid, .section-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image { width: 100%; max-width: 680px; }
  .section { padding: 75px 0; }
  .values { grid-template-columns: 1fr; }
  .section-heading { display: grid; gap: 22px; }
  .map-heading { align-items: start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}

@media (max-width: 520px) {
  .brand img { width: 50px; height: 50px; }
  .brand span { max-width: 170px; font-size: .74rem; }
  h1 { font-size: 2.55rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 235px; }
  .gallery-wide { grid-column: auto; }
  .contact-card { padding: 25px; }
  .contact-card div { grid-template-columns: 1fr; gap: 4px; }
  .map-frame { height: 360px; border-width: 5px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
