.main {
  margin: 54px auto 0 auto;
}
@media only screen and (max-width: 1200px) {
  .main {
    margin: 49px auto 0 auto;
  }
}
@media only screen and (max-width: 600px) {
  .main {
    margin: 46px auto 0 auto;
  }
  .main__hero {
    min-height: 160px;
  }
}

.opWrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(128, 0, 0, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(128, 0, 0, 0.05) 0%, transparent 100%),
    linear-gradient(180deg, #f9f6f6 0%, #ffffff 40%, #f7f3f4 70%, #ffffff 100%);
}
.opWrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../images/catalog/opinions.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.opWrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 10%, #800000 50%, transparent 90%);
  opacity: 0.3;
  pointer-events: none;
}

.op {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
  position: relative;
  z-index: 1;
}
@media only screen and (max-width: 1050px) {
  .op {
    padding: 30px 15px 50px 15px;
  }
}
@media only screen and (max-width: 600px) {
  .opWrapper {
    padding-top: 120px;
  }
  .op {
    padding: 20px 10px 40px 10px;
  }
}

.op__h1 {
  color: #800000;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.2em;
}
@media only screen and (max-width: 1050px) {
  .op__h1 {
    font-size: 28px;
  }
}
@media only screen and (max-width: 600px) {
  .op__h1 {
    font-size: 24px;
  }
}

.op__subtitle {
  color: #656263;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 40px 0;
}
@media only screen and (max-width: 1050px) {
  .op__subtitle {
    font-size: 16px;
    margin: 0 0 25px 0;
  }
}

/* ====== FILTERS ====== */
.op__filters {
  width: 100%;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 0 0 30px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 100px;
}
@media only screen and (max-width: 1050px) {
  .op__filters {
    padding: 20px 15px;
  }
}

.op__filtersRow {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}
@media only screen and (max-width: 850px) {
  .op__filtersRow {
    flex-direction: column;
    align-items: stretch;
  }
  .op__filterGroup {
    flex: 0 0 auto !important;
  }
}

.op__filterGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 200px;
}
.op__filterGroup--btn {
  flex: 0 0 auto;
}

.op__filterLabel {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.op__select {
  padding: 10px 16px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: white;
  min-width: 160px;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23800000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.op__select:focus {
  outline: none;
  border-color: #800000;
}
.op__select:disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
}

.op__searchBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 30px;
  background: #800000;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}
.op__searchBtn:hover {
  background: #a00000;
  box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ====== RESULTS HEADER ====== */
.op__resultsHeader {
  width: 100%;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 15px;
}
.op__resultsCount {
  font-size: 22px;
  font-weight: 500;
  color: #333;
}
.op__resultsCount strong {
  color: #800000;
  font-weight: 800;
  font-size: 26px;
}
.op__resultsRange {
  font-size: 14px;
  font-weight: 400;
  color: #888;
}
@media only screen and (max-width: 600px) {
  .op__resultsHeader {
    flex-direction: column;
    gap: 4px;
  }
  .op__resultsCount {
    font-size: 18px;
  }
  .op__resultsCount strong {
    font-size: 22px;
  }
}

/* ====== LOADING & NO RESULTS ====== */
.op__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  font-size: 18px;
  color: #800000;
  font-weight: 500;
}

.op__noResults {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 60px 20px;
  font-size: 17px;
  color: #656263;
  background: white;
  border-radius: 16px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}
.op__noResults i {
  font-size: 48px;
  color: #ccc;
}

/* ====== GRID ====== */
.op__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media only screen and (max-width: 850px) {
  .op__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}
@media only screen and (max-width: 450px) {
  .op__grid {
    grid-template-columns: 1fr;
  }
}

/* ====== CARD ====== */
.op__card {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.op__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #800000;
  border-radius: 16px 0 0 16px;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.op__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 35px rgba(128, 0, 0, 0.12);
  border-color: rgba(128, 0, 0, 0.15);
}
.op__card:hover::before {
  transform: scaleY(1);
}

.op__cardTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px 0;
}

.op__stars {
  color: #edc82b;
  font-size: 18px;
  display: flex;
  gap: 2px;
  align-items: center;
}
.op__stars i {
  filter: drop-shadow(0 1px 2px rgba(237, 200, 43, 0.3));
}
.op__starPartial {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}
.op__starPartial i {
  position: absolute;
  top: 0;
  left: 0;
}

.op__grade {
  font-size: 17px;
  font-weight: 800;
  color: #333;
}

.op__training {
  font-size: 16px;
  font-weight: 700;
  color: #800000;
  line-height: 1.3em;
  margin: 0 0 10px 0;
}

.op__content {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  line-height: 1.6em;
  margin: 0 0 18px 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  white-space: normal;
}

.op__cardBottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 15px;
  padding: 14px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.op__authorBlock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.op__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.op__author i {
  color: #800000;
  font-size: 14px;
  flex-shrink: 0;
}

.op__name {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op__company {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  padding-left: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op__date {
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  white-space: nowrap;
}

/* ====== PAGINATION ====== */
.op__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 0 0;
  flex-wrap: wrap;
}

.op__pageBtn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: white;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  padding: 0 8px;
  font-family: "Poppins", sans-serif;
}
.op__pageBtn:hover {
  border-color: #800000;
  color: #800000;
  background: rgba(128, 0, 0, 0.05);
}
.op__pageBtn--active {
  background: #800000;
  color: white;
  border-color: #800000;
}
.op__pageBtn--active:hover {
  background: #a00000;
  color: white;
}

.op__pageDots {
  font-size: 16px;
  color: #999;
  padding: 0 4px;
}
