/* Reset i bazowe */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f1b2d; background: #ffffff; }*/
body {  font-family: 'Lato', sans-serif; /* podstawowy font dla treści */}
/*h1,h2,h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; }*/
h1, h2, h3 { font-family: 'Fondamento', serif; /* font dla nagłówków */}
p { line-height: 1.7; }
img { max-width: 100%; display: block; }

:root {
  --blue: #0a3b7a;   /* morski niebieski (akcent kaszubski) */
  --red: #c3272b;
  --yellow: #e4b200;
  --green: #2b7a0a;
  --gray-100: #f6f8fb;
  --gray-200: #eef2f7;
  --gray-700: #475569;
}

.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section-accent { background: var(--gray-100); }
.section-intro { color: var(--gray-700); max-width: 60ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: #fff; border: 2px solid var(--blue); z-index: 10000; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 999; background: #fff; border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--blue); }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--blue); border-radius: 50%; font-size: 16px; }
.logo-text { font-family: "Playfair Display", Georgia, serif; font-size: 20px; }

.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: #0f1b2d; padding: 8px 10px; border-radius: 10px; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); background: #e7f0ff; }

.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 26px; height: 2px; background: #0f1b2d; margin: 5px 0; }

/* Buttons */
.btn { display: inline-block; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 2px solid transparent; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: #e7f0ff; }

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; overflow: clip; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,59,122,0.55), rgba(10,59,122,0.75)); background-position: center; background-size: cover; background-repeat: no-repeat; filter: saturate(1) contrast(1.1); transition: opacity .6s ease; }
.hero-media.fade { opacity: .55; }
@keyframes heroFade { from { opacity: .65; } to { opacity: 1; } }
.hero-media.swap { animation: heroFade .7s ease; }
.hero-inner { position: relative; text-align: center; color: #fff; padding: 96px 0 72px; }
.hero .lead { max-width: 60ch; margin: 12px auto 20px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }

.hero-logo {
  max-width: 220px;   /* szerokość logo */
  margin: 0 auto 20px auto; /* wyśrodkowanie + odstęp od H1 */
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); /* delikatny cień */
}

.hero-inner h1 {
  font-family: 'Fondamento', serif;
  font-size: 3rem;
  letter-spacing: 2px;
  /*text-transform: uppercase;  jeśli chcesz wszystkie duże litery */
}

.hero-inner h1 span {
  font-size: 1.5rem;
  font-weight: 400;
}

.hero-inner h2 {
  font-family: 'Fondamento', serif;
  font-size: 3rem;
  letter-spacing: 2px;
  /*text-transform: uppercase;  jeśli chcesz wszystkie duże litery */
}

/* Placeholders (obrazy/miniatury) */
.image-placeholder { width: 100%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #ffffff, #ffffff 8px, #e8eef8 8px, #e8eef8 16px); border: 2px dashed #b3c2da; border-radius: 16px; }
.thumb-ph, .video-ph, .slide, .logo-ph { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #f1f5fb 8px, #f1f5fb 16px); border: 2px dashed #b9c6db; border-radius: 12px; }

/* Styl dla zdjęcia w sekcji O Zespole */
.about-image img {
width: 100%;
height: auto;
border-radius: 16px; /* zaokrąglenie rogów */
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Styl dla zdjęć portretowych w kształcie koła */
.portrait-round img {
width: 250px;
height: 250px;
object-fit: cover;
border-radius: 50%; /* całkowicie okrągłe */
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Siatka zespołu – sekcja Poznaj nas */
.team-grid {
margin-top: 32px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 24px;
justify-items: center;
text-align: center;
}
.team-grid .name {
margin-top: 12px;
font-weight: 600;
}
.team-grid .role {
font-weight: 400;
color: #475569;
font-size: 14px;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 20px; box-shadow: 0 8px 18px rgba(2, 12, 33, 0.03); }
.card .meta { color: var(--gray-700); font-size: 14px; }

/* Events */
.events { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.events li { display: grid; grid-template-columns: 120px 1fr 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px; }
.events time { font-weight: 700; color: var(--blue); }
.events .event-action { color: var(--blue); text-decoration: none; font-weight: 600; }
.events .event-action:hover { text-decoration: underline; }

/* Gallery */
.gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.thumb { aspect-ratio: 4/3; }
.thumb .thumb-ph { width: 100%; height: 100%; }
.video-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.video-ph { aspect-ratio: 16 / 9; }

.gallery a {
  display: block;
}
.gallery img {
  cursor: zoom-in;
}

.gallery .thumb img {
  border-radius: 12px;   /* zaokrąglone rogi */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* cień dla lepszego efektu */
  transition: transform 0.3s ease;
}

.gallery .thumb img:hover {
  transform: scale(1.05); /* delikatne powiększenie przy najechaniu */
}

.video-wrapper iframe {
  width: 100%;
  height: 315px;
  border-radius: 16px; /* zaokrąglenie rogów */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* cień dla efektu */
}

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.slide { height: 240px; scroll-snap-align: center; }
.carousel-controls { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 10px; padding: 10px 0; }
.carousel-controls button { background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; }

/* Testimonials & partners */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
blockquote { margin: 0; padding: 18px 20px; background: #fff; border-left: 4px solid var(--blue); border-radius: 8px; }
.partners { margin-top: 18px; display: flex; gap: 16px; align-items: center; }
.logo-ph { width: 120px; height: 60px; }

/* Accordion (details) */
details.acc { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
details.acc[open] { border-color: var(--blue); }
details.acc summary { cursor: pointer; font-weight: 600; }
.acc-panel { margin-top: 8px; color: var(--gray-700); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 12px 0 22px; display: grid; gap: 8px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gray-200); font: inherit; }
/* ukrycie honeypota */
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
.contact-form textarea { grid-column: 1 / -1; }
.contact-form .checkbox { grid-column: 1 / -1; font-weight: 400; display: flex; align-items: center; gap: 8px; }
.form-status { min-height: 1.4em; margin-top: 6px; font-size: 14px; }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--gray-200); background: #fff; padding: 28px 0 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-nav { display: flex; gap: 14px; align-items: center; }
.footer-nav a { color: #0f1b2d; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.lang { color: var(--gray-700); }
.to-top { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-200); background: #fff; cursor: pointer; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .events li { grid-template-columns: 1fr; gap: 6px; }
  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--gray-200); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px; }
}