/* ===== RANKING — styl dopasowany do icie.com.pl ===== */
.ran-section {
  font-family: 'Roboto', sans-serif;
  color: #272727;
  line-height: 26px;
  margin: 30px 0 50px;
}
.ran-section *,
.ran-section *::before,
.ran-section *::after { box-sizing: border-box; }
.ran-section a { text-decoration: none; }
 
/* === Nagłówek === */
.ran-head {
  border-bottom: 2px solid #1782c7;
  padding-bottom: 20px;
  margin-bottom: 26px;
}
.ran-head__kicker {
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1782c7;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ran-head__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: #112633;
  margin: 0 0 12px;
}
.ran-head__lead {
  font-size: 15px;
  line-height: 26px;
  color: #555;
  margin: 0 0 16px;
}
.ran-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
  color: #666;
}
.ran-head__meta strong {
  color: #112633;
  font-weight: 700;
  margin-right: 3px;
}
 
/* === Metodologia + autor === */
.ran-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
  align-items: stretch;
}
.ran-meta-card {
  background: #f4f4f4;
  border-left: 3px solid #1782c7;
  padding: 16px 18px;
}
.ran-meta-card__label {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1782c7;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ran-meta-card__text {
  font-size: 13px;
  color: #555;
  line-height: 22px;
  margin: 0;
}
.ran-author {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ran-author__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #1782c7;
  background: #112633;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.ran-author__body { min-width: 0; }
.ran-author__name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #112633;
  line-height: 20px;
  margin-bottom: 2px;
}
.ran-author__role {
  font-size: 12px;
  color: #1782c7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 18px;
  margin-bottom: 6px;
}
.ran-author__bio {
  font-size: 12px;
  color: #555;
  line-height: 18px;
  margin: 0;
}
 
/* === Filtry === */
.ran-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #f4f4f4;
}
.ran-filters__label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #112633;
  text-transform: uppercase;
  margin-right: 6px;
}
.ran-filter {
  background: #fff;
  border: 1px solid #ddd;
  color: #272727;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ran-filter:hover {
  border-color: #1782c7;
  color: #1782c7;
}
.ran-filter.is-active {
  background: #1782c7;
  border-color: #1782c7;
  color: #fff;
}
 
