.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font:
    600 15px Inter,
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn.o {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn.o:hover {
  background: var(--soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .im {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--sky), var(--sand));
  display: grid;
  place-items: center;
  color: var(--navy);
  font:
    700 40px Montserrat,
    Inter,
    sans-serif;
}

.card .bd {
  padding: 18px 20px 22px;
}

.card time {
  font-size: 13px;
  color: var(--mute);
}

.card h3 {
  font-size: 18px;
  margin: 4px 0 6px;
}

.card p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}

.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
}

.play:after {
  content: '';
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.pt {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}

.pt b {
  display: block;
  font:
    700 16px Montserrat,
    Inter,
    sans-serif;
}

.pt span {
  font-size: 13px;
  color: var(--mute);
}

.pt:hover {
  border-color: var(--sky-d);
}

.docs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.docs li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.docs li:hover {
  background: var(--soft);
}

.docs .n {
  flex: 1;
}

.docs small {
  color: var(--mute);
}

.ext {
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
}

.ppl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pp {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.av {
  overflow: hidden;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--navy);
  font:
    700 24px Montserrat,
    Inter,
    sans-serif;
}

.fm {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.fm label {
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.fm input,
.fm textarea,
.fm select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.ci {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.ci div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.ci small {
  display: block;
  color: var(--mute);
}

.pop {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  display: none;
  z-index: 50;
}

.card {
  position: relative;
}

.card.link {
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.card.link h3 a {
  color: inherit;
  text-decoration: none;
}

.card.link h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card.link:hover,
.card.link:focus-within {
  border-color: var(--sky-d);
  box-shadow: 0 10px 28px rgba(15, 42, 67, 0.12);
}

.card.link:hover h3 a {
  color: var(--sky-d);
}

.pr h2,
.pr h3,
.pr h4 {
  color: var(--ink);
  margin: 32px 0 12px;
}

.pr img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.pr table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.pr th,
.pr td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.pr th {
  background: var(--soft);
}

.pr iframe {
  max-width: 100%;
  border: 0;
  border-radius: 10px;
}

.pr .lead {
  font-size: 20px;
  color: var(--mute);
}

.btn.sand {
  background: var(--sand);
  color: var(--navy);
}

.btn.sand:hover {
  background: var(--sand);
  filter: brightness(0.95);
}

.muted {
  color: var(--mute);
}

.fill {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.plain {
  margin: 0;
}

.card.video {
  text-decoration: none;
  color: inherit;
}

.card.video .im {
  background: var(--navy);
}

.card.video .play {
  grid-area: 1 / 1;
}

.pp small {
  color: var(--mute);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  margin: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item div {
  margin-top: 12px;
  color: var(--mute);
}

.points {
  margin-top: 16px;
}

.form-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.after-form {
  margin-top: 30px;
}

.trap {
  position: absolute;
  left: -9999px;
}

.side-title {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font:
    700 15px Montserrat,
    Inter,
    sans-serif;
}

/* Записи категорий «без детальной страницы» (объекты на продажу): широкие карточки в один столбец.
   Шаблоны «list/news» (listing) и «item/listing-card». */
.listing-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.grid > .listing-card {
  grid-column: 1 / -1;
}

.listing-card {
  flex-direction: row;
  align-items: stretch;
}

.listing-card .im {
  flex: 0 0 200px;
  aspect-ratio: auto;
  min-height: 140px;
}

.listing-card .lc-main {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
}

.lc-kind {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--sky-d);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Торги прошли: карточка приглушена, рядом с типом — пометка «Не актуально» */
.lc-past {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--line);
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lc-kind + .lc-past {
  margin-left: 6px;
}

.listing-card.is-past {
  background: var(--soft);
  box-shadow: none;
}

.listing-card.is-past .im,
.listing-card.is-past h3,
.listing-card.is-past .lc-main p,
.listing-card.is-past .lc-kind,
.listing-card.is-past .lc-facts dd,
.listing-card.is-past .lc-time {
  opacity: 0.55;
}

.listing-card.is-past .im {
  filter: grayscale(1);
}

.listing-card.is-past .lc-facts dd {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.listing-card h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.listing-card h3 a {
  color: inherit;
}

.listing-card .lc-terms {
  color: var(--ink);
}

.lc-facts {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
  border-left: 1px solid var(--line);
}

.lc-facts > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 230px;
  min-width: 0;
  padding: 18px 22px;
}

.lc-facts > div + div {
  border-left: 1px solid var(--line);
}

.lc-facts dt {
  margin-bottom: 4px;
  color: var(--mute);
  font-size: 12.5px;
}

.lc-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.lc-facts time {
  color: inherit;
  font-size: inherit;
}

.lc-time {
  display: block;
  margin-top: 2px;
  color: var(--sky-d);
}

.lc-price dd {
  font-size: 19px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .listing-card {
    flex-direction: column;
  }

  .listing-card .im {
    flex-basis: auto;
    aspect-ratio: 16/9;
  }

  .lc-facts {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lc-facts > div {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .lc-facts {
    flex-direction: column;
  }

  .lc-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
