/* =========================================================
   CATALOG PAGE — catalog.html
   Pixel-accurate to Figma 1920 frame
   ========================================================= */

.big_block_home--catalog {
  background: #FFFFFF;
}
.big_block_home--catalog .container {
  padding: 0 96px;
  position: relative;
}

/* Mega-menu logo: keep original colors (override buy.css brightness(0) filter) */
.big_block_home--catalog header .mega-menu .logo img {
  filter: none;
}

/* Mega-menu — place .menu_group_main into empty grid cell (row 2, cols 5-8) */
.big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .menu_group_main {
  grid-column: 5 / span 4;
  grid-row: 2;
  padding: 51px 62px 50px 60px;
  border-left: 1.6px solid #E1E1E1;
  border-right: 1.6px solid #E1E1E1;
  margin: 0;
}

/* Visible vertical side rails on catalog page */
body:has(.big_block_home--catalog) .wrapper {
  border-left: 1px solid #C4C4C4;
  border-right: 1px solid #C4C4C4;
  position: relative;
  /* Override style.css overflow:clip so .lux-select__menu dropdowns
     can extend vertically below their fields without being cut off */
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body:has(.big_block_home--catalog) .wrapper::before,
body:has(.big_block_home--catalog) .wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #C4C4C4;
  z-index: 0;
  pointer-events: none;
}
body:has(.big_block_home--catalog) .wrapper::before { left: 96px; }
body:has(.big_block_home--catalog) .wrapper::after { right: 96px; }

/* Photos cover vertical rails when they overlap */
body:has(.big_block_home--catalog) .cat_hero__photo,
body:has(.big_block_home--catalog) .cat_listings .buy_listing__photo,
body:has(.big_block_home--catalog) .cat_cta {
  position: relative;
  z-index: 10;
}
/* Hero фото перекрывает рейлы — z-index выше .cat_hero stacking */
body:has(.big_block_home--catalog) .cat_hero__photo {
  isolation: isolate;
  z-index: 10 !important;
}
/* Button keeps original teal bg but rides above rails */
body:has(.big_block_home--catalog) .buy_listings__more {
  position: relative;
  z-index: 2;
}
/* Footer covers rails — no rails should show in footer.
   Preserve original footer bg (#41545C) from style.css — don't override. */
body:has(.big_block_home--catalog) footer {
  position: relative;
  z-index: 3;
}

/* =========================================================
   1. HERO — text first (centered), photo below
   ========================================================= */
.cat_hero {
  padding: 64px 0 0;
  color: #010101;
  position: relative;
}
.cat_hero__body {
  text-align: center;
  max-width: 1538px;
  margin: 0 auto;
  padding: 0;
}
.cat_hero__breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0;
  color: #B9B9B9;
  text-transform: none;
  margin-bottom: 32px;
}
.cat_hero__breadcrumbs a { color: #B9B9B9; text-decoration: none; transition: color .25s; letter-spacing: 0; text-transform: none; }
.cat_hero__breadcrumbs a:hover { color: #010101; }
.cat_hero__breadcrumbs .is-active { color: #010101; text-transform: none; letter-spacing: 0; }
.cat_hero__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 70px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 auto 32px;
  max-width: 1482px;
}
.cat_hero__title em {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 70px;
  color: #010101;
}
.cat_hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 919px;
  height: 80px;
  padding: 0 48px;
  background: transparent;
  color: #010101;
  border: 1px solid #010101;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 56px;
  transition: background .25s, color .25s;
}
.cat_hero__cta:hover { background: #010101; color: #FFFFFF; }
.cat_hero__photo {
  width: 100%;
  aspect-ratio: 1728 / 580;
  overflow: hidden;
  border-top: 1px solid #E1E1E1;
  border-bottom: 1px solid #E1E1E1;
}
.cat_hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   2. FILTERS — rectangular bordered fields, triangle arrows
   ========================================================= */
.cat_filters {
  padding: 80px 0 64px;
  border-bottom: 1px solid #E1E1E1;
}
.cat_filters .container { max-width: 1920px; padding: 0 96px; }
.cat_filters .buy_search__form { width: 100%; }
.cat_filters .buy_search__row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr 1fr 1fr 1fr 0.9fr;
  align-items: center;
  gap: 14px;
  padding: 0 0 40px;
  border-bottom: 1px solid #E1E1E1;
  margin-bottom: 32px;
}
.cat_filters .buy_search__field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 0 12px;
  background: #FFFFFF;
  border: 1px solid #E1E1E1;
  border-radius: 0;
  position: relative;
  transition: border-color .25s;
  min-width: 0;
}
.cat_filters .buy_search__field:hover,
.cat_filters .buy_search__field:focus-within {
  border-color: #010101;
}
.cat_filters .buy_search__field > em {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 13px;
  color: #010101;
  flex-shrink: 0;
  order: 2;
}
.cat_filters .buy_search__field--price {
  padding: 0 10px;
  gap: 4px;
}
.cat_filters .buy_search__field--price select {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  order: 1;
}
.cat_filters .buy_search__field select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 16px 0 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 130%;
  color: #B9B9B9;
  background: transparent;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='%23010101'><path d='M0 0 L10 0 L5 6 Z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 9px 5px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.cat_filters .buy_search__field:focus-within select,
