@import url('../fonts/inter.css');

.sp-root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: #1a2233;
  background: #f0f2f7;
  line-height: 1.5;
  padding-top: 64px;
}

.sp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.sp-hero {
  position: relative;
  z-index: 10;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: url('../landing/images/002.png') center 40% / cover no-repeat;
  color: #fff;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,30,70,0.85) 0%, rgba(10,30,70,0.5) 60%, transparent 100%);
}

.sp-hero .sp-container {
  width: 100%;
}

.sp-hero__inner {
  position: relative;
  z-index: 1;
  width: 55%;
  max-width: 640px;
  padding: 52px 0;
}

.sp-hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.sp-hero__subtitle {
  font-size: 0.95rem;
  opacity: 0.88;
  margin-bottom: 24px;
}

.sp-hero__search {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  overflow: visible;
}
.sp-hero__search input[type="hidden"] { display: none; }

.sp-hero__input,
.sp-hero__region-btn {
  padding: 14px 18px;
  border: none;
  font-size: 1rem;
  color: #1a2233;
  outline: none;
  background: transparent;
  min-width: 0;
}
.sp-hero__input {
  border-radius: 6px 0 0 6px;
}

/* Custom region dropdown wrapper */
.sp-hero__region-wrap {
  position: relative;
  border-left: 1px solid #e4e8f1;
  display: flex;
  align-items: stretch;
}

.sp-hero__region-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  color: #555;
  transition: color .15s;
}
.sp-hero__region-btn--active { color: #1557d0; font-weight: 600; }
.sp-hero__region-btn svg { flex-shrink: 0; opacity: .55; transition: transform .2s; }
.sp-hero__region-drop--open ~ * .sp-hero__region-btn svg,
.sp-hero__region-wrap:has(.sp-hero__region-drop--open) .sp-hero__region-btn svg {
  transform: rotate(180deg);
}

.sp-hero__region-drop {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200;
  overflow: hidden;
}
.sp-hero__region-drop--open { display: flex; flex-direction: column; }

.sp-hero__region-search-wrap {
  padding: 10px 10px 6px;
  border-bottom: 1px solid #f0f2f7;
}
.sp-hero__region-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px 7px 28px;
  border: 1px solid #d0d8ea;
  border-radius: 6px;
  font-size: .85rem;
  outline: none;
  background: #f6f8fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 8px center;
}
.sp-hero__region-search-wrap input:focus { border-color: #1557d0; background-color: #fff; }

.sp-hero__region-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0 6px;
}
.hreg-group { }
.hreg-group__title {
  padding: 6px 14px 3px;
  font-size: .72rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hreg-item {
  padding: 7px 16px;
  font-size: .88rem;
  color: #1a2233;
  cursor: pointer;
  transition: background .1s;
}
.hreg-item:hover { background: #f0f4ff; color: #1557d0; }
.hreg-item--all { font-weight: 600; color: #555; border-bottom: 1px solid #f0f2f7; margin-bottom: 4px; }

.sp-hero__input::placeholder {
  color: #888;
}

.sp-hero__search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  background: #1557d0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.sp-hero__search-btn:hover {
  background: #0d44b0;
}

.sp-hero__search-btn-arrow {
  font-size: 0.75rem;
  opacity: 0.8;
}

.sp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  opacity: 0.92;
}

.sp-hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.sp-badge-icon--check { background: #e8650a; color: #fff; }
.sp-badge-icon--star  { background: #1557d0; color: #fff; }

.sp-breadcrumb-wrap {
  padding-top: 18px;
}

.sp-layout {
  display: flex;
  gap: 24px;
  padding: 24px 0 60px;
  align-items: flex-start;
}

.sp-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  position: sticky;
  top: 86px;
}

.sp-sidebar__title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.sp-sidebar__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2233;
}

.srch-filters__reset {
  font-size: .78rem;
  color: #e8740c;
  background: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  border: none;
}

.srch-filters__reset:hover {
  text-decoration: underline;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf0f6;
  color: #1a5276;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 8px 4px 10px;
  border-radius: 20px;
}

.active-filter button {
  background: none;
  color: #1a5276;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: .6;
  border: none;
}

.active-filter button:hover {
  opacity: 1;
}

.filter-block {
  border-top: 1px solid #eef2f7;
}

.filter-block:first-of-type {
  border-top: none;
}

.filter-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  background: none;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: #1a1a2e;
  border: none;
  text-align: left;
}

