.sidebar .noUi-target {
  background: #ebebeb;
  height: 4px;
  margin-bottom: 5px;
  box-shadow: none;
  border: none;
  border-radius: 9999px;
}
.sidebar .noUi-connect {
  background: #004e9f;
  box-shadow: none;
  border-radius: 9999px;
}
.sidebar .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #004e9f;
  border: none;
  box-shadow: none;
  cursor: pointer;
  top: -6px;
  right: -8px;
}
.sidebar .noUi-handle:focus { outline: none; }
.sidebar .noUi-handle::before,
.sidebar .noUi-handle::after {
  display: none;
}
.no-cards {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.no-cards p {
  color: #fff;
  text-align: center;
  margin: 0;
}
body {
  font-family: Unbounded, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding-top: 23px;
  padding-bottom: 45px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #f0f2f5;
  color: #000;
}

.catalog-wrapper {
  box-sizing: border-box;
  width: 100%;
}

.catalog-container {
  display: grid;
  grid-template-columns: 254px 1fr;
  align-items: flex-start;
  gap: 21px;
  box-sizing: border-box;
  max-width: 1303px;
  margin: 0 auto;
}

.catalog-header {
  width: 100%;
  margin: 0 auto 20px;
  padding: 0;
  box-sizing: border-box;
}

.catalog-title {
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 10px;
  color: #000;
}

.catalog-subtitle {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #333;
  margin: 0;
  font-style: normal;
  line-height: 18px;
  letter-spacing: -0.28px;
}

.startups-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  box-sizing: border-box;
  min-width: 0;
  gap: 21px;
}

.catalog-search-wrapper {
  width: 100%;
  max-width: 1032px;
  display: flex;
  justify-content: center;
}