.cat_filters .buy_search__field select:not([data-empty]):valid { color: #010101; }
.cat_filters .buy_search__field select option { background: #FFFFFF; color: #010101; font-weight: 400; }

.cat_filters .buy_search__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 24px;
}
.cat_filters .buy_search__more {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #B9B9B9;
  cursor: pointer;
  transition: color .25s;
}
.cat_filters .buy_search__more:hover { color: #010101; }
.cat_filters .buy_search__more::after {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid #B9B9B9;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M12 4v16M4 12h16' stroke='%23B9B9B9' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  flex-shrink: 0;
}
.cat_filters .buy_search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 72px;
  padding: 0 24px;
  background: #41545C;
  color: #FFFFFF;
  border: 0;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s;
}
.cat_filters .buy_search__submit:hover { background: #010101; }

/* =========================================================
   3. SECTION TITLE — with horizontal separators top & bottom
   ========================================================= */
.cat_title {
  padding: 96px 0;
  background: #FFFFFF;
  text-align: center;
  border-top: 1px solid #E1E1E1;
  border-bottom: 1px solid #E1E1E1;
  margin-top: 80px;
}
.cat_title .container {
  max-width: 1920px;
  padding: 0 96px;
}
.cat_title h2 {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 75px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 1482px;
}

/* =========================================================
   4. LISTINGS — bigger Felidae title, REF spacing,
   pager overlaid on photo (bottom-right absolute)
   ========================================================= */
.cat_listings {
  padding: 0;
}
.cat_listings .container {
  max-width: 1920px;
  padding: 0 96px;
}
.cat_listings .buy_listing {
  margin-bottom: 0;
  padding: 80px 45px;
  border-bottom: 1px solid #E1E1E1;
}
.cat_listings .buy_listing:last-of-type { border-bottom: 0; }
.cat_listings .buy_listing--text-left { padding: 80px 45px; }
.cat_listings .buy_listing--text-right { padding: 80px 0; }

.cat_listings .buy_listing__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: none;
  margin-bottom: 0;
}
.cat_listings .buy_listing__head {
  gap: 18px;
  margin-bottom: 40px;
}
/* Type label (e.g. "Вилла", "Дуплекс") — Figma 360 only.
   Hidden at >=481 desktop/tablet — REF acts as the eyebrow there. */
.cat_listings .buy_listing__type { display: none; }
.cat_listings .buy_listing__ref {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 120%;
  letter-spacing: 0;
  color: #B9B9B9;
  text-transform: uppercase;
}
.cat_listings .buy_listing__desc {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25.6px;
  line-height: 130%;
  color: #3C3C3B;
  margin-bottom: 48px;
  max-width: 736px;
}
.cat_listings .buy_listing__specs li,
.cat_listings .buy_listing__specs li span,
.cat_listings .buy_listing__specs li b {
  font-size: 25px;
  line-height: 130%;
  color: #B9B9B9;
}
.cat_listings .buy_listing__specs li b { font-weight: 400; }
.cat_listings .buy_listing__specs { gap: 16px; }

.cat_listings .buy_listing__price {
  font-size: 44px;
}
.cat_listings .buy_listing__price em,
.cat_listings .buy_listing__price b {
  font-size: 44px;
}

.cat_listings .buy_listing__btn {
  font-size: 25px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 80px;
}

/* photo container becomes a position-anchor for pager */
.cat_listings .buy_listing__photo {
  position: relative;
}

/* =========================================================
   CATALOG — Swiper carousel styled like original cat_pager
   (override buy.css's larger arrows / 44px counter)
   ========================================================= */
.cat_listings .buy_listing__controls {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
}
.cat_listings .buy_listing__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  position: static;
}
.cat_listings .buy_listing__nav-btn {
  width: 22px;
  height: 28px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  position: static;
  top: auto;
  left: auto;
  right: auto;
  cursor: pointer;
  opacity: 0.95;
  transition: opacity .25s, transform .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat_listings .buy_listing__nav-btn::after,
.cat_listings .buy_listing__nav-btn.swiper-button-prev::after,
.cat_listings .buy_listing__nav-btn.swiper-button-next::after {
  content: '';
  display: block;
  width: 14px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='22' viewBox='0 0 14 22' fill='none'><path d='M11 2L3 11L11 20' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
  transform: none;
  font-size: 0;
  color: transparent;
}
.cat_listings .buy_listing__nav-btn--next::after,
.cat_listings .buy_listing__nav-btn.swiper-button-next::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='22' viewBox='0 0 14 22' fill='none'><path d='M3 2L11 11L3 20' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.cat_listings .buy_listing__nav-btn--prev:hover { transform: translateX(-2px); }
.cat_listings .buy_listing__nav-btn--next:hover { transform: translateX(2px); }
.cat_listings .buy_listing__progress {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  margin: 0 24px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.cat_listings .buy_listing__progress-fill {
  background: #FFFFFF;
  height: 1px;
}
.cat_listings .buy_listing__counter {
  position: static;
  width: auto;
  flex-shrink: 0;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* pager OVERLAY — chevrons at LEFT, thin line, number at RIGHT */
.cat_pager {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  z-index: 2;
  pointer-events: none;
}
.cat_pager__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
  flex-shrink: 0;
}
.cat_pager__line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  margin: 0 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.cat_pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity .25s, transform .25s;
}
.cat_pager__arrow:hover { opacity: 1; transform: translateX(0); }
.cat_pager__arrow--prev:hover { transform: translateX(-2px); }
.cat_pager__arrow--next:hover { transform: translateX(2px); }
.cat_pager__arrow svg {
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
.cat_pager__num {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  pointer-events: auto;
}
.cat_pager__num i {
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 2px;
}

/* =========================================================
   5. NOT-FOUND CTA — full-bleed photo + centered white card
   ========================================================= */
.cat_cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
/* Real parallax driven by translateY on the inner <img> — same pattern as
   buy.html .buy_districts__big/wide. Container clips overflow, img is taller
   than container (height 120%) so JS can shift it ±10% without exposing
   edges. Image sits behind content via z-index 0. */
.cat_cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.cat_cta__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.1s linear;
}
.cat_cta .container {
  max-width: 1920px;
  padding: 0 96px;
  position: relative;
  z-index: 1;
}
.cat_cta__card {
  background: #FAFAFA;
  color: #010101;
  padding: 128px 100px 96px;
  max-width: 1349px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
}
.cat_cta__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 80px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.cat_cta__lead {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  margin-bottom: 88px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.cat_cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  height: 80px;
  padding: 0 32px;
  background: transparent;
  color: #010101;
  border: 1px solid #010101;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: none;
  text-decoration: none;
  margin-bottom: 36px;
  transition: background .25s, color .25s;
}
.cat_cta__btn:hover { background: #010101; color: #FFFFFF; }
.cat_cta__micro {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 130%;
  color: #3C3C3B;
}

/* "Смотреть больше проектов" btn — uppercase, neat thin outline INSIDE rails */
.cat_listings .buy_listings__more {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 96px;
  width: calc(100% - 256px);
  max-width: 1666px;
  border: 0;
  outline: 1px solid #D0D0D0;
  outline-offset: 32px;
  margin-top: 36px;
  margin-bottom: 116px;
  position: relative;
}
.cat_listings .buy_listings__more:hover {
  outline-color: #D0D0D0;
}

/* =========================================================
   ADAPTIVE — 1700 / 1440 / 1200 / 768 / 480
   ========================================================= */
/* @1700 — laptop screens: grid 760+869+54 = 1683 doesn't fit container
   (viewport 1669 → container content 1477). Switch to fluid columns
   so right-column button can't overflow past photo. */
@media (max-width: 1700px) and (min-width: 1201px) {
  .cat_listings .buy_listing,
  .cat_listings .buy_listing--text-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
  .cat_listings .buy_listing__btn {
    max-width: 100%;
    height: 64px;
    font-size: 16px;
    letter-spacing: 0.12em;
  }
  .cat_listings .buy_listing__photo {
    aspect-ratio: 1 / 1;
  }
  /* 8-col single-row filter clips "Все подтипы" / "Все типы" / "Все зоны"
     at 1201-1700 too — wrap to 4×2 grid. */
  .cat_filters .buy_search__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    row-gap: 14px;
  }
}
@media (max-width: 1440px) {
  .cat_hero__title { font-size: 50px; }
  .cat_hero__title em { font-size: 50px; }
  .cat_title h2 { font-size: 44px; }
  .cat_cta__title { font-size: 64px; }
  .cat_cta__lead { font-size: 30px; }
  .cat_cta__card { padding: 96px 80px 80px; max-width: 1180px; }
  .cat_listings .buy_listing__title { font-size: 32px; }
  /* 8-col grid is too tight at 1500 — "Все подтипы" gets clipped.
     Wrap to 4×2 grid so each cell has enough room. */
  .cat_filters .buy_search__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    row-gap: 14px;
  }
}

