@media (min-width: 1025px) {

  /* ===== SEKCJA OGÓLNA ===== */
 .auf-realizations {
  width: 100%;
  color: #9c9c9c;
  font-weight: 300;
}
  .auf-realizations,
  .auf-realizations * {
    box-sizing: border-box;
  }

  /* ===== NAGŁÓWEK ===== */
  .auf-realizations-head {
    display: grid;
    grid-template-columns: 180px 1.4fr 0.9fr 0.5fr 80px;
    min-height: 72px;
    align-items: end;
    padding: 0 32px 28px 32px;
    color: #111;
    font-size: 16px;
    border-bottom: 1px solid #111;
  }

  /* ===== WIERSZ PROJEKTU ===== */
  .auf-realization-item {
    position: relative;
    background: #111;
    border-bottom: 4px solid #9c9c9c;
    overflow: hidden;
    transition: background 0.3s ease;
  }

  /* Zdjęcie hover w tle */
  .auf-realization-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--item-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
  }
  .auf-realization-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
  }
  .auf-realization-item:hover::before,
  .auf-realization-item:hover::after {
    opacity: 1;
  }
  .auf-realization-item.is-open::before,
  .auf-realization-item.is-open::after {
    opacity: 0;
  }

  /* ===== GRID WIERSZA (Category / Project / Location / Date / Toggle) ===== */
.auf-realization-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 180px 1.4fr 0.9fr 0.5fr 80px;
  align-items: center;
  min-height: 136px;
  padding: 0 0 0 32px;
}

  .auf-realization-category span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #9c9c9c;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
  }

  .auf-realization-project {
    font-size: 24px;
    line-height: 1.2;
    color: #9c9c9c;
  }

  .auf-realization-location,
  .auf-realization-date {
    font-size: 18px;
    line-height: 1.25;
  }

  /* ===== PRZYCISK MORE / HIDE ===== */
.auf-realization-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0 32px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 80px;
  overflow: visible;
  white-space: nowrap;
}
  .auf-realization-toggle:hover,
  .auf-realization-toggle:focus {
    background: transparent !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
  }
  .auf-realization-toggle .more,
  .auf-realization-toggle .hide {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 16px;
    letter-spacing: 0.05em;
  }
  /* Domyślnie hide ukryte */
  .auf-realization-toggle .hide {
    display: none;
  }
  /* Po otwarciu: more ukryte, hide widoczne */
.auf-realization-item.is-open .auf-realization-toggle .hide {
  display: block !important;
}

.auf-realization-item.is-open .auf-realization-toggle .more {
  display: none !important;
}
  /* Hover na przycisku */
  .auf-realization-item:hover .auf-realization-toggle .more,
  .auf-realization-item:hover .auf-realization-toggle .hide {
    color: #ffffff;
    transform: rotate(180deg) translateX(4px);
    transition: color 0.3s ease, transform 0.3s ease;
  }

  /* ===== ROZWINIĘTE SZCZEGÓŁY ===== */
  .auf-realization-details {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
  }
  .auf-realization-item.is-open .auf-realization-details {
    max-height: 360px;
    padding: 32px 32px 48px 32px;
  }

  /* Kolumna z opisem */
  .auf-realization-desc-col {
    width: 480px;
    flex-shrink: 0;
    padding-left: 180px;
    color: #fff;
    font-size: 19px;
    line-height: 1.35;
  }
  .auf-realization-desc-col p {
    margin: 0 0 40px 0;
  }

  /* Kolumna ze zdjęciem */
  .auf-realization-img-col {
    flex: 1;
    height: 220px;
    margin-left: 90px;
  }
  .auf-realization-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
  }

  /* ===== LINK SEE PROJECT ===== */
  .auf-see-project {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
  }
  .auf-see-project span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

/* ===================== MOBILE (≤1024px) ===================== */
@media (max-width: 1024px) {

  /* Sekcja: czarne tło, jasny light-tekst */
  .auf-realizations {
    color: #9c9c9c;
    font-weight: 300;
    background: #111;
    padding: 8px 20px 24px 20px;
  }
  .auf-realizations,
  .auf-realizations * {
    box-sizing: border-box;
  }

  /* Nagłówek kolumn — na mobile bez sensu */
  .auf-realizations-head {
    display: none;
  }

  /* Wiersz projektu */
  .auf-realization-item {
    position: relative;
    background: transparent;
    border-bottom: 1px solid #2a2a2a;
    overflow: hidden;
  }
  /* Wyłącz tło-hover z desktopu (na dotyku nie ma hovera) */
  .auf-realization-item::before,
  .auf-realization-item::after {
    display: none;
  }

  /* Zwinięty wiersz: kółko | (nazwa / lokalizacja / rok) | More */
  .auf-realization-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "cat proj   toggle"
      "cat loc    toggle"
      "cat date   toggle";
    align-items: center;
    justify-items: start;
    column-gap: 14px;
    row-gap: 3px;
    padding: 22px 0;
    min-height: 0;
  }

  /* Kółko z literą (filled szary, jak na desktopie, tylko mniejsze) */
  .auf-realization-category { grid-area: cat; align-self: center; }
  .auf-realization-category span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #9c9c9c;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
  }

  /* Nazwa projektu */
  .auf-realization-project {
    grid-area: proj;
    align-self: end;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
  }

  /* Lokalizacja (City / Country) */
  .auf-realization-location {
    grid-area: loc;
    color: #9c9c9c;
    font-size: 12px;
    line-height: 1.3;
  }

  /* Rok */
  .auf-realization-date {
    grid-area: date;
    align-self: start;
    color: #9c9c9c;
    font-size: 12px;
    line-height: 1.3;
  }

  /* Przycisk More / Hide — poziomo, nie pionowo */
.auf-realization-toggle {
    grid-area: toggle;
    align-self: center;
    width: auto;
    padding: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
  }
  .auf-realization-toggle:focus,
  .auf-realization-toggle:focus-visible,
  .auf-realization-toggle:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .auf-realization-toggle .more,
  .auf-realization-toggle .hide {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: #9c9c9c;
    white-space: nowrap;
  }
  /* Przełączanie more/hide na mobile (desktopowe reguły tu nie sięgają) */
  .auf-realization-toggle .hide { display: none; }
  .auf-realization-item.is-open .auf-realization-toggle .hide { display: block; }
  .auf-realization-item.is-open .auf-realization-toggle .more { display: none; }

  /* Szczegóły — pionowo: opis, pod nim zdjęcie na całą szerokość */
  .auf-realization-details {
    position: relative;
    z-index: 3;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
  }
  .auf-realization-item.is-open .auf-realization-details {
    max-height: 700px;
    padding: 0 0 26px 0;
  }

  /* Kolumna opisu → pełna szerokość, bez desktopowego wcięcia 180px */
  .auf-realization-desc-col {
    width: auto;
    padding-left: 0;
    color: #9c9c9c;
    font-size: 14px;
    line-height: 1.5;
  }
  .auf-realization-desc-col p {
    margin: 0 0 18px 0;
  }

  /* Zdjęcie → pełna szerokość, sztywne 220px */
  .auf-realization-img-col {
    width: 100%;
    height: 220px;
    margin-left: 0;
    margin-top: 4px;
  }
  .auf-realization-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
  }

  /* Link See project → biały, bez kółka (spójnie z makietą) */
  .auf-see-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
  }
  .auf-see-project span {
    width: auto;
    height: auto;
    background: transparent;
    color: #fff;
    border-radius: 0;
  }

}