
.solutions-page .page-hero {
  margin-bottom: 32px;
}

.solutions-page {
  padding-bottom: 98px;
}

.solutions-page__crumbs {
  font-size: 14px;
  padding: 34px 0 26px;
  gap: 8px;
}

.solutions-page__crumbs .breadcrumbs__link,
.solutions-page__crumbs .breadcrumbs__current,
.solutions-page__crumbs .breadcrumbs__separator {
  font-size: 14px;
}

.solutions-divider {
  height: 1px;
  border: 0;
  margin: 0 0 16px;
  background: var(--color-border-light);
}

.solutions-filters-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.solutions-filters-row__viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.solutions-filters-row__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(
    to right,
    rgba(242, 242, 242, 0),
    var(--color-bg)
  );
  pointer-events: none;
}

.solutions-filters-row__nav {
  flex-shrink: 0;
}

.solutions-filters-row__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 48px;
}

.solutions-filters-row__track::-webkit-scrollbar {
  display: none;
}

.solutions-filters-row__track .tab-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
}

.solutions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.solutions-search {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 684px;
  max-width: 684px;
}

.solutions-search .search {
  max-width: 528px;
  flex: 1;
  min-height: 48px;
}

.solutions-search .search__input::placeholder {
  letter-spacing: -0.54px;
}

.solutions-search__btn {
  max-width: 140px;
  width: 100%;
}

.solutions-filters {
  display: flex;
  gap: 16px;
}

.solutions-filters .dropdown {
  width: 224px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}

.solutions-grid[hidden] {
  display: none;
}

.solutions-grid .solution-card[hidden] {
  display: none;
}

.solution-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 24px;
  font-family: var(--font-family);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.solution-card__media {
  position: relative;
  margin: 8px 8px 0;
  border-radius: 16px;
  overflow: hidden;
}

.solution-card__img {
  display: block;
  width: 100%;
  height: 321px;
  object-fit: cover;
  background: var(--color-surface-muted);
  transition: transform 0.35s ease;
}

.solution-card:hover .solution-card__img {
  transform: scale(1.06);
}

.solution-card__share {
  position: absolute;
  top: 16px;
  right: 16px;
  /* Над растянутой ссылкой карточки, иначе щелчок уходил бы на статью. */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.solution-card__share:hover {
  background: var(--color-surface-blue);
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .solution-card,
  .solution-card__img,
  .solution-card__share {
    transition: none;
  }

  .solution-card:hover,
  .solution-card__share:hover {
    transform: none;
  }
}

.solution-card__share svg {
  width: 24px;
  height: 24px;
}

.solution-card__body {
  height: 100%;
  max-height: 212px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.solution-card__category {
  letter-spacing: -0.54px;
  margin-bottom: 15px;
  padding: 8px 16px;
}

.solution-card__title {
  letter-spacing: -0.54px;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-dark);
}

.solution-card__text {
  letter-spacing: -0.54px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-dark);
  margin-bottom: auto;
}

/*
 * Карточка решения кликается целиком — тем же приёмом, что карточка статьи
 * в блоге. Ссылка в карточке одна, «Смотреть проект», и вложить в неё
 * заголовок с анонсом нельзя: ссылка внутри ссылки недопустима. Поэтому
 * растягиваем на всю карточку невидимую область самой ссылки — щелчок в
 * любом месте открывает решение, в разметке по-прежнему одна ссылка, и Tab
 * ведёт в неё же.
 */
.solution-card {
  position: relative;
  cursor: pointer;
}

.solution-card__more::after {
  content: "";
  position: absolute;
  inset: 0;
}

.solutions-empty {
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin: 0 auto 48px;
  border-radius: 24px;
  padding: 64px 0;
  text-align: center;
}

.solutions-empty[hidden] {
  display: none;
}

.solutions-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--color-surface-blue);
}

.solutions-empty__icon svg {
  width: 24px;
  height: 24px;
}

.solutions-empty__title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
}

.solutions-empty__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-dark);
}

.solutions-pagination {
  margin-bottom: 64px;
}

.solutions-pagination[hidden] {
  display: none;
}

.cta--solutions .cta__title {
  max-width: 280px;
}

.cta--solutions .cta__photo-wrap {
  max-height: none;
}

.solutions-cta__social {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 21px;
  margin-top: -1px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.solutions-cta__social-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-invert);
}

.solutions-cta__social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.solutions-cta__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
}

.solutions-cta__social-link svg {
  width: 24px;
  height: 24px;
}

/*
 * Лента решений в конце страницы — без нижнего отступа.
 *
 * В макете под ней стоят пагинация и блок заявки, поэтому её 35 px не видно.
 * У нас заявка живёт в подвале, лента оказывается последней, и эти 35 px
 * складывались с отступом страницы: до подвала выходило 133 px вместо 98.
 */
.solutions-page .solutions-grid:last-child {
  margin-bottom: 0;
}

/*
 * Текст под списком решений — тот же свёрнутый блок, что в каталоге и блоге.
 * Стили скопированы, как и в blog.css: каждый вид грузит только свой файл.
 */
.catalog-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: 24px;
}

.catalog-info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-info__title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
}

.catalog-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  background: none;
  color: var(--color-text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.catalog-info__icon:hover,
.catalog-info__icon[aria-expanded="true"] {
  background: var(--color-border-light);
  color: var(--color-primary);
}

.catalog-info__icon-vbar {
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.catalog-info__icon[aria-expanded="true"] .catalog-info__icon-vbar {
  opacity: 0;
  transform: rotate(90deg);
}

.catalog-info__text {
  position: relative;
  max-height: 93px;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-dark);
  transition: max-height 0.3s ease;
}

.catalog-info__text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-surface));
  transition: opacity 0.2s ease;
}

.catalog-info__text.is-expanded {
  max-height: 600px;
}

.catalog-info__text.is-expanded::after {
  opacity: 0;
}

.catalog-info__text p {
  margin: 0 0 6px;
}

.catalog-info__text p:last-child {
  margin-bottom: 0;
}

.catalog-info__toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}