/* Pixel-perfect to Figma 1200_Catalog (1200x4712).
   Order: Hero -> Section Title -> Filters -> Listings -> CTA
   Hero title 50px Felidae uppercase, CTA title 50px, CTA sub 28px Felidae */
@media (max-width: 1200px) {
  .big_block_home.big_block_home--buy.big_block_home--catalog > .container,
  .cat_filters .container,
  .cat_title .container,
  .cat_listings .container,
  .cat_cta .container { padding: 0 60px; }

  body:has(.big_block_home--catalog) .wrapper::before { left: 60px; }
  body:has(.big_block_home--catalog) .wrapper::after { right: 60px; }

  /* HERO */
  .cat_hero { padding: 40px 0 0; }
  .cat_hero__breadcrumbs { font-size: 16px; gap: 6px; margin-bottom: 24px; }
  .cat_hero__title { font-size: 50px; line-height: 110%; letter-spacing: 0.02em; max-width: 926px; margin-bottom: 24px; }
  .cat_hero__title em { font-size: 50px; line-height: 110%; }
  .cat_hero__cta { font-size: 16px; height: 50px; line-height: 150%; padding: 0 24px; max-width: 575px; margin-bottom: 40px; letter-spacing: 0.05em; }
  /* Full-bleed hero image — extends past container padding to inner wrapper edges (Figma 1200×397) */
  .cat_hero__photo {
    margin-left: -60px;
    margin-right: -60px;
    width: calc(100% + 120px);
    aspect-ratio: 1200 / 397;
  }

  /* SECTION TITLE — comes BEFORE filters at 1200 */
  .cat_title { padding: 56px 0; margin-top: 0; }
  .cat_title h2 { font-size: 50px; line-height: 110%; max-width: 100%; letter-spacing: 0.02em; }

  /* FILTERS — single row with 8 fields */
  /* position:relative + high z-index ensures lux-select dropdown
     stacks ABOVE the next sibling .cat_listings (which has photos with z-index:2) */
  .cat_filters {
    padding: 40px 0 32px;
    border-bottom: 1px solid #E1E1E1;
    overflow: visible;
    position: relative;
    z-index: 50;
  }
  /* Per Figma 1:858 @1200: single row of 7 dropdowns
     (Город, От, До, Формат, Все типы, Все зоны, спальни). */
  .cat_filters .buy_search__row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    padding: 0 0 24px;
    margin-bottom: 24px;
    row-gap: 12px;
    overflow: visible;
  }
  .cat_filters .buy_search__field {
    height: 44px;
    padding: 0 6px;
    gap: 3px;
    overflow: visible;
  }
  .cat_filters .buy_search__field--price { padding: 0 6px; gap: 2px; }
  .cat_filters .buy_search__field select {
    font-size: 10px;
    padding-right: 8px;
    height: 28px;
    background-size: 6px 4px;
    text-overflow: ellipsis;
  }
  .cat_filters .buy_search__field > em { font-size: 11px; }

  /* "Ещё параметры" expandable panel — pixel-perfect to Figma 1200 */
  .cat_filters .buy_search__more-panel {
    margin: 0 0 24px;
  }
  .cat_filters .buy_search__more-content {
    padding: 24px 0 28px;
    border-bottom: 1px solid #E1E1E1;
  }
  .cat_filters .buy_search__more-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    padding-bottom: 18px;
  }
  .cat_filters .buy_search__more-input { padding: 0 4px 8px; max-width: 100%; }
  .cat_filters .buy_search__more-input input { font-size: 14px; }
  .cat_filters .buy_search__more-input em { font-size: 14px; }
  .cat_filters .buy_search__more-toprow { gap: 32px; padding-bottom: 4px; }
  .cat_filters .buy_search__more-grid {
    padding-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 24px;
  }
  .cat_filters .buy_chip { gap: 10px; }
  .cat_filters .buy_chip__dot { width: 14px; height: 14px; }
  .cat_filters .buy_chip__dot::after { width: 8px; height: 8px; }
  .cat_filters .buy_chip__label { font-size: 13px; line-height: 130%; }

  /* When panel is open, the "Ещё параметры" button shows close icon */
  .cat_filters .buy_search__more.is-open::after {
    transform: rotate(45deg);
  }
  .cat_filters .buy_search__more { font-size: 22px; gap: 12px; }
  .cat_filters .buy_search__more::after {
    width: 30px; height: 30px; background-size: 16px 16px;
  }
  .cat_filters .buy_search__submit {
    width: 220px; height: 50px; font-size: 16px; letter-spacing: 0.1em;
  }

  /* LISTINGS — keep horizontal at 1200 */
  .cat_listings { padding: 0; }
  .cat_listings .buy_listing,
  .cat_listings .buy_listing--text-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 48px 0;
    align-items: stretch;
    margin-bottom: 0;
  }
  .cat_listings .buy_listing__text {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .cat_listings .buy_listing__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
  }
  .cat_listings .buy_listing__title { font-size: 28px; line-height: 110%; }
  .cat_listings .buy_listing__ref { font-size: 20px; letter-spacing: 0; line-height: 120%; }
  .cat_listings .buy_listing__desc { font-size: 16px; line-height: 130%; margin-bottom: 24px; max-width: 100%; }
  /* push foot (price + button) to bottom of column to align with photo */
  .cat_listings .buy_listing__specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 auto;
    padding: 0;
    border: 0;
  }
  .cat_listings .buy_listing__specs li,
  .cat_listings .buy_listing__specs li span,
  .cat_listings .buy_listing__specs li b { font-size: 14px; line-height: 130%; color: #B9B9B9; }
  .cat_listings .buy_listing__foot { gap: 24px; margin-top: 36px; }
  .cat_listings .buy_listing__price { font-size: 28px; gap: 6px; }
  .cat_listings .buy_listing__price em,
  .cat_listings .buy_listing__price b { font-size: 28px; }
  .cat_listings .buy_listing__btn { font-size: 16px; height: 50px; letter-spacing: 0.05em; }

  /* Photos fill grid cell height */
  .cat_listings .buy_listing__photo {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 400px;
  }
  .cat_listings .buy_listing__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Pager overlay */
  .cat_pager { left: 18px; right: 18px; bottom: 16px; }
  .cat_pager__line { margin: 0 12px; }
  .cat_pager__nav { gap: 12px; }
  .cat_pager__num { font-size: 22px; }
  .cat_pager__num i { font-size: 22px; }
  .cat_pager__arrow { width: 18px; height: 24px; }
  .cat_pager__arrow svg { width: 12px; height: 18px; }

  /* "Смотреть больше проектов" button */
  .cat_listings .buy_listings__more {
    width: calc(100% - 120px);
    height: 60px;
    font-size: 14px;
    letter-spacing: 0.1em;
    outline-offset: 16px;
    margin: 24px auto 70px;
  }

  /* CTA section */
  .cat_cta { padding: 70px 0; }
  .cat_cta__card { padding: 64px 30px; max-width: 800px; }
  .cat_cta__title { font-size: 50px; line-height: 110%; letter-spacing: 0.02em; margin-bottom: 24px; }
  .cat_cta__lead { font-size: 28px; line-height: 110%; letter-spacing: 0.02em; margin-bottom: 40px; max-width: 100%; }
  .cat_cta__btn { font-size: 16px; height: 50px; line-height: 150%; max-width: 580px; padding: 0 24px; margin-bottom: 24px; letter-spacing: 0.05em; }
  .cat_cta__micro { font-size: 16px; }
}

