.prices-page-main {
  position: relative;
  background: #fafbfc;
}

.prices-shell {
  padding: 48px 40px 0;
}

.prices-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.prices-breadcrumbs a:hover,
.prices-breadcrumbs a:focus-visible {
  color: var(--smd-blue);
}

.prices-title {
  margin: 0 0 32px;
  color: var(--smd-text);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.prices-search {
  margin-bottom: 28px;
}

.prices-search__control {
  display: flex;
  align-items: center;
  width: calc(100% + 80px);
  margin-right: -40px;
  margin-left: -40px;
  padding: 0 40px 18px;
  gap: 20px;
  border-bottom: 2px solid var(--smd-blue);
}

.prices-search__control svg {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--smd-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prices-search__control input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--smd-text);
  font-size: 32px;
  font-weight: 600;
}

.prices-search__control input::placeholder {
  color: #94a3b8;
}

.prices-search__control input:focus::placeholder {
  color: transparent;
}

.prices-search__chips,
.prices-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prices-search__chips {
  padding-top: 20px;
}

.prices-filters {
  margin-top: 28px;
}

.prices-search__chip,
.prices-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #dce3ea;
  border-radius: 999px;
  background: #fff;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prices-filter {
  padding: 10px 20px;
}

.prices-search__chip:hover,
.prices-search__chip:focus-visible,
.prices-filter:hover,
.prices-filter:focus-visible {
  border-color: var(--smd-blue);
  outline: none;
  background: var(--smd-primary-soft);
  color: var(--smd-blue);
}

.prices-filter.active {
  border-color: var(--smd-text);
  background: var(--smd-text);
  color: #fff;
}

.prices-counter {
  margin: 28px 0 16px;
  color: var(--smd-muted);
  font-size: 15px;
  font-weight: 600;
}

.prices-counter strong {
  color: var(--smd-text);
  font-weight: 800;
}

.prices-table {
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  background: #fff;
}

.prices-group.is-hidden,
.prices-row.is-hidden {
  display: none;
}

.prices-group__title {
  margin: 0;
  padding: 16px 32px;
  border-top: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
  background: #f8fafb;
  color: var(--smd-text);
  font-size: 20px;
  font-weight: 700;
}

.prices-group:first-child .prices-group__title {
  border-top: 0;
}

.prices-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.prices-row:last-child {
  border-bottom: 0;
}

.prices-row:hover {
  background: #f8fafb;
}

.prices-row__name {
  flex: 1 1 auto;
  color: var(--smd-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.prices-row__right,
.prices-row__amounts {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.prices-row__right {
  gap: 20px;
}

.prices-row__amounts {
  gap: 8px;
  white-space: nowrap;
}

.prices-row__price {
  color: var(--smd-text);
  font-size: 16px;
  font-weight: 700;
}

.prices-row__price.is-free {
  color: #25d366;
}

.prices-row__old-price {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

.prices-row__button,
.prices-row__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prices-row__button:hover,
.prices-row__button:focus-visible {
  outline: none;
  background: var(--smd-brand-brown-hover);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--smd-brand-brown) 35%, transparent);
  color: #fff;
  transform: translateY(-1px);
}

.prices-empty {
  padding: 60px 32px;
  color: #94a3b8;
  font-size: 16px;
  text-align: center;
}

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

.services-cta.prices-cta {
  padding: 40px 0 48px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prices-cta .services-cta__block {
  padding: 48px 56px;
  border-radius: 28px;
}

.prices-shared-cards {
  padding-top: 40px;
  background: #fafbfc;
}

@media (max-width: 768px) {
  .prices-shell {
    padding: 32px 20px 0;
  }

  .prices-title {
    font-size: 32px;
  }

  .prices-search__control {
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
    gap: 12px;
  }

  .prices-search__control svg {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .prices-search__control input {
    padding: 8px 0;
    font-size: 20px;
  }

  .prices-search__chip,
  .prices-filter {
    padding: 9px 16px;
    font-size: 13px;
  }

  .prices-group__title {
    padding: 14px 20px;
    font-size: 17px;
  }

  .prices-row {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 10px;
  }

  .prices-row__right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .prices-cta .services-cta__block {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .prices-shared-cards {
    padding-top: 32px;
  }
}

@media (max-width: 480px) {
  .prices-title {
    font-size: 28px;
  }
}
