
.rs-page-head { padding: 8px 0 0; }
.rs-page-head h1 { margin-top: 4px; font-size: clamp(40px, 5vw, 64px); font-weight: 300; line-height: 1.04; }
.rs-page-head h1 em { font-style: normal; color: var(--accent); }
.rs-crumbs { padding-top: 28px; margin-bottom: 28px; }
.rs-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px 48px; align-items: end; }
.rs-kaima { height: 20px; max-width: 400px; margin-top: 24px; background: url("/images/v3/ru-m/kaima.svg") repeat-x left center; }
.rs-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.rs-page-meta b { color: var(--ink); font-weight: 600; }
/* W20 illb: the section illustration in the right column of the head (v3.russia.partials.head-art), above the search when there is one */
.rs-page-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rs-head-art { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; margin-left: auto; }
/* a head without a search beside the text: the picture centred on the text, not on its last line */
.rs-page-grid:has(> .rs-page-aside > .rs-head-art:only-child) { align-items: center; }
@media (max-width: 900px) {
  .rs-page-grid { grid-template-columns: 1fr; }
  .rs-head-art { display: none; }
}
@media (max-width: 760px) {
  .rs-crumbs { padding-top: 20px; margin-bottom: 20px; }
}
.rs-page-meta .rs-live { display: inline-flex; align-items: center; gap: 8px; }
.rs-page-meta .rs-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(10,124,112,.45); animation: rs-live 2.4s ease-out infinite; }
@keyframes rs-live { 0% { box-shadow: 0 0 0 0 rgba(10,124,112,.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(10,124,112,0); } }
.rs-search-compact { max-width: none; width: 100%; }
.rs-search-compact input { height: 52px; }
.rs-search-compact button { width: 42px; height: 42px; }
.rs-qchips { margin-top: 24px; gap: 8px; }
.rs-qchips .v3-chip { padding: 7px 14px; font-size: 13px; }
/* catalog quick chips are inert labels (as on the old page), so no button look and no hover */
.rs-qchips .v3-chip, .rs-qchips .v3-chip:hover { cursor: default; border-color: rgba(18,20,26,.12); color: var(--muted); background: transparent; }
/* search page: the wide field under the H1, the count, type tabs as chips (links, the current one dark) */
.rs-search-hero { max-width: 720px; margin-top: 28px; }
.rs-search-hero input { height: 60px; padding-left: 24px; font-size: 17px; }
.rs-search-hero button { width: 50px; height: 50px; }
.rs-search-count { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.rs-tabs { gap: 8px; margin-bottom: 20px; }
.rs-tabs .v3-chip { padding: 8px 15px; }
.rs-chip-hot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c2410c; }

/* list: facets column + rows */
.rs-list-sec { padding-top: 48px; }
.rs-list-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; }
.rs-list-grid--solo { grid-template-columns: minmax(0, 1fr); }
/* A10: the sticky column never grows past the screen, a long facet list scrolls inside it */
.rs-facets-wrap { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--r); }
.rs-facets { margin: 0; padding: 22px 20px 8px; border-radius: var(--r); background: var(--paper); }
.rs-facets-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rs-facets-head h3 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; }
.rs-facets-reset { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rs-facets-reset:hover { color: var(--accent-dark); }
.rs-facet { padding: 14px 0 16px; border-top: 1px solid rgba(18,20,26,.08); }
.rs-facet-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.rs-facet-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-fchip { position: relative; display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #c9ccd4; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.rs-fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rs-fchip:hover { border-color: var(--accent); color: var(--accent-dark); }
.rs-fchip:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs-fchip.is-active, .rs-fchip:has(input:checked) { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.rs-facet-opts--tail { margin-top: 6px; }
.rs-facet-more > summary { display: inline-flex; margin-top: 8px; color: var(--accent-dark); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.rs-facet-more > summary::-webkit-details-marker { display: none; }
.rs-facet-more > summary:hover { color: var(--ink); }
.rs-facet-more[open] > summary { order: 2; }
.rs-facet-more[open] { display: flex; flex-direction: column; align-items: flex-start; }
.rs-facet-more[open] > .rs-facet-opts { margin-top: 6px; }
.rs-facet-more-off, .rs-facet-more[open] .rs-facet-more-on { display: none; }
.rs-facet-more[open] .rs-facet-more-off { display: inline; }
.rs-facets-btn { display: none; }

.rs-list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 0 4px 14px; color: var(--muted); font-size: 14px; }
.rs-list-bar b { color: var(--ink); font-weight: 600; }
.rs-rows { display: flex; flex-direction: column; gap: 10px; }
.rs-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 170px 128px auto auto; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .2s; }
.rs-row:hover { color: var(--text); transform: translateY(-2px); border-color: transparent; box-shadow: 0 18px 36px -24px rgba(20,20,40,.4); }
.rs-row-idx { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.rs-row-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rs-row-title { font: 600 17px/1.35 var(--sans); letter-spacing: 0; color: var(--ink); transition: color .15s; }
.rs-row:hover .rs-row-title { color: var(--accent-dark); }
.rs-row-meta { color: var(--muted); font-size: 14px; }
.rs-row-meta i { font-style: normal; margin: 0 4px; }
.rs-row-pay { color: var(--ink); font-size: 15px; font-weight: 500; }
.rs-row-dl { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-row-dl.is-urgent { color: #b42318; font-weight: 600; }
.rs-pulse { width: 7px; height: 7px; border-radius: 50%; background: #d92d20; animation: rs-pulse 1.6s ease-in-out infinite; }
@keyframes rs-pulse { 50% { opacity: .35; } }
.rs-row-go { color: var(--accent-dark); font-size: 14px; white-space: nowrap; }
/* heart (one favourites list) and share on every row */
.rs-row-acts { display: inline-flex; gap: 2px; }
.rs-row-act { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.rs-row-act svg { width: 19px; height: 19px; }
.rs-row-act:hover, .rs-row-act:focus-visible { background: var(--accent-soft); color: var(--accent-dark); transform: scale(1.08); }
.rs-row-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs-row-act.is-saved { color: #c8262f; }
.rs-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.rs-list-empty { padding: 48px 32px; border-radius: var(--r); background: var(--paper); text-align: center; }
.rs-list-empty h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; }
.rs-list-empty p { max-width: 520px; margin: 10px auto 0; color: var(--muted); }
.rs-sugg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.rs-sugg > span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; margin-right: 4px; }

@media (max-width: 1100px) {
  .rs-row { grid-template-columns: 48px minmax(0, 1fr) 150px 120px auto; }
  .rs-row-go { display: none; }
}
@media (max-width: 900px) {
  .rs-list-grid { grid-template-columns: 1fr; gap: 20px; }
  .rs-facets-wrap { position: static; max-height: none; overflow: visible; }
  /* facets fold behind a button on narrow screens (only with JS: .is-foldable is set by the page script) */
  .rs-facets-btn { display: inline-flex; }
  .rs-facets-wrap.is-foldable:not(.is-open) .rs-facets { display: none; }
  .rs-facets-wrap.is-foldable .rs-facets { margin-top: 12px; }
}
@media (max-width: 760px) {
  .rs-list-sec { padding-top: 32px; }
  .rs-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body acts" "pay dl"; gap: 12px 16px; padding: 18px; }
  .rs-row-acts { grid-area: acts; align-self: start; margin: -8px -8px 0 0; }
  .rs-row-idx { display: none; }
  .rs-row-body { grid-area: body; }
  .rs-row-pay { grid-area: pay; font-size: 14px; }
  .rs-row-pay--none { display: block; }
  .rs-row-dl { grid-area: dl; justify-self: end; }
  .rs-list-empty { padding: 36px 20px; }
}
/* IA 19.10 w2 №72: compact row, the organizer logo (initials without one) in the first column */
.rs-row { padding: 16px 20px; gap: 16px; }
.rs-row-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.rs-row-logo img { width: 36px; height: 36px; object-fit: contain; }
.rs-row-logo--txt { border-color: transparent; background: var(--accent-soft); color: var(--accent-dark); font: 600 15px/1 var(--sans); letter-spacing: .02em; }
/* IA 19.10 w2 №70: filters and sort in one panel above the list (dropdown per facet), no side column */
.rs-topbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 12px; border-radius: var(--r); background: var(--paper); }
.rs-tf { position: relative; }
.rs-tf > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid rgba(18,20,26,.12); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; user-select: none; transition: border-color .15s, color .15s; }
.rs-tf > summary::-webkit-details-marker { display: none; }
.rs-tf > summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.rs-tf[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.rs-tf > summary:hover, .rs-tf[open] > summary { border-color: var(--accent); color: var(--accent-dark); }
.rs-tf.is-on > summary { border-color: var(--accent-dark); background: var(--accent-soft); color: var(--accent-dark); }
.rs-tf-n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent-dark); color: #fff; font-size: 12px; text-align: center; }
.rs-tf-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: max-content; max-width: min(460px, 86vw); max-height: 340px; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 22px 44px -26px rgba(20,20,40,.45); }
.rs-topbar-reset { margin-left: 4px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.rs-topbar-reset:hover { color: var(--accent-dark); }
.rs-sort { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; color: var(--muted); font-size: 14px; }
.rs-sort a { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.rs-sort a:hover { color: var(--accent-dark); }
.rs-sort a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 760px) {
  .rs-row:has(> .rs-row-logo) { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "logo body acts" "pay pay dl"; }
  .rs-row-logo { grid-area: logo; align-self: start; }
  .rs-tf { position: static; }
  .rs-tf-panel { left: 12px; right: 12px; width: auto; max-width: none; }
  .rs-sort { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-pulse, .rs-page-meta .rs-live::before { animation: none; }
  .rs-row:hover { transform: none; }
}