/* Pixel-perfect to Figma 768_Catalog (768x3177).
   Order: Hero -> Section Title -> Filters -> Listings -> CTA
   Filters keep 7 fields in single row (compact), listings stay horizontal */
@media (max-width: 768px) {
  .big_block_home.big_block_home--buy.big_block_home--catalog > .container,
  .cat_filters .container,
  .cat_title .container,
  .cat_listings .container,
  .cat_cta .container { padding: 0 20px; }

  body:has(.big_block_home--catalog) .wrapper::before { left: 20px; }
  body:has(.big_block_home--catalog) .wrapper::after { right: 20px; }

  /* HERO — Figma 768 */
  .cat_hero { padding: 32px 0 0; }
  .cat_hero__breadcrumbs { font-size: 12px; gap: 6px; margin-bottom: 16px; }
  .cat_hero__title { font-size: 36px; line-height: 110%; letter-spacing: 0.02em; max-width: 679px; margin-bottom: 20px; }
  .cat_hero__title em { font-size: 36px; line-height: 110%; }
  .cat_hero__cta { font-size: 14px; height: 50px; line-height: 150%; padding: 0 16px; max-width: 434px; margin-bottom: 28px; letter-spacing: 0.05em; }
  .cat_hero__photo { aspect-ratio: 768 / 298; }

  /* SECTION TITLE — Figma 768: 36-40px Felidae */
  .cat_title { padding: 36px 0; margin-top: 0; }
  .cat_title h2 { font-size: 36px; line-height: 110%; max-width: 100%; letter-spacing: 0.02em; }

  /* FILTERS — single row with 8 fields (compact) */
  .cat_filters {
    padding: 28px 0 24px;
    border-bottom: 1px solid #E1E1E1;
    overflow: visible;
    position: relative;
    z-index: 50;
  }
  .cat_filters .buy_search__row {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr 0.9fr 0.95fr 0.95fr 0.95fr 0.85fr;
    gap: 3px;
    padding: 0 0 16px;
    margin-bottom: 16px;
    row-gap: 0;
    overflow: visible;
  }
  .cat_filters .buy_search__field {
    height: 38px;
    padding: 0 5px;
    gap: 2px;
    overflow: visible;
  }
  .cat_filters .buy_search__field--price { padding: 0 5px; gap: 1px; }
  .cat_filters .buy_search__field select {
    font-size: 8.5px;
    padding-right: 7px;
    height: 24px;
    background-size: 6px 4px;
    text-overflow: ellipsis;
  }
  .cat_filters .buy_search__field > em { font-size: 9px; }
  .cat_filters .buy_search__bottom {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
  .cat_filters .buy_search__more { font-size: 16px; gap: 8px; }
  .cat_filters .buy_search__more::after { width: 22px; height: 22px; background-size: 12px 12px; }
  .cat_filters .buy_search__submit {
    width: 160px; height: 40px; font-size: 12px; letter-spacing: 0.08em;
  }

  /* "Ещё параметры" panel at 768 */
  .cat_filters .buy_search__more-panel {
    margin: 0 0 16px;
  }
  .cat_filters .buy_search__more-content {
    padding: 16px 0 18px;
  }
  .cat_filters .buy_search__more-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding-bottom: 14px;
  }
  .cat_filters .buy_search__more-input { padding: 0 4px 6px; }
  .cat_filters .buy_search__more-input input { font-size: 12px; }
  .cat_filters .buy_search__more-input em { font-size: 12px; }
  .cat_filters .buy_search__more-toprow { gap: 16px; }
  .cat_filters .buy_search__more-grid {
    padding-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .cat_filters .buy_chip { gap: 8px; }
  .cat_filters .buy_chip__dot { width: 12px; height: 12px; }
  .cat_filters .buy_chip__dot::after { width: 6px; height: 6px; }
  .cat_filters .buy_chip__label { font-size: 11px; line-height: 130%; }

  /* LISTINGS — keep horizontal at 768 */
  .cat_listings { padding: 0; }
  .cat_listings .buy_listing,
  .cat_listings .buy_listing--text-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 28px 0;
    align-items: stretch;
    margin-bottom: 0;
  }
  .cat_listings .buy_listing--text-right .buy_listing__photo { order: 0; }
  .cat_listings .buy_listing__text {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .cat_listings .buy_listing__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
  }
  .cat_listings .buy_listing__title { font-size: 22px; line-height: 110%; letter-spacing: 0.02em; }
  .cat_listings .buy_listing__ref { font-size: 16px; letter-spacing: 0; line-height: 120%; }
  .cat_listings .buy_listing__desc { font-size: 14px; line-height: 130%; margin-bottom: 14px; max-width: 100%; }
  .cat_listings .buy_listing__specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 auto;
    padding: 0;
    border: 0;
  }
  .cat_listings .buy_listing__specs li,
  .cat_listings .buy_listing__specs li span,
  .cat_listings .buy_listing__specs li b { font-size: 12px; line-height: 130%; color: #B9B9B9; }
  .cat_listings .buy_listing__foot { gap: 14px; margin-top: 18px; }
  .cat_listings .buy_listing__price { font-size: 20px; gap: 4px; }
  .cat_listings .buy_listing__price em,
  .cat_listings .buy_listing__price b { font-size: 20px; }
  .cat_listings .buy_listing__btn { font-size: 13px; height: 30px; letter-spacing: 0.05em; padding: 0 10px; }

  /* Photos fill grid cell height */
  .cat_listings .buy_listing__photo {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 240px;
  }
  .cat_listings .buy_listing__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Pager overlay */
  .cat_pager { left: 10px; right: 10px; bottom: 10px; }
  .cat_pager__line { margin: 0 8px; }
  .cat_pager__nav { gap: 8px; }
  .cat_pager__num { font-size: 14px; }
  .cat_pager__num i { font-size: 14px; }
  .cat_pager__arrow { width: 12px; height: 16px; }
  .cat_pager__arrow svg { width: 8px; height: 12px; }

  /* "Смотреть больше проектов" button */
  .cat_listings .buy_listings__more {
    width: calc(100% - 40px);
    height: 30px;
    font-size: 13px;
    letter-spacing: 0.05em;
    outline-offset: 10px;
    margin: 16px auto 40px;
  }

  /* CTA section — Figma 768 */
  .cat_cta { padding: 50px 0; }
  .cat_cta__card { padding: 44px 24px 32px; max-width: 100%; }
  .cat_cta__title { font-size: 32px; line-height: 110%; letter-spacing: 0.02em; margin-bottom: 16px; }
  .cat_cta__lead { font-size: 16px; line-height: 130%; letter-spacing: 0.02em; margin-bottom: 28px; max-width: 100%; }
  .cat_cta__btn {
    font-size: 13px; height: 40px; line-height: 150%; max-width: 380px;
    padding: 0 16px; margin-bottom: 16px; letter-spacing: 0.05em;
  }
  .cat_cta__micro { font-size: 12px; }

  /* =========================================================
     MEGA MENU mobile layout fixes for catalog page at <=768px
     ========================================================= */
  /* Per Figma 1:1345 @768: burger + small "EN ▼" lang switcher visible together
     in the top-left. (Earlier we hid it; Figma 768 design shows it.) */
  .big_block_home--catalog header .about_block .top_header_group .menu_burger .lang-dropdown {
    display: inline-flex !important;
    margin-left: 12px;
  }
  .big_block_home--catalog header .about_block .top_header_group .menu_burger .lang-dropdown .lang-dropdown-btn {
    font-size: 12px;
  }
  /* Float the burger button ABOVE the mega menu so user can see/click X to close.
     Without this, mega-menu (z-index:9999) covers the burger and there's no close button. */
  .big_block_home--catalog header .about_block .top_header_group .menu_burger {
    position: relative;
    z-index: 10001;
  }
  .big_block_home--catalog header .about_block .top_header_group .menu_burger .burger {
    position: relative;
    z-index: 10001;
  }
  /* Hide regular menu_group_main (with overlapping desktop layout) — only mob_menu shows */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .menu_group_main:not(.mob_menu) {
    display: none !important;
  }
  /* Show mob_menu inside mega menu */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .menu_group_main.mob_menu {
    display: block !important;
    order: 1;
    padding: 24px 0;
    border-bottom: 1px solid #E1E1E1;
    max-width: 100%;
  }
  /* bottom_menu_group: stack as mobile column with scroll */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  /* The inner mega-menu .container inherits 0 96px padding from catalog.css base —
     at <=768 we need it narrower so the project cards have room to display. */
  .big_block_home--catalog header .about_block .mega-menu .container {
    padding: 0 20px;
  }
  /* mobile-stacked sections inside the mega menu — order, padding, no side borders */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .our_projects {
    order: 2;
    padding: 28px 0;
    max-width: 100%;
    border: 0;
  }
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .contacts_group {
    order: 3;
    padding: 28px 0;
    max-width: 100%;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #E1E1E1;
  }
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .top_projects {
    order: 4;
    padding: 28px 0;
    max-width: 100%;
    border: 0;
    border-top: 1px solid #E1E1E1;
  }
  /* Project cards at 768 — 2 columns */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .our_projects .projects_group .project {
    grid-column: span 6;
    gap: 10px;
    max-width: 100%;
  }
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .contacts_group .telephone .group_number {
    flex-direction: row;
    gap: 24px;
  }
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .contacts_group .networks_group {
    margin-bottom: 24px;
  }
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .contacts_group .networks_group .networks a svg {
    width: 40px;
    height: 40px;
  }
  /* Ensure mega menu sits above page content so filter doesn't show through */
  .big_block_home--catalog header .about_block .mega-menu {
    z-index: 9999;
  }
  /* When the mega menu is OPEN, fully hide the catalog page sections so the
     filter form, listings and CTA cannot bleed through (e.g. in long-page
     screenshots or any rendering glitch where the mega menu doesn't fully
     cover the page). */
  body:has(.big_block_home--catalog .mega-menu.active) .cat_title,
  body:has(.big_block_home--catalog .mega-menu.active) .cat_filters,
  body:has(.big_block_home--catalog .mega-menu.active) .cat_listings,
  body:has(.big_block_home--catalog .mega-menu.active) .cat_cta,
  body:has(.big_block_home--catalog .mega-menu.active) footer {
    visibility: hidden !important;
  }
}

