/* uses.css — układ dwukolumnowy (przypięty astronauta + przewijana treść),
   współdzielony przez uses.html („Czego używam") i projekty.html („Projekty") */

body.uses-page {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  align-items: start;
  gap: 2rem;
  height: auto;
  min-height: 100vh;
}

body.uses-page * {
  box-sizing: border-box;
}

/* lewa kolumna — animowany astronauta, przypięty podczas przewijania */
.uses-figure {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.uses-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

/* prawa kolumna — treść do lewej, przewija się ze stroną */
.uses-content {
  max-width: 62ch;
  padding: 3rem 2.5rem 4rem 0;
}

.uses-content h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  font-weight: bold;
}

.uses-intro {
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
}

.uses-content section {
  margin: 0 0 2.25rem;
}

.uses-content h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: bold;
}

.uses-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses-content li {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.uses-content a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.uses-content a:hover,
.uses-content a:focus-visible {
  border-bottom-color: var(--green);
}

.uses-disclaimer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* telefon — układ pionowy: astronauta na górze, treść pod spodem */
@media (max-width: 768px) {
  body.uses-page {
    display: block;
  }

  .uses-figure {
    display: block;
    position: static;
    height: auto;
    padding: 1.5rem 1.5rem 0;
  }

  .uses-content {
    max-width: none;
    padding: 1.5rem;
  }

  .uses-content h1 {
    font-size: 2rem;
  }
}