.filter-block__arrow {
  transition: transform .25s;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.filter-block--open .filter-block__arrow {
  transform: rotate(0);
}

.filter-block__body {
  display: none;
  padding: 0 0 14px;
  flex-direction: column;
  gap: 4px;
}

.filter-block--open .filter-block__body {
  display: flex;
}

/* Region search input */
.fcheck-region-search {
  padding: 6px 0 8px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.fcheck-region-search input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d0d8ea;
  border-radius: 6px;
  font-size: 0.83rem;
  outline: none;
  box-sizing: border-box;
  background: #f6f8fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 8px center;
  padding-left: 26px;
}
.fcheck-region-search input:focus {
  border-color: #1557d0;
  background-color: #fff;
}

.fcheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: #444;
  padding: 5px 0;
  cursor: pointer;
  user-select: none;
}

.fcheck input {
  accent-color: #1557d0;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.fcheck span {
  flex: 1;
}

.fcheck__stars {
  color: #ffd700;
  letter-spacing: 2px;
  font-size: .88rem;
}

.fcheck-group {
  margin-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 6px;
}

.fcheck-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 2px 0 4px;
}

.fcheck-group__head .fcheck--parent {
  flex: 1;
  padding: 3px 0;
}

.fcheck-group__caret-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: #1a5276;
  flex-shrink: 0;
  line-height: 1;
}

.fcheck-group__title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #1a5276;
}

.fcheck-group__caret {
  font-size: .78rem;
  transition: transform .2s ease;
}

.fcheck-group--collapsed .fcheck-group__caret {
  transform: rotate(-90deg);
}

.fcheck-group__body {
  display: block;
}

.fcheck-group--collapsed .fcheck-group__body {
  display: none;
}

.fcheck--parent {
  font-weight: 600;
  color: #2e3f5f;
}

.fcheck--sub {
  padding-left: 8px;
}

.fprice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fprice-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: #888;
}

.fprice-input label {
  font-size: .75rem;
  color: #888;
  width: 20px;
}

.fprice-input input {
  flex: 1;
  border: 1px solid #dde3ea;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: .82rem;
  color: #1a1a2e;
  min-width: 0;
}

.fprice-dash {
  color: #ccc;
  font-size: .9rem;
}

.fprice-slider {
  position: relative;
  height: 24px;
  margin-bottom: 12px;
}

.fprice-slider__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #dde3ea;
  border-radius: 4px;
  transform: translateY(-50%);
}

.fprice-slider__fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #1557d0;
  border-radius: 4px;
}

.fprice-slider__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;
}

.fprice-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1557d0;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  cursor: pointer;
  pointer-events: all;
}

.fprice-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fprice-preset {
  font-size: .72rem;
  padding: 4px 9px;
  border: 1px solid #dde3ea;
  border-radius: 20px;
  cursor: pointer;
  background: #fff;
  color: #555;
  white-space: nowrap;
  transition: all .15s;
}

.fprice-preset:hover,
.fprice-preset--active {
  background: #eaf0f6;
  border-color: #1557d0;
  color: #1557d0;
  font-weight: 600;
}

.filter-block--toggles .filter-block__body {
  gap: 10px;
}

.ftoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: #444;
  cursor: pointer;
  padding: 2px 0;
}

.ftoggle__sw {
  width: 38px;
  height: 20px;
  border-radius: 20px;
  background: #ccd4db;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
  cursor: pointer;
}