/* Pixel-perfect to Figma 360_Catalog (360x4116).
   Order: Hero -> Section Title -> Filters (2-col) -> Listings (stacked) -> CTA */
@media (max-width: 480px) {
  .big_block_home.big_block_home--buy.big_block_home--catalog > .container,
  .cat_filters .container,
  .cat_title .container,
  .cat_listings .container,
  .cat_cta .container { padding: 0 16px; }

  /* Mega menu inner container — narrower padding to fit projects/contacts at 360 */
  .big_block_home--catalog header .about_block .mega-menu .container {
    padding: 0 16px;
  }
  /* Project cards: 1 column at 360 (more room for image + text) */
  .big_block_home--catalog header .about_block .mega-menu .bottom_menu_group .our_projects .projects_group .project {
    grid-column: span 12;
    gap: 12px;
  }

  body:has(.big_block_home--catalog) .wrapper::before { left: 16px; }
  body:has(.big_block_home--catalog) .wrapper::after { right: 16px; }

  /* HERO — Figma 360 */
  .cat_hero { padding: 24px 0 0; }
  .cat_hero__breadcrumbs { font-size: 14px; gap: 4px; margin-bottom: 14px; }
  .cat_hero__title { font-size: 26px; line-height: 110%; letter-spacing: 0.02em; max-width: 100%; margin-bottom: 16px; }
  .cat_hero__title em { font-size: 26px; line-height: 110%; }
  .cat_hero__cta {
    font-size: 14px; height: 50px; line-height: 140%;
    padding: 0 16px; max-width: 100%; margin-bottom: 24px;
    letter-spacing: 0.05em;
  }
  /* Figma 360 CTA RU: «Начните подбор недвижимости» — drop the trailing
     «по ключевым параметрам» so the line fits the 246-wide button text area. */
  .cat_hero__cta-extra { display: none; }
  .cat_hero__photo { aspect-ratio: 360 / 247; }

  /* SECTION TITLE — Figma 360 ~26px */
  .cat_title { padding: 28px 0; margin-top: 0; }
  .cat_title h2 { font-size: 26px; line-height: 115%; max-width: 100%; letter-spacing: 0.02em; }

  /* FILTERS — Figma 1:683 @360: 2×2 grid of 4 fields only.
     Row 1: От | До. Row 2: Город | Спальни.
     Формат / Все типы / Все зоны hidden — accessible via "Ещё параметры" panel. */
  .cat_filters {
    padding: 22px 0 18px;
    border-bottom: 1px solid #E1E1E1;
    overflow: visible;
    position: relative;
    z-index: 50;
  }
  .cat_filters .buy_search__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 0 14px;
    margin-bottom: 14px;
    row-gap: 8px;
    overflow: visible;
  }
  /* Hide non-Figma fields at 360 */
  .cat_filters .buy_search__field--type,
  .cat_filters .buy_search__field--types,
  .cat_filters .buy_search__field--zones {
    display: none !important;
  }
  /* Order to match Figma: От, До, Город, Спальни */
  .cat_filters .buy_search__field--price:nth-of-type(1) { order: 1; }
  .cat_filters .buy_search__field--price:nth-of-type(2) { order: 2; }
  .cat_filters .buy_search__field--city { order: 3; }
  .cat_filters .buy_search__field--bedrooms { order: 4; }
  .cat_filters .buy_search__field {
    height: 38px;
    padding: 0 10px;
    gap: 4px;
    overflow: visible;
  }
  .cat_filters .buy_search__field--price { padding: 0 10px; gap: 2px; }
  .cat_filters .buy_search__field select {
    font-size: 12px;
    padding-right: 10px;
    height: 26px;
    background-size: 7px 4px;
    text-overflow: ellipsis;
  }
  .cat_filters .buy_search__field > em { font-size: 12px; }
  .cat_filters .buy_search__bottom {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .cat_filters .buy_search__more { font-size: 14px; gap: 8px; align-self: flex-start; }
  .cat_filters .buy_search__more::after { width: 22px; height: 22px; background-size: 12px 12px; }
  .cat_filters .buy_search__submit {
    width: 100%; height: 44px; font-size: 13px; letter-spacing: 0.08em;
  }

  /* "Ещё параметры" panel at 360 — single column chip grid */
  .cat_filters .buy_search__more-panel { margin: 0 0 14px; }
  .cat_filters .buy_search__more-content { padding: 14px 0 16px; }
  .cat_filters .buy_search__more-top {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 14px;
  }
  .cat_filters .buy_search__more-input { padding: 0 4px 6px; }
  .cat_filters .buy_search__more-input input { font-size: 12px; }
  .cat_filters .buy_search__more-input em { font-size: 12px; }
  .cat_filters .buy_search__more-toprow { gap: 12px; flex-wrap: wrap; }
  .cat_filters .buy_search__more-grid {
    padding-top: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cat_filters .buy_chip { gap: 8px; }
  .cat_filters .buy_chip__dot { width: 12px; height: 12px; }
  .cat_filters .buy_chip__dot::after { width: 6px; height: 6px; }
  .cat_filters .buy_chip__label { font-size: 12px; line-height: 130%; }

  /* LISTINGS — stacked vertically at 360 */
  .cat_listings { padding: 0; }
  .cat_listings .buy_listing,
  .cat_listings .buy_listing--text-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
    align-items: stretch;
    margin-bottom: 0;
  }
  /* Photo on top for both layouts */
  .cat_listings .buy_listing--text-left .buy_listing__photo { order: 1; }
  .cat_listings .buy_listing--text-left .buy_listing__text { order: 2; }
  .cat_listings .buy_listing--text-right .buy_listing__photo { order: 1; }
  .cat_listings .buy_listing--text-right .buy_listing__text { order: 2; }
  .cat_listings .buy_listing__text {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .cat_listings .buy_listing__head {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    margin-bottom: 10px;
  }
  /* Figma 360: type label "Вилла"/"Дуплекс" replaces REF; description and details
     button are removed in mobile card layout. */
  .cat_listings .buy_listing__type {
    display: block;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 120%;
    color: #B9B9B9;
    text-transform: none;
    margin-bottom: 6px;
  }
  .cat_listings .buy_listing__title { font-size: 18px; line-height: 110%; letter-spacing: 0.02em; }
  .cat_listings .buy_listing__ref { display: none; }
  .cat_listings .buy_listing__desc { display: none; }
  .cat_listings .buy_listing__btn { display: none; }
  /* Specs at 360 — 2 columns to match Figma metadata (130 wide each, 3 rows) */
  .cat_listings .buy_listing__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
  }
  .cat_listings .buy_listing__specs li,
  .cat_listings .buy_listing__specs li span,
  .cat_listings .buy_listing__specs li b { font-size: 12px; line-height: 130%; color: #B9B9B9; }
  .cat_listings .buy_listing__foot { gap: 12px; margin-top: 4px; }
  .cat_listings .buy_listing__price { font-size: 18px; gap: 4px; }
  .cat_listings .buy_listing__price em,
  .cat_listings .buy_listing__price b { font-size: 18px; }
  .cat_listings .buy_listing__btn { font-size: 12px; height: 40px; letter-spacing: 0.05em; padding: 0 12px; }

  /* Photo aspect at 360 — landscape */
  .cat_listings .buy_listing__photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .cat_listings .buy_listing__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Pager overlay */
  .cat_pager { left: 8px; right: 8px; bottom: 8px; }
  .cat_pager__line { margin: 0 6px; }
  .cat_pager__nav { gap: 6px; }
  .cat_pager__num { font-size: 12px; }
  .cat_pager__num i { font-size: 12px; }
  .cat_pager__arrow { width: 10px; height: 14px; }
  .cat_pager__arrow svg { width: 7px; height: 10px; }

  /* "Смотреть больше проектов" button — Figma 360: 330×50, font ~14 */
  .cat_listings .buy_listings__more {
    width: calc(100% - 32px);
    height: 50px;
    font-size: 14px;
    letter-spacing: 0.05em;
    outline-offset: 8px;
    margin: 14px auto 32px;
  }

  /* CTA section — Figma 360 */
  .cat_cta { padding: 36px 0; }
  .cat_cta__card { padding: 36px 18px 24px; max-width: 100%; }
  .cat_cta__title { font-size: 24px; line-height: 110%; letter-spacing: 0.02em; margin-bottom: 14px; }
  .cat_cta__lead { font-size: 14px; line-height: 130%; letter-spacing: 0.02em; margin-bottom: 22px; max-width: 100%; }
  .cat_cta__btn {
    font-size: 14px; height: 50px; line-height: 140%; max-width: 100%;
    padding: 0 16px; margin-bottom: 14px; letter-spacing: 0.05em;
  }
  .cat_cta__micro { font-size: 12px; }
}

/* =========================================================
   ANIMATION ENHANCEMENTS (catalog-animations.js)
   ========================================================= */

/* CTA parallax now driven by translate3d in main.js (data-parallax handler).
   The old `.cat_cta { background-attachment: fixed }` was visually stiff and
   broke on iOS Safari — replaced by .cat_cta__bg child layer. */

/* Empty-state shown when filters return no results */
.cat_listings__empty {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 130%;
  text-align: center;
  color: #3C3C3B;
  padding: 80px 24px;
  margin: 0;
}
@media (max-width: 1200px) {
  .cat_listings__empty { font-size: 16px; padding: 60px 24px; }
}
@media (max-width: 767px) {
  .cat_listings__empty { font-size: 14px; padding: 40px 16px; }
}
