/* The catalogue /novostroyki - look «В» (Vladimir 15.10: «Делаем В»; docs/reglament/07_Katalog.md) in Airbnb's manner
   (15.10: «Давай делать красиво как у Airbnb» - «Делай»): a short head, one search pill that stays at the top, rounded
   photos to leaf through, white price pills on a big map beside the list. Colours: ink for text, the corporate green
   for whatever is chosen or pressed - never a black fill (15.10: «черный цвет откудато взялся у нас»). */
.ct { --sb: 84px; --pale: #e9f4f0; --deep: #17604e; --edge: #dddddd; --hair: #ebebeb; padding-bottom: 8px; }
.ct button { font: inherit; color: inherit; }
.ct h1, .ct h3, .ct h4 { margin: 0; }
.ct-head { max-width: 1280px; margin: 0 auto; padding: 22px 24px 0; }
.nb .ct-title { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.ct-tick { margin-top: 6px !important; font-size: 15px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ct-tick .ct-tk { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; }

/* The search pill: four parts on a computer, one line on a phone; stays at the top («6») */
.ct-searchbar { position: sticky; top: 0; z-index: 50; background: #fff; padding: 12px 24px; border-bottom: 1px solid var(--hair); }
.ct-search { display: none; }
.ct-msearch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 8px 8px 18px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--edge); border-radius: 40px; box-shadow: 0 3px 12px rgba(0, 0, 0, .1); }
.ct-msearch__ico { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.6; }
.ct-msearch__text { flex: 1; min-width: 0; }
.ct-msearch__text b, .ct-msearch__text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-msearch__text b { font-size: 14px; font-weight: 600; }
.ct-msearch__text span { font-size: 12px; color: var(--muted); }
.ct-msearch__f { position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--edge); border-radius: 50%; }
.ct-msearch__f svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.ct-msearch__f i { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.ct-msearch__f i[hidden] { display: none; }

/* The filters: a window under its part on a computer, a sheet from below on a phone */
.ct-panel { position: fixed; left: 0; right: 0; bottom: 0; top: 7%; z-index: 3000; display: flex; flex-direction: column; background: #fff;
  border-radius: 16px 16px 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
.ct-panel[hidden] { display: none; }
.ct-panel__head { position: relative; padding: 18px; text-align: center; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--hair); }
.ct-panel__x { position: absolute; left: 12px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; cursor: pointer; }
.ct-panel__body { flex: 1; overflow: auto; padding: 0 24px; }
.ct-panel section { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.ct-panel section:last-child { border-bottom: 0; }
.ct-panel h4 { font-size: 18px; font-weight: 600; }
.ct-panel section > p { margin: 2px 0 14px !important; font-size: 14px; color: var(--muted); }
.ct-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-pills button { padding: 10px 16px; font-size: 14px; background: #fff; border: 1px solid var(--edge); border-radius: 30px; cursor: pointer; }
.ct-pills button small { display: inline !important; margin-left: 6px; font-size: 12px; color: var(--muted); }
.ct-pills button[aria-pressed="true"] { background: var(--pale); color: var(--deep); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ct-pills button[aria-pressed="true"] small { color: var(--accent); }
.ct-pills button:disabled { color: #c8c8c8; border-color: #eeeeee; cursor: default; }
.ct-pills button:disabled small { color: #c8c8c8; }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-pair label { display: block; padding: 8px 12px; border: 1px solid #b0b0b0; border-radius: 10px; }
.ct-pair label:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ct-pair small { display: block !important; font-size: 12px; color: var(--muted); }
.ct-pair select { width: 100%; padding: 2px 18px 2px 0; font: inherit; font-size: 15px; color: var(--ink); border: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: no-repeat right 0 center / 10px 6px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2377736d' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ct-pair option:disabled { color: #c8c8c8; }
.ct-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px 24px; border-top: 1px solid var(--hair); }
.ct-linkbtn { flex: none; padding: 6px 2px; white-space: nowrap; font-size: 14px; font-weight: 600; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.ct-linkbtn[hidden] { display: none; }
.ct-showbtn { flex: 0 1 auto; min-width: 0; padding: 14px 18px; white-space: nowrap; border: 0; border-radius: 10px; background: var(--accent); color: #fff !important; font-size: 15px; font-weight: 600; cursor: pointer; }

/* The bar over the list: the count, the filters set, the sorting */
.ct-main { padding: 0 24px; }
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.ct-count { margin: 0 !important; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ct-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-chips[hidden] { display: none; }
.ct-chips > span { display: contents; }
.ct-chip { padding: 7px 10px 7px 12px; font-size: 13px; color: var(--deep); background: var(--pale); border: 0; border-radius: 30px; cursor: pointer; }
.ct-chip::after { content: "×"; margin-left: 8px; font-size: 15px; line-height: 1; color: var(--accent); }
.ct-sort { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ct-sort select { font: inherit; font-weight: 600; color: var(--ink); border: 0; padding: 2px 16px 2px 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: no-repeat right 2px center / 9px 6px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2377736d' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ct-share { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--deep); font-size: 15px; font-weight: 500; text-decoration: none; }
.ct-share[hidden] { display: none; }
.ct-share .btn-icon { width: 18px; height: 18px; fill: var(--accent); }
/* Vladimir 17.10 («1. 2 3 4 5 все ок»): the prices' date under the count's line; under the list the facts, the note and a
   quiet «Сообщить мне о новых проектах» in the selection's manner; why it is free and the purchase reviews in the tail. */
.ct-checked { margin: 4px 0 0 !important; font-size: 12px; color: var(--muted); }
.ct-sum { margin: 36px 0 0 !important; max-width: 640px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.ct-sum ~ .ct-note { margin-top: 10px !important; }
.ct-notify { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--deep); font-size: 15px; font-weight: 500; text-decoration: none; }
.ct-notify .btn-icon { width: 18px; height: 18px; fill: var(--accent); }
.ct-tail .ct-serv { margin-top: 0; }   /* the section's own padding is the gap (18.10: 64 px more left a hole) */
.ct-serv .nb-serv__box { padding-bottom: 0; border-bottom: 0; }   /* no button here: its line made a double line */
.ct-rev { margin-top: 0; }
.ct-rev__source { margin: 8px 0 20px !important; font-size: 14px; color: var(--muted); }
.ct-rv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0; list-style: none; }
.ct-rv__card { padding: 20px; border: 1px solid var(--hair); border-radius: 16px; background: #fff; }
.ct-rv__who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: 14px; color: var(--muted); }
.ct-rv__who b { color: var(--ink); font-size: 15px; font-weight: 600; }
.ct-rv__letter { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pale); color: var(--deep); font-weight: 600; }
.ct-rv__short { margin: 0 !important; font-size: 15px; line-height: 1.55; color: var(--ink); }
.ct-rv__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--deep); font-size: 15px; font-weight: 500; text-decoration: none; }
.ct-rv__all svg { width: 18px; height: 18px; fill: var(--accent); }
@media (max-width: 1023px) {   /* a strip up to 1024 px: three columns at 768 were 171 px, a name did not fit (18.10) */
  .ct-rv { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px !important; padding: 0 16px 4px !important; scroll-padding-inline: 16px; scrollbar-width: none; }   /* the site resets a list's padding */
  .ct-rv__card { scroll-snap-align: start; }   /* the first card on the text's line (18.10) */
}
.ct-empty { margin-top: 18px; padding: 20px; background: var(--soft); border-radius: 16px; }
.ct-empty[hidden] { display: none; }
.ct-empty__text { font-size: 16px; font-weight: 600; }
.ct-empty__acts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px !important; }

/* The cards: rounded photos to leaf through, a white mark, the name, the town and the delivery, prices by bedrooms */
.ct-list[hidden], .ct-grid > li[hidden], .ct-map[hidden] { display: none; }
.nb .ct-h3 { margin: 22px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-list--only .ct-h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* one list - no heading to read */
.ct-grid { margin-top: 18px !important; display: grid; gap: 30px 24px; }
.ct-grid > li { min-width: 0; }
.ct .gc { display: block; color: inherit; text-decoration: none; }
.gc__pic { position: relative; aspect-ratio: 20 / 19; overflow: hidden; border-radius: 12px; background: var(--soft); }
.gc__strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gc__strip::-webkit-scrollbar { display: none; }
.gc__pic img { width: 100%; height: 100%; object-fit: cover; display: block; flex: none; scroll-snap-align: start; }
.ct-badge { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 30px; background: #fff; font-size: 13px; font-weight: 600;
  color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.ct-badge--demo { background: #fff4cf; }   /* example cards (data/catalog_demo.yaml): not links */
.ct-badge--status { left: auto; right: 12px; }
.gc__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gc__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.gc__dots i.on { background: #fff; }
.gc__leaf { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; opacity: 0; transition: opacity .15s; }
.gc__leaf::before { content: ""; position: absolute; left: 12px; top: 11px; width: 7px; height: 7px; border: solid #555555; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.gc__leaf--prev { left: 10px; } .gc__leaf--prev::before { left: 13px; transform: rotate(-135deg); }
.gc__leaf--next { right: 10px; }
.gc__leaf[hidden] { display: none; }
.nb .gc__name { margin: 12px 0 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.gc__meta { margin-top: 2px !important; font-size: 15px; color: var(--muted); }
.gc__rows { margin-top: 8px !important; }
.gc__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; font-size: 15px; }
.gc__rows li[hidden] { display: none; }
.gc__rows li > span { color: var(--muted); }
.gc__rows b { font-weight: 600; white-space: nowrap; }
.gc__rows small { display: inline !important; margin-left: 2px; font-weight: 400; color: var(--muted); }
/* the highlight (Vladimir 20.10, «выделение как в d2»): a thin green line round the whole card with air, no frame on the photo */
.ct .gc { border-radius: 6px; outline: 1.5px solid transparent; outline-offset: 10px; transition: outline-color .15s; }
.ct .gc--hot { outline-color: var(--accent); }
.ct-note { margin: 32px 0 0 !important; font-size: 12px; color: var(--muted); }

/* The map: a picture with white price pills; the chosen one green; a grey dot - does not fit («3») */
.ct-map { margin: 16px 0 0; }
.ct-map img { display: block; width: 100%; height: 100%; }
.ct-map__in { position: relative; }
.ct-map--desk { display: none; }
/* A pin: the dot on the house itself, the price pill above it with a tail (Vladimir 15.10: «Почему точки на карте
   исчезли?» - the dot stays, as before Airbnb's look); neighbours - one pill, every house keeps its dot. The button -
   a finger's room around the dot. */
.ct-pin { position: absolute; left: var(--x); top: var(--y); width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0; border: 0; background: none; cursor: pointer; }
.ct-pin i { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.ct-pin b { position: absolute; left: 18px; bottom: 32px; transform: translateX(-50%); padding: 5px 10px; border-radius: 30px; background: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: background .12s; }
.ct-pin b::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit;
  transform: rotate(45deg); box-shadow: 2px 2px 3px rgba(0, 0, 0, .12); }
.ct-pin--off { z-index: 0; }
.ct-pin--off b { display: none; }
.ct-pin--off i { left: 12px; top: 12px; width: 12px; height: 12px; border: 2px solid #b5b5b5; background: #fff; box-shadow: none; }
.ct-pin--merged b { display: none; }
.ct-pin--merged { pointer-events: none; z-index: 0; }
.ct-pin--group { z-index: 2; }   /* a group's pill over the dots of other houses (the re-check 17.11: «390 000 ●») */
.ct-pin--away b { display: none; }   /* its house is off the map (nb-catalog.js pills) */   /* a dot under a group's pill: the pill takes the press (Abrera Park and II almost
   in one place took it from each other, the layout check 17.11) */
.ct-pin--hot { z-index: 3; }
.ct-pin--hot i { left: 8px; top: 8px; width: 20px; height: 20px; }
.ct-pin--hot b { background: var(--accent); color: #fff; }
.ct-main--map .ct-list, .ct-main--map .ct-empty, .ct-main--map .ct-note, .ct-main--map .ct-sum, .ct-main--map .ct-checked,
.ct-main--map .ct-notify { display: none !important; }
/* A phone: «Карта» - the map takes the screen under the search pill (Airbnb; Vladimir 15.10: «Сделай как у амрбнб»);
   the picture covers it; a tapped pin - its cards in a strip over the map; «Список» always there. */
.ct-mapmode, .ct-mapmode body { overflow: hidden; }
.ct-mapmode .ct-searchbar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; }
.ct-main--map .ct-map--phone { display: block; position: fixed; left: 0; right: 0; top: var(--sbh, 76px); bottom: 0; z-index: 40;
  margin: 0 !important; overflow: hidden; background: #f3f1ec; }
.ct-main--map .ct-map--phone .ct-map__in { position: absolute; left: 50%; top: 50%; aspect-ratio: 780 / 1560; transform: translate(-50%, -50%);
  width: max(100%, calc((100vh - var(--sbh, 76px)) / 2)); width: max(100%, calc((100dvh - var(--sbh, 76px)) / 2)); }
.ct-pincard { position: absolute; left: 0; right: 0; bottom: calc(136px + env(safe-area-inset-bottom, 0px)); z-index: 4; }
.bar-wait .ct-pincard { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.ct-pincard[hidden] { display: none; }
.ct-pincard__list { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 32px); gap: 10px; padding: 0 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ct-pincard__list::-webkit-scrollbar { display: none; }
.ct-pincard__list--many { grid-auto-columns: 84%; }
.ct-pincard__item { position: relative; scroll-snap-align: center; }
.ct-pincard__in { display: flex; gap: 12px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.ct-pincard__in img { width: 110px; height: 104px; object-fit: cover; flex: none; }
.ct-pincard__in span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 8px 34px 8px 0; }
.ct-pincard__in b { font-weight: 600; font-size: 15px; }
.ct-pincard__in small { font-size: 13px; color: var(--muted); }
.ct-pincard__in em { font-style: normal; font-weight: 600; font-size: 14px; margin-top: 4px; }
.ct-pincard__x { position: absolute; right: 8px; top: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff;
  font-size: 18px; color: var(--muted); cursor: pointer; }
/* «Карта» / «Список» at the bottom of a phone: at the screen's bottom while the site's bar waits, above it when it
   comes (site.js: html.bar-wait); over the list once it is on the screen, over the map always */
.ct-float { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 850; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border: 0; border-radius: 30px; background: var(--wa-grad, var(--accent)); color: #fff !important; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(30, 133, 108, .35); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s, bottom .3s; cursor: pointer; }
.bar-wait .ct-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.ct-float svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.ct-float__list, .ct-main--map + .ct-float .ct-float__map { display: none; }
.ct-main--map + .ct-float .ct-float__list { display: block; }
.ct-float[hidden] { display: none; }
.ct-float--on, .ct-main--map + .ct-float { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ct-sheet .ct-float { opacity: 0; pointer-events: none; }   /* the filters' sheet is open */
.ct-tail .ct-ask { margin-top: 0; }

@media (min-width: 640px) {
  .ct-grid { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) {
  .gc:hover .gc__leaf { opacity: 1; }
}
/* A computer: the four parts of the pill; a part opens its window; the map beside the list, the whole window high */
.ct-map--desk { display: none; }
@media (min-width: 1024px) {
  .ct-head { padding-top: 28px; }
  .nb .ct-title { font-size: 26px; }
  .ct-searchbar { padding: 12px max(24px, calc((100vw - 1280px) / 2 + 24px)); }
  .ct-msearch { display: none; }
  .ct-search { position: relative; display: flex; align-items: center; max-width: 880px; padding: 6px; border: 1px solid var(--edge); border-radius: 40px;
    background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .08); }
  .ct-search.is-open { background: #f2f2f2; }
  .ct-part { flex: 1; min-width: 0; padding: 9px 22px; text-align: left; background: none; border: 0; border-radius: 32px; cursor: pointer; }
  .ct-part + .ct-part { box-shadow: -1px 0 0 var(--hair); }
  .ct-part:hover { background: #ebebeb; }
  .ct-part[aria-expanded="true"] { background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); }
  .ct-part b { display: block; font-size: 12px; font-weight: 600; }
  .ct-part span { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ct-part.is-set span { color: var(--ink); }
  .ct-go { flex: none; width: 48px; height: 48px; margin-left: 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
  .ct-go svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; }
  .ct-panel { position: absolute; top: calc(100% - 4px); right: auto; bottom: auto; left: var(--at, 24px); width: 420px; max-height: none;
    border-radius: 28px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
  .ct-panel__head { display: none; }
  .ct-panel__body { padding: 4px 28px; }
  .ct-panel[data-open] section { display: none; }
  .ct-panel[data-open="c"] [data-sec="c"], .ct-panel[data-open="p"] [data-sec="p"], .ct-panel[data-open="b"] [data-sec="b"],
  .ct-panel[data-open="y"] [data-sec="y"] { display: block; }
  .ct-panel__foot { padding: 12px 28px 20px; }
  .ct-main { display: grid; grid-template-columns: minmax(0, 1fr) 40vw; gap: 24px; align-items: start;
    padding: 0 0 0 max(24px, calc((100vw - 1280px) / 2 + 24px)); }
  .ct-map--desk { display: block; position: sticky; top: var(--sb); height: calc(100vh - var(--sb)); margin: 0; overflow: hidden; background: #f3f1ec; }
  /* the picture covers the column: as wide as the column or as high as the window, the rest cut off */
  .ct-map--desk .ct-map__in { position: absolute; left: 50%; top: 50%; width: max(100%, calc((100vh - var(--sb)) * 920 / 1380));
    aspect-ratio: 920 / 1380; transform: translate(-50%, -50%); }
  .ct-main--map .ct-list:not([hidden]), .ct-main--map .ct-note, .ct-main--map .ct-sum, .ct-main--map .ct-checked { display: block !important; }
  .ct-main--map .ct-notify { display: inline-flex !important; }
  .ct-main--map .ct-map--phone { display: none; }
  .ct-float { display: none !important; }
}
@media (min-width: 2560px) {   /* three columns only on a very wide screen: at 1600-1920 the badge ran under the heart, the prices wrapped (the review 20.10, 2) */
  .ct-main .ct-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) { .ct-rv { grid-auto-columns: 46%; } }   /* a tablet: two cards and a half */

/* Our own live map (stage 7, static/nb-map.js) over the picture: the picture hides, the pills ride the map as its
   markers (MapLibre moves them with transform, so their left/top are not used). */
.ct-map__live { position: absolute; inset: 0; z-index: 1; }
.ct-map--live .ct-map__in img { visibility: hidden; }
.ct-pin.ct-pin--live { left: 0; top: 0; margin: 0; }
.ct-pin--live.ct-pin--hot { z-index: 3; }
.ct-count [data-all] { margin-left: 8px; font-weight: 400; }
/* the catalogue's live map: its buttons and the phone's full-screen map keep a pinch from the page (Vladimir 18.10) */
.ct-map__live .maplibregl-control-container, .ct-main--map .ct-map--phone.ct-map--live { touch-action: none; }
.ct-main--map .ct-map--phone.ct-map--live .ct-pincard__list { touch-action: pan-x; }
/* The reviews (Vladimir 19.10: «Вариант В»): a sentence of each as a quote, the button at the card's foot, the whole in
   a window - the browser's popover (no script; Esc and a tap outside close it), a sheet from below on a phone, in the
   middle on a computer; the cards stay even. */
.ct-rv__card { display: flex; flex-direction: column; }
.ct .ct-rv__open { align-self: flex-start; margin-top: auto; padding: 14px 0 0; border: 0; background: none; color: var(--deep); font-size: 14px;
  font-weight: 500; cursor: pointer; }
.ct-rv__quote { margin: 0; font-size: 19px; font-weight: 300; line-height: 1.45; color: var(--ink); }
.ct-rvd { position: fixed; inset: auto 0 0 0; box-sizing: border-box; width: 100%; max-width: none; height: auto; max-height: 92vh; margin: 0;
  padding: 0; overflow: hidden; border: 0; border-radius: 20px 20px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.ct-rvd:popover-open { display: flex; flex-direction: column; }
.ct-rvd::backdrop { background: rgba(20, 20, 20, .45); }
.ct .ct-rvd__x { position: absolute; right: 10px; top: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px;
  line-height: 1; color: var(--muted); cursor: pointer; }
.ct-rvd > .ct-rv__who { flex: none; margin: 0 !important; padding: 24px 60px 0 24px; }
.ct-rvd__text { flex: 1 1 auto; min-height: 0; padding: 16px 24px 20px; overflow-y: auto; overscroll-behavior: contain; font-size: 16px; line-height: 1.6; }
/* the foot, as the site's review window: the channel, «Закрыть» - the whole width on a phone (Vladimir 19.10) */
.ct-rvd__foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 12px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); }
.ct-rvd__foot .ct-rv__all { margin: 0; }
/* the site's outlined button, in the corporate green (15.10: «черный цвет откудато взялся у нас, хотя корпоративный зеленый») */
.ct .ct-rvd__close { flex: 1 0 100%; height: 50px; padding: 0 26px; border: 1.5px solid var(--accent); border-radius: 41px; background: #fff;
  color: var(--deep); font-size: 15px; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .ct .ct-rvd__close:hover { background-color: var(--pale); } .ct .ct-rvd__x:hover { background-color: #f0f0f0; } }
@media (min-width: 768px) {
  .ct-rvd { inset: 0; width: min(640px, calc(100% - 48px)); max-height: 80vh; margin: auto; border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
  .ct-rvd > .ct-rv__who { padding: 32px 64px 0 36px; }
  .ct-rvd__text { padding: 18px 36px 24px; }
  .ct-rvd__foot { padding: 14px 24px 18px 36px; }
  .ct .ct-rvd__close { flex: none; height: 44px; margin-left: auto; }
}

/* The catalogue's type - the project page's first look (Vladimir 19.10: «вариант каталога аирбнб с шрифтами с основного
   каталога. Это будет v3 каталога» → «берем … v3 с баннером у каталога»): under .ct--v3, after the rules above - the name
   thin and large, labels and counts in small capitals with air, names and prices light, no bold anywhere. */
/* The head */
.nb.ct--v3 .ct-title { font-size: 32px; font-weight: 200; line-height: 1.1; letter-spacing: -.01em; }
.ct--v3 .ct-tick { margin-top: 10px !important; font-weight: 300; }

/* The search pill: its labels in small capitals, as the project page's «Сдача», «Квартиры» */
.ct--v3 .ct-msearch__text b { font-weight: 400; }   /* a phone's pill: what is searched, words - not a label */
.ct--v3 .ct-part b { font-size: 10.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.ct--v3 .ct-part span { margin-top: 2px; font-weight: 300; }

/* The filter windows */
.ct--v3 .ct-panel__head { font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.ct--v3 .ct-panel__x { font-size: 24px; letter-spacing: 0; }   /* the cross takes the head's type otherwise (.ct button: font inherit) */
.ct--v3 .ct-panel h4 { font-size: 20px; font-weight: 300; }
.ct--v3 .ct-linkbtn { font-weight: 500; }
.ct--v3 .ct-showbtn { font-weight: 500; }

/* The list's head: the count in small capitals, the sort light */
.ct--v3 .ct-count { font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.ct--v3 .ct-count [data-all] { letter-spacing: .04em; text-transform: none; font-size: 13px; }
.ct--v3 .ct-sort select { font-weight: 400; }
.nb.ct--v3 .ct-h3 { font-size: 11px; font-weight: 500; letter-spacing: .13em; }

/* The cards: the badge in small capitals, the name and prices light */
.ct--v3 .ct-badge { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nb.ct--v3 .gc__name { font-size: 18px; font-weight: 300; letter-spacing: 0; }
.ct--v3 .gc__rows { font-weight: 300; }
.ct--v3 .gc__rows b { font-weight: 400; }
.ct--v3 .ct-empty__text { font-weight: 300; font-size: 18px; }

/* The map: the price pills and the card of a pin */
.ct--v3 .ct-pin b { font-weight: 500; }
.ct--v3 .ct-pincard__in b { font-weight: 400; font-size: 16px; }
.ct--v3 .ct-pincard__in em { font-weight: 400; }
.ct--v3 .ct-float { font-weight: 500; }

/* The reviews */
.ct--v3 .ct-rv__who b { font-weight: 500; }
.ct--v3 .ct-rv__letter { font-weight: 400; }

@media (min-width: 1024px) {
  .nb.ct--v3 .ct-title { font-size: 44px; }
}

/* The first screen - «В без кнопки» (Vladimir 17.10: «Пока этот фаворит»; 19.10: «каталог v3 сделай с баннером как в В
   без кнопки» → «берем … v3 с баннером у каталога»; the other first screens - docs/variants/2026-10-19_varianty-vida.md):
   the big photo of Barcelona (the site's «Покупка» photo, Unsplash 6-FLEicFzg0, the Unsplash License), the words white at
   its bottom - the name, the tick with «Почему?», Yulia's line with the registry number; no button. */
.ct-head { position: relative; }
.ct-head .ct-tick { align-items: flex-start; }
.ct-head .ct-tick .ct-tk { margin-top: 3px; }
/* «Почему?» - a native disclosure: the words open a small window, a second press closes it */
.cth-why { display: inline; }
.cth-why summary { display: inline; list-style: none; cursor: pointer; color: var(--deep); text-decoration: underline;
  text-underline-offset: 3px; }
.cth-why summary::-webkit-details-marker { display: none; }
.cth-why__pop { position: absolute; z-index: 70; left: 24px; right: 24px; margin-top: 10px; padding: 16px 18px; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.5; color: #333; text-align: left; }
.cth-why__pop b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
/* Yulia's line: her face, her name with the registry number, the years */
.nb .cth-trust { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cth-trust img { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.cth-trust b { font-weight: 500; color: var(--ink); }
.cth-trust i { display: none; font-style: normal; }
/* the big photo, the words at its bottom, white */
.ct-head--c { max-width: none; padding: 0; }
.ct-head--c .cth-box { display: flex; align-items: flex-end; height: 70vh; height: calc(70svh - 20px); min-height: 440px; max-height: 620px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .6) 100%), url(/static/img/sale-photo-960.webp) center 40% / cover; }
.ct-head--c .cth-in { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px 32px; }
.nb .ct-head--c .ct-title { font-size: 36px; font-weight: 200; line-height: 1.08; color: #fff; }
.ct-head--c .ct-tick, .ct-head--c .cth-trust { color: rgba(255, 255, 255, .92); }
.ct-head--c .ct-tick { font-weight: 300; }
.ct-head--c .cth-trust b { color: #fff; }
.ct-head--c .ct-tk { stroke: #fff; }
.ct-head--c .cth-why summary { color: #fff; }
.ct-head--c .cth-trust img { box-shadow: 0 0 0 2px #fff; }
@media (min-width: 768px) {
  .cth-br { display: none; }
  .cth-trust i { display: inline; }
  .cth-why__pop { left: auto; right: auto; width: 420px; }
  .ct-head--c .cth-box { height: 70vh; height: 70svh; min-height: 460px; max-height: 640px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .6) 100%), url(/static/img/sale-photo.webp); }
}
@media (min-width: 1024px) {
  .nb .ct-head--c .ct-title { font-size: 64px; letter-spacing: -.015em; }
}

/* v4 - the catalogue's copy of 19.10 (the deep review: «А 1, 2, 3 Д2»), taken 20.10 («давай v4»; the copy -
   docs/variants/2026-10-20_katalog-v4.md): a computer - the first screen half the window, the first cards in sight (А1);
   a phone - a 4:3 photo, two cards a screen (А2), the first six cards and «Показать ещё» (А3, static/nb-catalog.js); the
   towns in their own spelling (Д2) are the data's. */
@media (min-width: 1024px) {
  .ct-head--c .cth-box { height: 50vh; height: calc(50svh - 20px); min-height: 360px; max-height: 460px; }
}
@media (max-width: 767px) {
  .gc__pic { aspect-ratio: 4 / 3; }
  .ct-grid { gap: 26px 24px; }
}
.ct-folded { display: none !important; }
.ct .ct-more { display: block; width: 100%; margin: 18px 0 0; padding: 13px 18px; border: 1.5px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent); font-size: 15px; font-weight: 500; cursor: pointer; }
.ct .ct-more[hidden] { display: none; }

/* 20.10, the catalogue's second review (Vladimir: «З1 З3 И1 И2 К1 … Л1 М1») */
.ct-pair--one { grid-template-columns: 1fr; }   /* З1: the budget - one field «До» */
/* Л1: the heart on a real card - grey glass, green once hearted; the status mark moves to the left under the review mark */
.gc__fav { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.gc__fav svg { width: 26px; height: 26px; fill: rgba(0, 0, 0, .38); stroke: #fff; stroke-width: 1.8; transition: transform .15s; }
.gc__fav[aria-pressed="true"] svg { fill: var(--accent); }
.gc__fav:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }
@media (hover: hover) { .gc__fav:hover svg { transform: scale(1.12); } }
.ct-badge--status { left: 12px; right: auto; }
.ct-badge + .ct-badge--status { top: 46px; }
.ct .ct-favbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 30px; background: #fff;
  color: var(--ink); font-size: 13px; cursor: pointer; }
.ct .ct-favbtn[hidden] { display: none; }
.ct-favbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
.ct-favbtn i { font-style: normal; color: var(--muted); }
.ct .ct-favbtn[aria-pressed="true"] { background: var(--pale); border-color: var(--accent); color: var(--deep); }
.ct-favbtn[aria-pressed="true"] svg { fill: var(--accent); }
/* М1: the phone's search bar slides away on the way down (static/nb-catalog.js) */
.ct-searchbar { transition: transform .22s; }
.ct-sb--hid { transform: translateY(-100%); }
/* К1: «Как проходит покупка новостройки» - four numbered steps, the law's note under them */
.ct-tail .ct-steps { margin-top: 0; }
.ct-steps__sub { margin: 8px 0 22px !important; max-width: 640px; font-size: 16px; color: var(--muted); }
.ct-steps__list { margin: 0 !important; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.ct-steps__item { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; align-content: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ct-steps__n { grid-row: 1 / span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--pale);
  color: var(--deep); font-size: 14px; font-weight: 500; }
.nb .ct-steps__name { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.nb .ct-steps__text { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.nb .ct-steps__note { margin: 14px 0 0; max-width: 640px; font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .ct-steps__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }
/* И2: the pill with the name near the map's edge slides inward by --dx (static/nb-catalog.js), its tail stays on the house */
.ct-pin b { transform: translateX(calc(-50% + var(--dx, 0px))); }
.ct-pin b::after { margin-left: calc(-5px - var(--dx, 0px)); }
/* 20.10, the usability research (Vladimir: «У1 У2 У3 У4 У7 У8 У9 У10 У11 У13 У14») */
/* У8: finger-sized targets without a change of look - room around the links, the chips, the sort, the pins, the map's buttons */
.ct-share, .ct-notify, .ct-rv__all { padding: 10px 0; margin-top: 4px; }
.ct .ct-linkbtn { padding: 10px 2px; }
.ct .ct-rv__open { padding-top: 16px; padding-bottom: 8px; }
.ct-chip { min-height: 40px; }
.ct-sort select { padding-top: 10px; padding-bottom: 10px; }
.cth-why summary { padding: 10px 0; margin: -10px 0; }
.ct-pin { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.ct-pin i { left: 14px; top: 14px; }
.ct-pin b { left: 22px; bottom: 36px; }
.ct-pin--off i { left: 16px; top: 16px; }
.ct-pin--hot i { left: 12px; top: 12px; }
.ct-map__live .maplibregl-ctrl-group button { width: 40px; height: 40px; }
/* У9: the arrows always there on a touch tablet (no hover to reveal them); the keyboard's focus on an arrow */
@media (hover: none) and (min-width: 640px) { .gc__leaf { opacity: .92; } }
.gc__leaf:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }
/* У10: the phone's filter sheet - tighter sections, a shade at the foot says there is more below */
@media (max-width: 1023px) {
  .ct-panel section { padding: 16px 0; }
  .ct-panel__foot { box-shadow: 0 -10px 18px rgba(0, 0, 0, .07); }
}
/* У11: the photo counter «2 / 6» in the corner instead of the dots */
.gc__n { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 20px; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; pointer-events: none; }
/* У14: the contrast - the grey on the empty block's beige, the count in a chosen pill, the card's mark */
.ct-empty, .ct-empty .ct-linkbtn { color: var(--ink); }
.ct-pills button[aria-pressed="true"] small { color: var(--deep); }
.ct--v3 .ct-badge { font-size: 11.5px; }
/* Vladimir 20.10: on a phone a review's window «открывается не с начала»: 92vh is taller than the screen under Safari's
   bars, so the sheet's head stood above the screen; the dynamic viewport's height instead, and a little lower */
.ct-rvd { max-height: 84vh; max-height: 88dvh; }
@media (min-width: 768px) { .ct-rvd { max-height: 80vh; } }
.ct-mapmode .ct-searchbar { transform: none; }   /* over the map the bar is always there (Vladimir 20.10, a screenshot) */
.ct-mapmode .ct-searchbar { transition: none; }   /* no slide over the map: it is there at once */
/* The phone map's cards, 20.10 (Vladimir: «К 1-6 делаем»): a taller photo and the name in one line (К6), «1 из 3» over
   the photo (К4), the heart beside the cross (К3); a vertical swipe stays with the cards, not the map (К5) */
.ct-pincard__list { touch-action: pan-x; }
.ct-pincard__in img { width: 120px; height: auto; min-height: 130px; align-self: stretch; }   /* the photo the whole card's height: three lines of text made the card taller than 130 (the layout review 20.10, Н2) */
.ct-pincard__in b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-pincard__in small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-pincard__item--fav .ct-pincard__in b { padding-right: 72px; }   /* the name stops before the heart (the review 20.10, 6) */
.ct-pincard__n { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 20px; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 11px; font-style: normal; font-weight: 500; letter-spacing: .04em; pointer-events: none; }
.ct-pincard__fav { right: 44px; top: 0; }   /* beside the 40 px cross (right 2px), not over it: they overlapped 6 px (the review 20.10, 6) */
.ct-pincard__fav svg { width: 22px; height: 22px; fill: rgba(0, 0, 0, .18); stroke: var(--accent); stroke-width: 1.6; }
.ct-pincard__fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.ct-pincard__in b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }   /* up to three lines, not «La Bòbila, 2-я о…»: beside the heart «Plaça Europa II» and «Montcada Residencial, 3-я очередь» took three at 360-390 (the layout review 20.10, Н1) */
/* The phone's map without the site's bar of Yulia (Vladimir 20.10: «на карте каталога не будем показывать строку связи
   с Юлией»): «Список» and the pin's cards take its place */
.ct-mapmode .bar { display: none !important; }
.ct-mapmode .ct-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.ct-mapmode .ct-pincard { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* В2 + В3 (Vladimir 20.10): the heart with the count beside the search - in the phone's pill left of the filters' button,
   right of the magnifier on a computer; the favourites' sheet - the review window's look with short rows */
/* 4 px more for the words: «Новостройки · все города» ran 1 px past its box at 390 (the review 20.10, 1) */
.ct-msearch { padding: 8px 8px 8px 18px; gap: 6px; cursor: default; }
.ct .ct-msearch__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.ct .ct-msearch__f, .ct .ct-msearch__fav { position: relative; flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--edge);
  border-radius: 50%; background: #fff; cursor: pointer; }
.ct .ct-msearch__fav { border-color: transparent; }
.ct-msearch__fav svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.ct-msearch__fav.is-on svg { fill: var(--accent); }
.ct-msearch__fav i { position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.ct-msearch__fav i[hidden] { display: none; }
.ct .ct-fav { display: none; }
@media (min-width: 1024px) {
  .ct .ct-fav { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-left: 6px; padding: 0; border: 1px solid var(--edge);
    border-radius: 50%; background: #fff; cursor: pointer; }
  .ct-fav svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
  .ct-fav.is-on svg { fill: var(--accent); }
  .ct-fav i { position: absolute; right: -3px; top: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff;
    font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
  .ct-fav i[hidden] { display: none; }
  .ct-fav:hover { background: var(--pale); }
}
.nb .ct-favs__head { flex: none; margin: 0; padding: 24px 60px 0 24px; font-size: 20px; font-weight: 300; }
.ct-favs__list { padding: 8px 24px 16px; }
.ct-favs__row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.ct-favs__in { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; }
.ct-favs__in img { flex: none; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.ct-favs__in span { display: flex; flex-direction: column; min-width: 0; padding-right: 44px; }
.ct-favs__in b { font-size: 16px; font-weight: 400; }
.ct-favs__in small { font-size: 13px; color: var(--muted); }
.ct-favs__in em { font-style: normal; font-size: 14px; margin-top: 2px; }
.ct-favs__heart { position: absolute; right: -8px; top: 50%; margin-top: -20px; }
.ct-favs__heart svg { fill: var(--accent); stroke: var(--accent); }
.nb .ct-favs__empty { margin: 16px 0 8px; font-size: 15px; color: var(--muted); }
.ct-favs .ct-favs__send { margin: 0; }
.ct-favs .ct-favs__send[hidden] { display: none; }
@media (min-width: 768px) {
  .nb .ct-favs__head { padding: 32px 64px 0 36px; }
  .ct-favs__list { padding: 10px 36px 20px; }
}
@media (max-width: 389px) { .ct-msearch__ico { display: none; } .ct-msearch { padding-left: 14px; } }   /* 360 px: room for the heart */
@media (min-width: 768px) { .ct-favs { height: fit-content; } }   /* the window as tall as its rows, not 80vh of air */
/* «Карта» / «Список» white with the green mark and words (Vladimir 20.10: two green buttons at the bottom of a phone -
   «1. «Карта» белой»): only WhatsApp in the site's bar stays green */
.ct .ct-float { background: #fff; color: var(--deep) !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); border: 1px solid var(--hair); }
.ct-float svg { stroke: var(--accent); }
/* 20.10, the independent layout review (nb-reviewer, Vladimir: «независимого проверяющего … на проверку верстки») */
/* 1: «Список» over the phone's map - the favourites' sheet stands between .ct-main and the button now, the sibling rule missed it */
.ct-mapmode .ct-float { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.ct-mapmode .ct-float .ct-float__map { display: none; }
.ct-mapmode .ct-float .ct-float__list { display: block; }
/* the filters' sheet open over the phone's map: «Список» covered «Сбросить все» and «Показать N проектов» (Vladimir
   25.10: «Когда на карте открыть фильтры, то кнопка список перекрывает кнопки») - the map's rules above beat .ct-sheet's */
.ct-mapmode .ct-sheet .ct-float, .ct-sheet .ct-main--map + .ct-float { opacity: 0; pointer-events: none; }
/* 2: the filters' sheet - «Показать N проектов» stood under the site's bar (the sticky search bar is its own stacking context) */
.ct-sheetopen .bar { display: none !important; }
/* 6: the empty result's link to Yulia wraps instead of leaving the box; the words wrap beside the icon, not under it
   (the longer labels of 26.10 put the icon on a line of its own at 360 - the independent check) */
.ct-share { max-width: 100%; flex-wrap: nowrap; align-items: flex-start; }
.ct-share .btn-icon { flex: none; margin-top: 2px; }
.ct-share span { white-space: normal; }
/* 7: the price rows in a 1024-1279 column do not break in two */
@media (min-width: 1024px) and (max-width: 1279px) { .ct .gc__rows { font-size: 13.5px; } .ct .gc__rows small { font-size: 11px; } }
/* 9: the targets to 40 px */
.ct .ct-msearch__f, .ct .ct-msearch__fav { width: 40px; height: 40px; }
.ct-share, .ct-notify, .ct-rv__all { padding: 11px 0; }
.ct .ct-linkbtn { padding: 11px 2px; }
.ct .ct-rv__open { padding: 18px 0 10px; }
.ct-sort select { padding-top: 12px; padding-bottom: 12px; }
.cth-why summary { padding: 11px 0; margin: -11px 0; }
.ct-pincard__x { width: 40px; height: 40px; right: 2px; top: 0; }
.gc__leaf { width: 40px; height: 40px; margin-top: -20px; }
.gc__leaf::before { left: 16px; top: 15px; }
.gc__leaf--prev::before { left: 17px; }
/* 13: the pin card's «town · delivery» may take three lines, so the delivery is seen (two cut «L'Hospitalet de /
   Llobregat · сдача март…» at 360-390 - the layout review 20.10, Н1) */
.ct-pincard__in small:first-of-type { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
/* The map the whole width on a computer (Vladimir 20.10: «на десктопе карта так же открывалась во всю ширину, как у аирбнб
   … крестик чтобы перейти в обычный вид»): the button on the map, v=map hides the list column, the map takes the window;
   a pin's card over the map as on the phone */
.ct-map__wide { display: none; }
@media (min-width: 1024px) {
  .ct .ct-map__wide { position: absolute; left: 14px; top: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border: 1px solid var(--hair); border-radius: 30px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14); cursor: pointer; }
  .ct-map__wide svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
  .ct-map__wide-close, .ct-main--map .ct-map__wide-open { display: none; }
  .ct-main--map .ct-map__wide-close { display: block; }
  .ct-main--map { grid-template-columns: 1fr; padding: 0; }
  .ct-main--map .ct-col { display: none; }
  .ct-main--map .ct-map--desk { width: 100%; }
  .ct-pincard--desk { position: absolute; left: 14px; right: auto; bottom: 14px !important; width: 400px; z-index: 5; }
  .ct-pincard--desk .ct-pincard__list { grid-auto-columns: 100%; padding: 0; }
  .ct-pincard--desk .ct-pincard__list--many { grid-auto-columns: 92%; }
}

/* The cards on a computer (Vladimir 20.10, «размер карточки как в d1»): a 3:2 photo - the card a third lower; the copies
   to compare - docs/variants/2026-10-20_kartochki-desktop.md */
@media (min-width: 1024px) { .gc__pic { aspect-ratio: 3 / 2; } }

/* The wide map on a computer, the Airbnb way (Vladimir 20.10): the map fixed under the search bar - its buttons in sight
   (sticky left them under the bar), the page behind does not scroll; on opening the map centres on the projects
   (fitAll); a pin opens the project's card over the pin (a MapLibre popup, static/nb-map.js map.card) */
@media (min-width: 1024px) {
  .ct-main--map .ct-map--desk { position: fixed; top: var(--sb); left: 0; right: 0; bottom: 0; width: auto; height: auto; }
  .ct-main--map { min-height: calc(100vh - var(--sb)); }
  .ct-wide, .ct-wide body { overflow: hidden; }
  .ct-main--map .maplibregl-ctrl-top-right { top: 14px; right: 14px; }
  .ct-main--map .ct-map__live .maplibregl-ctrl-group { border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
}
.ct-pop .maplibregl-popup-content { width: 280px; padding: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); font-family: inherit; }
.ct-pop .maplibregl-popup-tip { display: none; }
.ct-pop__in { display: block; color: var(--ink); text-decoration: none; }
.ct-pop__in img { display: block; width: 100%; height: 170px; object-fit: cover; }
.ct-pop__in span { display: flex; flex-direction: column; gap: 2px; padding: 12px 40px 14px 14px; }
.ct-pop__in b { font-size: 15px; font-weight: 500; }
.ct-pop__in small { font-size: 13px; color: var(--muted); }
.ct-pop__in em { margin-top: 4px; font-style: normal; font-size: 14px; }
.ct .ct-pop__x { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
/* its heart (Vladimir 20.10: «на карточках сделай возможность ставить лайки»): the list card's, in the photo's top left
   corner - away from the cross («может быть сердечко слева а не у крестика? случайно будут закрывать»); its centre on
   the cross's line */
.ct .ct-pop__fav { left: 4px; right: auto; top: 4px; }
/* the wide map: the search bar fixed at the top (sticky loses its place once html gets overflow hidden - as the phone's map mode) */
@media (min-width: 1024px) { .ct-wide .ct-searchbar { position: fixed; left: 0; right: 0; top: 0; z-index: 60; } }
/* four reviews (Vladimir 20.10: «3 по-моему мало»): two by two at 1024-1279, four in a row from 1280 */
@media (min-width: 1024px) and (max-width: 1279px) { .ct-rv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ct-rv { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the cross on the phone's map (Vladimir 20.10): top left under the search bar, a second way back to the list */
.ct-map__x { display: none; }
.ct-main--map .ct-map--phone .ct-map__x { display: grid; place-items: center; position: absolute; left: 14px; top: 14px; z-index: 5; width: 40px; height: 40px;
  padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); cursor: pointer; }
.ct-map__x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
@media (min-width: 1024px) { .ct-main--map .ct-map--phone .ct-map__x { display: none; } }
/* The project's name over the price on the map (Vladimir 21.10: «делаем n1»; docs/variants/2026-10-21_karta-nazvaniya.md):
   the map's short name, small and grey, the price as it was; a group «N проекта» without names (nb-catalog.js pills) */
.ct-pin b { text-align: center; border-radius: 14px; }
.ct-pin b::before { content: attr(data-name); display: block; font-size: 11.5px; font-weight: 400; line-height: 1.25; color: var(--muted); }   /* not below 11.5 (the review 21.10) */
.ct-pin--group b::before { content: none; }
.ct-pin--hot b::before { color: #fff; }   /* 4.5:1 on the green (the review 21.10) */
.ct-pin b.ct-pin__notail::after { display: none; }   /* nb-catalog.js pills: a house at the map's very edge */
/* «Вопросы о нашей работе» (Vladimir 21.10: «вариант как сейчас + блок вопросов»): the project page's questions, the
   section's gap as the other tail blocks */
.ct-tail .ct-faq { margin-top: 0; }
.ct-faq .nb-faq { max-width: 720px; }   /* 65-75 characters a line (the review 21.10, В4) */
.nb .ct-faq__link { margin: -16px 0 10px; }   /* «О покупке под ключ» under its answer, where it stood with 9 px of padding */
/* 360: «сдача сентябрь 2028» is one glued word, 140 px, beside a 120 px photo the line had 130 and was cut (the review
   21.10) - a narrower photo */
@media (max-width: 389px) { .ct-pincard__in img { width: 104px; } }
/* the name stops before the 40 px cross (it stands 42 px from the right, the text's padding is 34): «Residencial La Clota»
   at 375 and the «-» of «3-я» at 430 went under it (the review 21.10) */
.ct-pincard__in b { padding-right: 10px; }
/* the search pill's button the whole pill's height and from its left edge: a tap on the pill's edge did nothing, the
   button was 33 px (Vladimir 21.10: «2. Поправь») */
.ct .ct-msearch__main { align-self: stretch; margin: -8px 0 -8px -18px; padding: 8px 0 8px 18px; border-radius: 40px 0 0 40px; }
@media (max-width: 389px) { .ct .ct-msearch__main { margin-left: -14px; padding-left: 14px; } }
/* From the GPT copy (Vladimir 26.10: «в основной каталог берем только пункт 1 и пункт 2»): a caption under a WhatsApp button - a draft opens, nothing is sent; the
   empty result's second line; «Избранное»'s button with its caption. */
.nb .gc__line { margin: 6px 0 0 !important; font-size: 14px; line-height: 1.4; color: var(--ink); }   /* quieter than the name and the prices */
.nb .ct-cap { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }   /* .nb small is 12 px */
.nb .ct-cap[hidden] { display: none; }
.ct-empty__sub { margin: 4px 0 0 !important; font-size: 15px; color: var(--ink); }
.ct-favs__act { display: flex; flex-direction: column; }
.ct-favs__act .ct-share { margin: 0; flex-wrap: nowrap; align-items: flex-start; }   /* a long label wraps beside the icon */
.ct-favs__act .ct-share .btn-icon { margin-top: 2px; }
/* 360: «Показать 7 проектов» was cut at the sheet's right edge (seen on the shot of 25.10, the filters over the map):
   narrower gaps, and the words take two lines rather than leave the button */
@media (max-width: 389px) {
  .ct-panel__foot { gap: 12px; padding-left: 20px; padding-right: 20px; }
  .ct-showbtn { padding: 12px 14px; white-space: normal; text-align: center; line-height: 1.25; }
  .ct-showbtn [data-show-n] { white-space: nowrap; }   /* «7 проектов» together on the second line */
}
/* The card's line (Vladimir 25.10, in the catalogue 26.10: «делать h1 в большинстве случаев. А если есть какое-то яркое место
   рядом, то делать h2»; docs/variants/2026-10-25_stroka-kartochki.md): h1 - a green outline icon and a short phrase
   (Airbnb's first highlight), h2 - one place and its minutes in green (Booking's line); quieter than the name and prices */
.nb .gc__line--h1, .nb .gc__line--h2 { display: flex; align-items: center; gap: 8px; }
.gc__line--h1 .nb-ico, .gc__line--h2 .nb-ico { flex: none; width: 16px; height: 16px; margin-top: 0; color: var(--accent); }
.gc__line--h1 span, .gc__line--h2 span { min-width: 0; }
/* the line quieter than the price: grey text, the minutes green at the same weight (the review 25.10) */
.nb .gc__line--h1, .nb .gc__line--h2 { color: var(--muted); }
.nb .gc__line--h2 b { flex: none; font-weight: 400; color: var(--deep); }
/* h2 too long for a narrow card (Plaça Europa II at 320-360 and 1024): the minutes go whole to a second line, under
   the words, the place is never split */
.nb .gc__line--h2 { flex-wrap: wrap; row-gap: 0; }
.nb .gc__line--h2 span { white-space: nowrap; }
/* the icon in the line's left padding: wrapped, the minutes stand under the words, not under the icon */
.nb .gc__line--h2 { position: relative; padding-left: 24px; column-gap: 8px; }
.nb .gc__line--h2 .nb-ico { position: absolute; left: 0; top: 2px; }

/* «Как мы работаем» (templates/nb_how.html, 27.10): the catalogue's blocks under a plain head - the name, who pays, one
   button to the projects; the trust block - Yulia's card, the facts and «О нас» */
.hw-head { padding-top: 40px; max-width: 720px; }
.hw-lead { margin-top: 16px !important; }
.hw-btn { margin-top: 28px; }
.hw-trust__row { display: grid; gap: 14px; max-width: 720px; margin-top: 22px; }
.hw-trust__text { margin: 0 !important; font-size: 15px; line-height: 1.6; color: var(--ink); }
.hw-trust__link { justify-self: start; }
@media (min-width: 1024px) { .hw-head { padding-top: 64px; } }