.ftoggle__sw::after {
  content:'';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.ftoggle__sw--on {
  background: #1557d0;
}

.ftoggle__sw--on::after {
  left: 21px;
}

.sp-btn-apply {
  width: 100%;
  padding: 12px;
  background: #1557d0;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 12px;
}

.sp-btn-apply:hover {
  background: #0d44b0;
}

.sp-content {
  flex: 1;
  min-width: 0;
}

.sp-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2233;
}

.sp-results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-sort-select {
  padding: 7px 28px 7px 12px;
  border: 1px solid #d0d6e8;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #1a2233;
  outline: none;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.sp-view-toggle {
  display: flex;
  border: 1px solid #d0d6e8;
  border-radius: 6px;
  overflow: hidden;
}

.sp-view-btn {
  padding: 7px 10px;
  background: #fff;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}

.sp-view-btn.active,
.sp-view-btn:hover {
  background: #f0f4ff;
  color: #1557d0;
}

.srch-filters-toggle {
  display: none;
}

.sp-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.sp-cards--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.sp-cards--grid .sp-card__body {
  width: 78%;
}

.sp-card {
  position: relative;
  background: #fff center right / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  min-height: 170px;
  display: flex;
  align-items: stretch;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sp-card[data-href] {
  cursor: pointer;
}

.sp-card[data-href]:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.sp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff 46%, rgba(255,255,255,0.75) 64%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Badge container — anchored top-right, badges flow left-to-right */
.sp-card__badges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: row;          /* fav badge left, TOP badge right */
  gap: 5px;
  align-items: center;
  pointer-events: none;
}
.sp-card__top-badge,
.sp-card__fav-badge {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sp-card__top-badge {
  background: #e8650a;
}
.sp-card__fav-badge {
  background: #e8740c;
}

.sp-card__body {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  width: 62%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2233;
  margin-bottom: 12px;
}

.sp-card__meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.sp-card__meta li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.35;
  min-height: 22px;
  font-variant-numeric: tabular-nums;
}

.sp-meta-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.sp-meta-text {
  display: block;
}

.sp-card__desc {
  font-size: .85rem;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.55;
}

.sp-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.sp-btn--primary {
  background: #1557d0;
  color: #fff;
  border-color: #1557d0;
}

.sp-btn--primary:hover {
  background: #0d44b0;
  border-color: #0d44b0;
}

.sp-btn--outline {
  background: transparent;
  color: #1557d0;
  border-color: #1557d0;
}

.sp-btn--outline:hover,
.sp-btn--active {
  background: #f0f4ff;
}

/* Fav button on search cards — sits next to sp-btn on white card bg */
.sp-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;      /* match height of adjacent button */
  padding: 0 12px;
  border-radius: 6px;
  border: 2px solid #d0d8ea;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.sp-fav-btn svg { transition: fill .15s, stroke .15s; }
.sp-fav-btn:hover { border-color: #e8740c; color: #e8740c; background: rgba(232,116,12,.06); }
.sp-fav-btn:hover svg { fill: none; stroke: #e8740c; }
.sp-fav-btn--active { border-color: #e8740c; background: rgba(232,116,12,.10); color: #e8740c; }
.sp-fav-btn--active svg { fill: #e8740c; stroke: #e8740c; }

/* Contacts button */
.sp-btn--contacts {
  font-size: 0.82rem;
  padding: 10px 14px;
}

/* Revealed contacts — display:contents set by JS so children flow into sp-card__actions flex row */
.sp-card__contacts-reveal { display: none; }
.sp-contacts-err { font-size: .82rem; color: #c0392b; align-self: center; }
.sp-btn--call {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  background: #1557d0; color: #fff; border: 2px solid #1557d0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s;
}
.sp-btn--call:hover { background: #0d44b0; border-color: #0d44b0; }
/* Pre-click "Позвонить" button matches chat button style */
.sp-btn--call-small {
  background: #1557d0; color: #fff; border-color: #1557d0;
}
.sp-btn--call-small:hover { background: #0d44b0; border-color: #0d44b0; }
.sp-btn--chat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  background: #1557d0; color: #fff; border: 2px solid #1557d0;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.sp-btn--chat:hover { background: #0d44b0; border-color: #0d44b0; }

/* .sp-card__fav-badge styles now merged into shared block above */

.srch-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pg-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1.5px solid #dde3ea;
  background: #fff;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.pg-btn:hover:not(:disabled) {
  border-color: #1557d0;
  color: #1557d0;
  background: #eaf0f6;
}

.pg-btn--active {
  background: #1557d0;
  border-color: #1557d0;
  color: #fff;
}

.pg-btn:disabled {
  opacity: .35;
  cursor: default;
}

.pg-dots {
  color: #aaa;
  letter-spacing: 2px;
  font-size: .9rem;
  padding: 0 4px;
}

.pg-info {
  font-size: .78rem;
  color: #888;
  margin-left: 8px;
}

.sp-bottom {
  background: #fff;
  padding: 48px 0;
}

.sp-bottom__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.sp-bottom__text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a2233;
}

.sp-bottom__text p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.7;
}

.sp-bottom__text p.sp-small {
  font-size: 0.82rem;
  color: #888;
}

.sp-cta-card {
  background: url('../landing/images/cta-bottom-bg.jpg') center / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.sp-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,30,70,0.62);
}

.sp-cta-card__inner {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  color: #fff;
}

.sp-cta-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}

.sp-cta-card__sub {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.sp-btn--orange {
  background: #e8650a;
  color: #fff;
  border-color: #e8650a;
  width: 100%;
  justify-content: center;
}

.sp-btn--orange:hover {
  background: #c9570a;
  border-color: #c9570a;
}

.sp-empty {
  padding: 2rem;
  color: #666;
  background: #fff;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.sp-card--skeleton {
  min-height: 170px;
  background: linear-gradient(90deg,#e8edf2 25%,#f3f5f7 50%,#e8edf2 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.4s infinite linear;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .sp-layout {
    gap: 18px;
  }

  .sp-sidebar {
    width: 250px;
  }
}

@media (max-width: 900px) {
  .sp-layout {
    flex-direction: column;
  }

  .sp-sidebar {
    width: 100%;
    position: static;
  }

  .sp-hero__inner {
    width: 100%;
  }

  .sp-bottom__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .srch-filters {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 300px;
    z-index: 200;
    transform: translateX(-110%);
    transition: transform .3s ease;
    border-radius: 0;
    overflow-y: auto;
  }

  .srch-filters--open {
    transform: translateX(0);
    box-shadow: 6px 0 40px rgba(0,0,0,.2);
  }

  .srch-filters-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .sp-hero__inner {
    padding: 40px 0;
  }

  .sp-hero__title {
    font-size: 1.5rem;
  }

  .sp-hero__search {
    grid-template-columns: 1fr;
  }

  .sp-hero__region-wrap {
    border-left: none;
    border-top: 1px solid #e4e8f1;
  }
  .sp-hero__region-drop {
    left: 0; right: 0; min-width: unset;
  }

  .sp-card__body {
    width: 80%;
  }

  .sp-card__actions {
    flex-wrap: wrap;
  }

  /* "Подробнее" takes remaining space next to fav button */
  .sp-card__actions .sp-btn--primary {
    width: calc(100% - 50px);
  }

  /* "Контакты" is full-width on its own line */
  .sp-card__actions .sp-btn--contacts {
    width: 100%;
  }

  /* Fav button: fixed square on mobile */
  .sp-card__actions .sp-fav-btn {
    align-self: stretch;
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  /* On mobile, call/chat buttons wrap to next line and share the row */
  .sp-card__actions .sp-btn--call,
  .sp-card__actions .sp-btn--chat {
    flex: 1;
    justify-content: center;
  }

  .sp-cards--grid {
    grid-template-columns: 1fr;
  }
}
