:root {
  --nav-bg: #009fe3;
  --nav-fg: #fff;
  --accent: hsl(327, 100%, 34%);
  --break: 768px;
  --bg: #ffffff;
}

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

html,
body {
  margin: 0;
  padding: 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 4px;
  z-index: 100;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  justify-content: space-between;
  background: #fff;
  color: #010f50;

}

/* Brand section */
.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  width: 100%;
}

.brand .logo {
  height: 100px;
  margin-right: 30px;
  width: auto;
  max-width: 100%;
}

.logo a {
  text-decoration: none;
}

.brand-text {
  max-width: 350 px;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.brand-text h1 {
  margin: 0;
  font-size: 2rem;
}

.brand-text p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
}

.brand .header-image {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  object-fit: cover;
  display: block;
  overflow: hidden;
}


/* Nawigacja */
.primary-nav {
  background: var(--nav-bg);
  width: 100%;
  padding: .25rem 0;
}


.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  background: var(--nav-bg);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}


.primary-nav a {
  background: var(--nav-bg);
  color: var(--nav-fg);
  text-decoration: none;
  padding: .5rem;
  border-radius: 4px;
  display: block;
  width: auto;
}

.primary-nav a:focus,
.primary-nav a:hover {
  background: var(--accent);
}

/* Responsive: navbar always visible */
@media (max-width: 767px) {
  .primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--nav-bg);
    padding: .5rem;
    position: static;
  }

  .primary-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 768) {
  .primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    transform: none;
  }

  .primary-nav ul {
    justify-content: flex-start;
  }

  .brand {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
    width: 100%;
  }

  .brand .logo {
    flex: 0 0 auto;
    height: 100px;
    width: auto;
  }

  .brand-text {
    flex: 0 0 auto;
    margin-left: 1rem;
    max-width: 350 px;
    height: 100px;
  }


  .brand .header-image {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    object-fit: cover;
    display: block;
    overflow: hidden;
  }
}

/*-- koniec navbara --*/



/*-- O nas --*/
.person-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  max-width: 1200px;
  padding: 1rem;
  justify-self: center;
  line-height: 2
;
}

.person-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}




@media (max-width: 767px) {
  .person-card {
    grid-template-columns: 1fr;
  }

  .person-card img {
    margin-bottom: 1rem;
    max-width: 300px;
    justify-self: center;
  }
}


/*-- koniec O nas --*/


/*-- intro i zdjęcia --*/

.intro {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: left;
}

.intro h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #010f50;
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.intro p:last-child {
  margin-bottom: 1rem;
}


.images-story {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%
}


.story-image {
  height: auto;
  flex: 1 1 auto;
  object-fit: contain;
}


/* Dla małych ekranów */
@media (max-width: 767px) {
  .images-story {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .story-image {
    width: 100%;
    object-fit: contain;
  }
}





/* Koniec intro i zdjęcia */


.top-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.card-container {
  display: block;
  width: 100%;
  padding: 1rem;
}

.link-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-container .description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.link-container .resource-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.link-container .resource-link:hover {
  background-color: #0056b3;
}

/*-- materialy.html --*/

.break-link {
  display: block;
  margin-top: 0.5rem;
  word-break: break-word;
}

/*-- koniec materialy.html --*/




/*-- kontakt.html --*/


:root {
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
  --radius: 12px;
}

body {
  background: var(--bg);
  margin: 0;
  padding: 0;
}

section.contact {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

section.contact h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Karta kontaktowa - układ 3 kolumn na dużych ekranach */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 1rem;
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.contact-card__name {
  font-weight: 600;
  font-size: 1.1rem;
}

.link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
}

.link:hover {
  text-decoration: underline;
}

.phone-number {
  font-size: 0.9rem;
  color: var(--muted);
}

.phone-number .label {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Przycisk kopiowania pod danymi */
.copy-btn {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.2s ease;
  width: fit-content;
}

.copy-btn:hover {
  background: color-mix(in oklab, var(--primary) 15%, transparent);
}

@media (max-width: 767px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .person-avatar {
    margin-bottom: 0.75rem;
  }

  .copy-btn {
    width: 100%;
  }
}


/*-- koniec kontakt.html --*/