* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.45 Arial, sans-serif;
  color: #1a1a1a;
  background: #f3f4f6;
}
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 12px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px 18px;
}

.header h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.details-card h2 {
  margin-top: 2px;
}

.intro {
  margin: 0 0 18px;
  color: #4b5563;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.tile {
  border: 1px solid #ddd;        /* było #d7dbe0 */
  border-radius: 12px;           /* było 14px */
  background: #fff;
  padding: 16px 18px;            /* dopasowane do details */
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.05);  /* było mocniejsze */
}
.tile.active {
  border-color: #7aa27c;
  box-shadow: 0 0 0 3px rgba(122,162,124,.14);
}





/* DETAILS */
.details {
  max-width: none;
  margin: 0 auto;
}

.details-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

/* spacing between elements */
.details-card > * {
  margin-bottom: 16px;
}

.details-card > *:last-child {
  margin-bottom: 0;
}

/* AUDIO */
.audio-player {
  width: 100%;
  display: block;
  margin-bottom: 14px;
}

/* IMAGE */
.photo-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* META */
.meta {
  font-size: 13px;
  color: #666;
}

.meta a {
  color: #444;
  text-decoration: none;
}

.meta a:hover {
  text-decoration: underline;
}

/* PLACEHOLDER */
.placeholder {
  color: #777;
  font-style: italic;
}

.footer {
  margin-top: 6px;
  margin-bottom: 32px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.footer a {
  color: #6b7280;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.lang-switch {
  margin-top: 8px;
  font-size: inherit;     /* taka sama czcionka */
  color: #6b7280;         /* jak intro */
}

.lang-switch a {
  color: inherit;         /* NIE niebieski */
  text-decoration: none;
}

.lang-switch a:hover {
  text-decoration: underline;
}

.lang-switch .active {
  color: #111827;         /* ciemniejszy */
  font-weight: 500;       /* delikatne wyróżnienie */
}