@charset "UTF-8";
/* =====================================================
   KARTY S2 - wspolne style (strona glowna + podstrony)
   ===================================================== */
.s2 {
  padding: 20px;
}

.s2_h {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--tlo-niebieskie, #2563eb);
  font-weight: 700;
}

.s2_wasko {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
@media (max-width: 1100px) {
  .s2_wasko {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .s2_wasko {
    grid-template-columns: 1fr;
  }
}

.s2_a {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  position: relative;
  overflow: hidden;
}
.s2_a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--zolty);
  transition: height 0.3s ease;
}
.s2_a.k_n::after {
  background: var(--niebieski);
}
.s2_a.k_c::after {
  background: var(--czerwony);
}
.s2_a.k_f::after {
  background: var(--fioletowy);
}
.s2_a.k_s::after {
  background: var(--k2);
}
.s2_a.k_zi::after {
  background: var(--zielony);
}
.s2_a.s2_more::after {
  background: rgba(255, 255, 255, 0.3);
}
.s2_a.s2_more .s2_t {
  font-size: 21px;
  margin-bottom: 10px;
}
.s2_a.s2_more .s2_s {
  padding-top: 0;
}
.s2_a:hover, .s2_a:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--tlo-niebieskie);
}
.s2_a:hover::after, .s2_a:focus::after {
  height: 6px;
}
.s2_a:hover .s2_s, .s2_a:focus .s2_s {
  transform: translateX(5px);
  opacity: 1;
}

.s2_a--nobar::after {
  display: none;
}

.s2_t {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #1a1a1a;
}

.s2_s {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  color: var(--tlo-niebieskie);
  font-weight: 500;
  font-size: 15px;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.s2_s::after {
  content: "→";
  margin-left: 8px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Zdjecie w karcie */
.s2_img {
  margin: -30px -30px 15px;
  overflow: hidden;
}
.s2_img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.s2_a:hover .s2_img img {
  transform: scale(1.05);
}

/* Data i opis */
.s2_data {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.s2_opis {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 5px;
}

/* Przycisk "Zobacz wszystkie" */
.s2_zobacz_wszystkie {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.przycisk--jasny {
  display: inline-block;
  background-color: var(--tlo-szare, #f5f5f5);
  color: var(--tlo-niebieskie, #303cce);
  width: auto;
  margin: 0 auto;
  padding: 0 40px;
  font-weight: 600;
  font-size: 15px;
}
.przycisk--jasny:hover, .przycisk--jasny:focus {
  background-color: var(--tlo-niebieskie);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .s2 {
    padding: 20px;
  }
  .s2_h {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .s2_a {
    padding: 25px;
  }
  .s2_t {
    font-size: 17px;
  }
  .s2_a.s2_more .s2_t {
    font-size: 19px;
  }
  .s2_img {
    margin: -25px -25px 15px;
  }
}