.catalog-search {
  position: relative;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #004e9f;
  display: flex;
  align-items: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.catalog-search-input {
  flex-grow: 1;
  height: 33px;
  border: none;
  border-radius: 7px;
  padding: 0 15px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  color: #1e1e1e;
  background: #fff;
  line-height: 18px;
}

.catalog-search-input::placeholder {
  color: #cbcbcb;
  font-size: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 18px;
}

.catalog-search-btn {
  position: static;
  background: none;
  color: #fff;
  border: none;
  width: 28px;
  height: 27px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
  padding: 0;
  flex-shrink: 0;
}

.catalog-search-btn svg {
  width: 18.67px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}

.catalog-search-btn svg .search-icon-handle {
  stroke: white;
  stroke-width: 2;
}

.show-button {
  height: 40px;
  padding: 12px 35px;
  background: linear-gradient(0deg, #004e9f 0%, #006edf 100%);
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  color: #f5f5f5;
  font-size: 16px;
  font-family: Unbounded;
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
  text-align: center;
}

.show-button:hover {
  background: linear-gradient(0deg, #003d7a 0%, #005ab4 100%);
}

.sidebar {
  background: #fff;
  width: 254px;
  height: 750px;
  padding: 53px 28px 63px 28px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
}

#filterForm {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 36px;
  width: 197px;
  max-width: 100%;
}

.sort-dropdown {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sort-dropdown-title {
  width: 100%;
  color: black;
  font-size: 12px;
  font-family: Unbounded;
  font-weight: 300;
  letter-spacing: 0.12px;
  word-wrap: break-word;
  margin: 0;
}

.sort-dropdown select {
  width: 100%;
  height: 40px;
  padding: 12px 16px;
  padding-right: 35px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  font-size: 14px;
  appearance: none;
  background: #fff
    url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6 L8 10 L12 6" stroke="%231E1E1E" stroke-width="1.6" fill="none"/></svg>')
    no-repeat right 12px center;
  background-size: 16px 16px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  color: #1e1e1e;
  cursor: pointer;
  line-height: 18px;
  box-sizing: border-box;
}

.categories-title {
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 18px;
  letter-spacing: -0.02em;
  margin: 0;
  color: #000;
  width: 100%;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.category-item {
}

.category-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.category-checkbox {
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid black;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.category-checkbox:checked {
  background-color: #004e9f;
  border-color: #004e9f;
}

.category-name {
  color: black;
  font-size: 12px;
  font-family: Unbounded;
  font-weight: 300;
  letter-spacing: 0.12px;
  word-wrap: break-word;
  line-height: 1;
}

.rating-filter {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rating-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.rating-label {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12px;
  color: #1e1e1e;
  margin: 0;
}

.rating-value-display {
  color: #1e1e1e;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 19.6px;
  text-align: right;
}

.micro-investment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.micro-investment-label-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.micro-label {
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12px;
  color: black;
}

.help-icon {
  cursor: pointer;
  width: 14px;
  height: 14px;
  background: #d9d9d9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 8px;
  font-family: Circe, sans-serif;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 1px;
  box-sizing: border-box;
}

.toggle-switch {
  width: 40px;
  height: 24px;
  background-color: #ccc;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background-color: #004e9f;
}

.toggle-handle {
  width: 18px;
  height: 18px;
  background-color: #f5f5f5;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

.toggle-switch.active .toggle-handle {
  transform: translateX(16px);
}

.startups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(329px, 1fr));
  gap: 19px;
  justify-content: flex-start;
  width: 100%;
  max-width: 1032px;
  padding: 0;
  box-sizing: border-box;
  margin-top: 35px;
}

.pagination-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 0;
  width: 100%;
  gap: 20px;
}

.pagination-info {
  display: none;
}

.show-more-container {
  display: none;
}

.pagination-controls .show-more-btn {
  height: 40px;
  padding: 12px 35px;
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  outline: 1px solid white;
  justify-content: center;
  align-items: center;
  gap: 9px;
  display: inline-flex !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: #f5f5f5 !important;
  font-family: Unbounded, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  cursor: pointer !important;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    outline-color 0.3s ease !important;
  text-decoration: none !important;
  margin: 0 !important;
  width: auto !important;
  text-transform: none !important;
}

.pagination-controls .show-more-btn:hover {
  background-color: rgb(255 255 255 / 10%) !important;
  outline-color: #ccc !important;
  color: #fff !important;
}

.pagination-controls .show-more-btn i,
.pagination-controls .show-more-btn svg {
  width: 16px;
  height: 16px;
  color: #f5f5f5 !important;
  fill: #f5f5f5 !important;
  stroke: #f5f5f5 !important;
}

.hide-btn {
  display: none !important;
}

.pagination-numbers {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.pagination-numbers a,
.pagination-numbers span {
  text-decoration: none;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  line-height: 18px;
  word-wrap: break-word;
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.pagination-numbers a {
  color: white;
  font-size: 14px;
}

.pagination-numbers a:hover {
  background-color: rgb(255 255 255 / 10%);
}

.pagination-numbers .current-page {
  color: #004e9f;
  font-size: 14px;
  background: white;
  font-weight: 400;
}

.pagination-numbers .dots {
  color: white;
  font-size: 16px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  line-height: 22.4px;
  padding: 8px 0;
}

.startup-franchise-tag {
  position: absolute;
  top: 75px;
  left: 18px;
  font-family: Unbounded, sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgb(0 0 0 / 22%);
  background-color: transparent;
  padding: 0;
  z-index: 1;
  letter-spacing: 0.12px;
}

.no-startups {
  text-align: center;
  padding: 40px;
  color: #777;
  grid-column: 1 / -1;
  width: 100%;
}

.no-startups p {
  font-weight: 300;
  font-size: 16px;
  margin: 0;
}

@media (width <= 1320px) {
  body {
    padding: 20px;
  }

  .catalog-container {
    max-width: 100%;
    grid-template-columns: 220px 1fr;
    gap: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sidebar {
    width: 220px;
    padding: 30px 20px 40px 20px;
    height: auto;
  }

  .startups-grid {
    gap: 15px;
    justify-content: center;
  }

  .catalog-search {
    height: 38px;
  }

  .catalog-search-input {
    height: 30px;
  }
}

@media (width <= 960px) {
  .catalog-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    padding: 20px 20px 30px 20px;
    height: auto;
    transition: max-height .3s ease, padding .3s ease;
    overflow: hidden;
  }
  .sidebar.no-animate { transition: none !important; }
  .catalog-filters-toggle + .sidebar { max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
  .sidebar.mobile-collapsed { max-height: 0; padding-top: 0; padding-bottom: 0; }
  .sidebar.mobile-open { max-height: 2000px; padding: 20px 20px 30px 20px; }

  .startups-content {
    width: 100%;
    align-items: center;
  }

  .startups-grid {
    justify-content: center;
  }
}

@media (width <= 740px) {
  body {
    padding: 15px;
  }

  .catalog-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .startups-grid {
    justify-content: center;
    display: contents;
    gap: 15px;
  }

  .catalog-title {
    font-size: 24px;
  }

  .catalog-subtitle {
    font-size: 13px;
  }

  .catalog-search {
    height: 36px;
  }
  .catalog-search-input {
    height: 28px;
    font-size: 13px;
  }
  .catalog-search-input::placeholder {
    font-size: 13px;
  }
  .catalog-search-btn {
    width: 24px;
    height: 24px;
  }
  .catalog-search-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (width <= 400px) {
  body {
    padding: 10px;
  }

  .catalog-container {
    padding-left: 5px;
    padding-right: 5px;
  }

  .startups-grid {
    gap: 10px;
    margin-top: 25px;
  }
  .sidebar {
    padding: 15px 15px 25px 15px;
  }
  #filterForm {
    gap: 20px;
  }
  .sort-dropdown select {
    height: auto;
    font-size: 13px;
  }
  .category-name {
    font-size: 11px;
  }
  .rating-value-display {
    font-size: 13px;
  }
  .toggle-switch {
    width: 36px;
    height: 20px;
  }
  .toggle-handle {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }
  .toggle-switch.active .toggle-handle {
    transform: translateX(16px);
  }
  .show-button {
    height: 36px;
    font-size: 14px;
    line-height: 14px;
    padding: 10px 25px;
  }
}

.rating-filter .noUi-target {
  background: #ebebeb;
  height: 4px;
  margin-bottom: 5px;
  box-shadow: none;
  border: none;
  border-radius: 9999px;
}

.rating-filter .noUi-connect {
  background: #004e9f;
  box-shadow: none;
  border-radius: 9999px;
}

.rating-filter .noUi-handle {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #004e9f;
  border: none;
  box-shadow: none;
  cursor: pointer;
  top: -6px;
  right: -8px;
}

.rating-filter .noUi-handle:focus {
  outline: none;
}
.rating-filter .noUi-handle::before,
.rating-filter .noUi-handle::after {
  display: none;
}

.rating-range-label {
  color: #757575;
  font-size: 8px;
  font-family: Unbounded;
  font-weight: 300;
  letter-spacing: 0.08px;
  width: 100%;
  text-align: left;
  margin-top: 15px;
}

/* Новые стили карточек на основе макета Figma */
.startup-card {
  position: relative;
  width: 329px;
  height: 490px;
  background: #FFFFFF;
  border-radius: 9px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.startup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.startup-card-header {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
}

.startup-header-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #F5F5F5;
}

.startup-header-placeholder {
  width: 100%;
  height: 100%;
  background: #F5F5F5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}


.planet-miniature-container {
  position: absolute;
  top: 62px;
  right: 10px;
  width: 70px;
  height: 71px;
  z-index: 20;
  background: #E5E5E5;
  border-radius: 50%;
}

.planet-miniature {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.startup-card-content {
  padding: 10px;
  height: 332px;
  position: relative;
}

.startup-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 35px;
}

.startup-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #000000;
  background: #FFFFFF;
  flex-shrink: 0;
}

.startup-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.startup-logo .logo-placeholder {
  width: 100%;
  height: 100%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startup-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 0.9em;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.startup-category-row {
  display: flex;
  align-items: center;
  position: absolute;
  top: 55px;
  left: 10px;
  right: 10px;
  height: 27px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  background: #050505;
  color: #FFFFFF;
  border-radius: 5px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.24em;
  letter-spacing: 0.01em;
  height: 27px;
}

.startup-description-row {
  position: absolute;
  top: 92px;
  left: 10px;
  right: 10px;
  height: 60px;
  display: flex;
  align-items: flex-start;
}

.startup-description {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.24em;
  letter-spacing: 0.01em;
  color: #000000;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.startup-amount-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 162px;
  left: 10px;
  right: 10px;
  text-wrap: nowrap;
  height: 60px;
}

.amount-label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.24em;
  color: rgba(0, 0, 0, 0.44);
}

.amount-value {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.09em;
  letter-spacing: -0.02em;
  color: #2353D9;
  width: 192px;
}

.startup-progress-container {
  position: absolute;
  bottom: 50px;
  left: 10px;
  right: 10px;
  width: 308px;
  height: 51px;
}

.progress-bar-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background: #082047;
  border: 2px solid #4B7C80;
  border-radius: 30px;
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, rgba(158, 247, 249, 1) 0%, rgba(73, 209, 255, 1) 48%, rgba(220, 253, 161, 1) 100%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}


.investors-counter {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #004E9F;
  z-index: 3;
}

.investors-counter .investors-icon {
  width: 16px;
  height: 16px;
}

.investors-counter .investors-count {
  font-family: 'Circe', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.71em;
  color: #004E9F;
}



.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Circe', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.71em;
  color: #ffffff;
  z-index: 2;
}

.progress-bar-fill .progress-percentage {
  color: #FFFFFF;
}

.detail-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-decoration: none;
}

@media (max-width: 768px) {
  .startup-card {
    width: 100%;
    max-width: 297px;
  }
  
  .startup-card-content {
    padding: 8px;
  }
  
  .startup-progress-container {
    width: 95%;
  }
}

/* удалены стили кнопки «Фильтры» и скрытия сайдбара */