/* === KARTA TOP 1 === */
.ran-top {
  position: relative;
  background: #fff;
  border: 2px solid #112633;
  padding: 32px 26px 24px;
  margin: 18px 0 14px;
}
.ran-top__badge {
  position: absolute;
  top: -14px;
  left: 22px;
  background: #fbca00;
  color: #112633;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  text-transform: uppercase;
}
.ran-top__grid {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: flex-start;
}
.ran-top__logo {
  width: 100px;
  height: 70px;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ran-top__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.ran-top__body { min-width: 0; }
.ran-top__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.ran-top__name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: #112633;
  margin: 0;
}
.ran-top__tenure { font-size: 13px; color: #777; }
.ran-top__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.ran-top__stars { color: #fbca00; font-weight: 700; font-size: 18px; line-height: 1; }
.ran-top__rating-value { color: #112633; font-weight: 700; font-size: 15px; }
.ran-top__reviews { font-size: 13px; color: #777; }
.ran-top__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ran-tag {
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  text-transform: uppercase;
}
.ran-tag--primary { background: #112633; color: #fff; }
.ran-tag--neutral { background: #e5eef5; color: #112633; }
.ran-top__desc {
  font-size: 14px;
  color: #555;
  line-height: 24px;
  margin: 0;
}
.ran-top__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.ran-score {
  background: #112633;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 30px;
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  line-height: 1;
}
.ran-score__sub {
  font-size: 13px;
  color: #8ba0ad;
  font-weight: 400;
  margin-left: 2px;
}
.ran-btn {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.ran-btn--primary {
  background: #fbca00;
  color: #112633 !important;
}
.ran-btn--primary:hover {
  background: #112633;
  color: #fff !important;
}
.ran-btn--ghost {
  background: #fff;
  color: #112633 !important;
  border: 2px solid #112633;
}
.ran-btn--ghost:hover {
  background: #112633;
  color: #fff !important;
}
 
/* === KARTY 2–5 === */
.ran-row {
  display: grid;
  grid-template-columns: 46px 54px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #1782c7;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  text-align: left;
}
.ran-row:hover {
  border-color: #112633;
  border-left-color: #fbca00;
  box-shadow: 0 4px 14px rgba(17, 38, 51, 0.08);
}
.ran-row__position {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #1782c7;
  text-align: center;
  line-height: 1;
}
.ran-row__logo {
  width: 54px;
  height: 54px;
  background: #112633;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.ran-row__body { min-width: 0; }
.ran-row__title-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.ran-row__name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #112633;
  margin: 0;
  line-height: 24px;
}
.ran-row__stars { color: #fbca00; font-size: 14px; font-weight: 700; line-height: 1; }
.ran-row__rating { color: #112633; font-size: 14px; font-weight: 700; }
.ran-row__reviews { font-size: 12px; color: #777; }
.ran-row__meta { font-size: 12px; color: #666; margin: 0; line-height: 18px; }
.ran-row__score {
  background: #f4f4f4;
  border-left: 3px solid #1782c7;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 8px 14px;
  color: #112633;
  line-height: 1;
}
.ran-row__score-sub { font-size: 11px; color: #888; font-weight: 400; }
.ran-row__cta {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #112633;
  letter-spacing: 0.5px;
  padding: 9px 16px;
  border: 2px solid #112633;
  transition: all 0.3s ease;
  text-transform: uppercase;
  line-height: 1;
}
.ran-row__cta:hover {
  background: #fbca00;
  border-color: #fbca00;
  color: #112633 !important;
}
 
/* Stan filtra: ukryj */
.ran-row.is-hidden,
.ran-top.is-hidden { display: none; }
 
/* === Mid-page CTA bar === */
.ran-cta-bar {
  background: #112633;
  color: #fff;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 32px 0 10px;
  border-left: 4px solid #fbca00;
}
.ran-cta-bar__kicker {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fbca00;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ran-cta-bar__title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 28px;
  margin: 0 0 4px;
}
.ran-cta-bar__sub {
  font-size: 13px;
  color: #b4c5d0;
  line-height: 20px;
  margin: 0;
}
.ran-cta-bar__btn {
  background: #fbca00;
  color: #112633 !important;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 24px;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 2px solid #fbca00;
}
.ran-cta-bar__btn:hover {
  background: #fff;
  border-color: #fff;
  color: #112633 !important;
}
 
/* === Responsive === */
@media (max-width: 1024px) {
  .ran-head__title { font-size: 28px; line-height: 36px; }
  .ran-top__grid { grid-template-columns: 90px 1fr; }
  .ran-top__logo { width: 90px; height: 60px; }
  .ran-top__aside {
    grid-column: 1 / -1;
    margin-top: 16px;
    flex-direction: row;
    min-width: 0;
  }
  .ran-top__aside .ran-score { flex: 0 0 auto; }
  .ran-top__aside .ran-btn { flex: 1; }
}
@media (max-width: 767px) {
  .ran-section,
  .ran-section * { text-align: left; }
  .ran-section .ran-cta-bar,
  .ran-section .ran-cta-bar * { text-align: center; }
  .ran-section { margin: 20px 0 40px; }
  .ran-head__title { font-size: 23px; line-height: 30px; }
  .ran-head__lead { font-size: 14px; line-height: 23px; }
  .ran-meta-row { grid-template-columns: 1fr; }
  .ran-top { padding: 28px 18px 20px; }
  .ran-top__grid { grid-template-columns: 1fr; text-align: left; }
  .ran-top__logo { width: 100px; height: 60px; margin-bottom: 4px; }
  .ran-top__aside { flex-direction: column; margin-top: 18px; }
  .ran-top__name { font-size: 22px; line-height: 28px; }
  .ran-row {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "pos   body"
      "score cta";
    column-gap: 14px;
    row-gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }
  .ran-row__position {
    grid-area: pos;
    font-size: 28px;
    text-align: left;
    line-height: 1;
    padding-top: 2px;
  }
  .ran-row__logo { display: none; }
  .ran-row__body { grid-area: body; }
  .ran-row__title-line {
    align-items: flex-start;
    gap: 4px 8px;
    margin-bottom: 4px;
  }
  .ran-row__name {
    font-size: 17px;
    line-height: 22px;
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .ran-row__reviews {
    flex-basis: 100%;
    font-size: 12px;
    color: #777;
    line-height: 18px;
    margin-top: 2px;
  }
  .ran-row__meta {
    font-size: 12px;
    line-height: 18px;
    margin-top: 2px;
  }
  .ran-row__score {
    grid-area: score;
    justify-self: start;
    align-self: center;
    font-size: 17px;
    padding: 7px 14px;
    margin: 0;
  }
  .ran-row__cta {
    grid-area: cta;
    justify-self: end;
    align-self: center;
    padding: 9px 16px;
    font-size: 11px;
  }
  .ran-cta-bar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 20px;
  }
  .ran-cta-bar__btn { width: 100%; }
}
