/* ============================================================
   KRONOTEX · ПОДБОР ПО КОМНАТЕ — page-specific styles
   Ported 1:1 from design source "Kronotex Room Picker.html"
   (style id="kronotex-room"), showcase-mode adaptations:
   - price facet (.rseg/.rbudget) removed with its markup
   - card rating rows removed (no fabricated ratings)
   - sale/new/hit badges removed (only real AQUA badge remains)
   Decor-tint additions missing from chrome.css (wd-6 stone for the
   grey tone chip, wd-13) live inside each @scope block.
   ============================================================ */

/* ============================================================
   DESKTOP
   ============================================================ */
/* de-scoped from @scope (.kr-desktop) — plain descendant selectors for full browser support */


/* ── decor tints missing from chrome.css ── */
.kr-desktop .wd-6.stone, .kr-desktop .stone.wd-6 { --stone-grad: linear-gradient(180deg, #B9B5AC 0%, #A09C92 45%, #86827A 100%); }
.kr-desktop .wd-13 { --wood-grad: linear-gradient(180deg, #B9B0A2 0%, #A2988A 40%, #8B8172 75%, #736A5C 100%); }

/* ── interactive cursors (buttons rendered as <button>) ── */
.kr-desktop .rplan__cell, .kr-desktop .rlist__btn, .kr-desktop .rtone, .kr-desktop .rtog, .kr-desktop .rarea button, .kr-desktop .rbar__reset, .kr-desktop .fav-cta__price, .kr-desktop .fav-cta__pdp { cursor: pointer; }

/* ── product card (mirrors catalog/favorites .prod) ── */
.kr-desktop .prod {
  background: #fff; border-radius: var(--r-md);
  border: 1px solid var(--kr-line); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.kr-desktop .prod:hover { box-shadow: var(--shadow-hov); border-color: transparent; }
.kr-desktop .prod__media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.kr-desktop .prod__media .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.kr-desktop .badge { font-family: var(--font-display); font-weight: 800; font-size: 10px; padding: 4px 10px; border-radius: var(--r-pill); letter-spacing: 0.1em; text-transform: uppercase; }
.kr-desktop .badge--aqua { background: #2E6E8E; color: #fff; }
.kr-desktop .prod__actions { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.kr-desktop .prod__action { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--kr-black); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); cursor: pointer; }
.kr-desktop .prod__action:hover { background: var(--kr-red); color: #fff; }
.kr-desktop .prod__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kr-desktop .prod__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--kr-mute); text-transform: uppercase; line-height: 1.4; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-desktop .prod__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--kr-black); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.kr-desktop .prod__name:hover { color: var(--kr-red); }
.kr-desktop .prod__specs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.kr-desktop .prod__spec { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--kr-bg); color: var(--kr-graphite); border: 1px solid var(--kr-line); }
/* margin-top:auto pins the price/rcalc/CTA tail to the card bottom — adjacent cards align */
.kr-desktop .prod__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--kr-line); }
.kr-desktop .prod__price strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--kr-red); }
.kr-desktop .fav-cta { display: flex; gap: 8px; margin-top: 10px; }
.kr-desktop .fav-cta__price {
  flex: 1; min-width: 0; height: 44px; background: var(--kr-black); color: #fff; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.kr-desktop .fav-cta__price:hover { background: var(--kr-red); }
.kr-desktop .fav-cta__pdp {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--kr-line-2);
  color: var(--kr-black); display: grid; place-items: center;
}
.kr-desktop .fav-cta__pdp:hover { border-color: var(--kr-black); background: var(--kr-bg); }

/* ── room hero: copy + apartment plan ── */
.kr-desktop .rhero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(165deg, #1F1A14 0%, #2C2418 52%, #3F3322 100%);
  color: #fff; display: grid; grid-template-columns: 1fr 1.08fr; gap: 24px;
  margin-top: 24px;
}
.kr-desktop .rhero__copy { padding: 44px 8px 44px 52px; display: flex; flex-direction: column; position: relative; z-index: 2; }
.kr-desktop .rhero__crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em; margin-bottom: 20px;
}
.kr-desktop .rhero__crumbs a { color: rgba(255,255,255,0.55); }
.kr-desktop .rhero__crumbs a:hover { color: #fff; }
.kr-desktop .rhero__crumbs .sep { opacity: 0.4; }
.kr-desktop .rhero__crumbs .cur { color: #fff; font-weight: 700; }
.kr-desktop .rhero h1 { color: #fff; font-size: 52px; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 14px; }
.kr-desktop .rhero h1 em { font-style: normal; color: var(--kr-yellow); }
.kr-desktop .rhero__lede { font-size: 15.5px; color: rgba(255,255,255,0.82); max-width: 460px; line-height: 1.55; margin-bottom: 24px; }

.kr-desktop .rlist { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.kr-desktop .rlist__btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 14px 8px 9px; border-radius: 12px; color: #fff; text-align: left;
  font-family: var(--font-display); transition: background .15s;
}
.kr-desktop .rlist__btn:hover { background: rgba(255,255,255,0.07); }
.kr-desktop .rlist__btn.is-active { background: rgba(255,255,255,0.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.kr-desktop .rlist__ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: rgba(255,255,255,0.10); color: #fff;
  display: grid; place-items: center; transition: background .15s;
}
.kr-desktop .rlist__btn.is-active .rlist__ic { background: var(--kr-red); }
.kr-desktop .rlist__name { font-weight: 800; font-size: 14px; letter-spacing: 0.01em; }
.kr-desktop .rlist__count { margin-left: auto; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }
.kr-desktop .rlist__btn .chev { opacity: 0.3; transition: opacity .15s; }
.kr-desktop .rlist__btn.is-active .chev { opacity: 1; color: var(--kr-yellow); }
.kr-desktop .rhero__foot { margin-top: 20px; }

.kr-desktop .rplan-wrap { padding: 26px 26px 26px 0; display: flex; position: relative; z-index: 2; }
.kr-desktop .rplan-card {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; padding: 20px;
}
.kr-desktop .rplan-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.kr-desktop .rplan-card__title {
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.9);
}
.kr-desktop .rplan-card__title span { color: var(--kr-yellow); }
.kr-desktop .rplan-card__hint { font-size: 11.5px; color: rgba(255,255,255,0.5); }

.kr-desktop .rplan {
  flex: 1; min-height: 340px;
  display: grid; gap: 10px;
  grid-template-columns: 1.25fr 0.72fr 1.05fr;
  grid-template-rows: 0.9fr 0.72fr 1fr;
  grid-template-areas:
    "living  bath bed"
    "living  hall bed"
    "kitchen hall kids";
}
.kr-desktop .rc-living { grid-area: living; }
.kr-desktop .rc-kitchen { grid-area: kitchen; }
.kr-desktop .rc-bed { grid-area: bed; }
.kr-desktop .rc-kids { grid-area: kids; }
.kr-desktop .rc-hall { grid-area: hall; }
.kr-desktop .rc-bath { grid-area: bath; }
.kr-desktop .rplan__cell {
  position: relative; overflow: hidden; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  color: #fff; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 14px; transition: background .18s, box-shadow .18s;
}
.kr-desktop .rplan__cell:hover { background: rgba(255,255,255,0.13); }
.kr-desktop .rplan__cell.is-active { box-shadow: inset 0 0 0 2px var(--kr-yellow); }
.kr-desktop .rplan__fill { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.kr-desktop .rplan__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,5,0.16), rgba(15,10,5,0.44)); }
.kr-desktop .rplan__cell.is-active .rplan__fill { opacity: 1; }
.kr-desktop .rplan__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.85); }
.kr-desktop .rplan__n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.14); font-style: normal; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 11px; line-height: 20px;
}
.kr-desktop .rplan__cell.is-active .rplan__n { background: var(--kr-yellow); color: var(--kr-black); }
.kr-desktop .rplan__meta { position: relative; z-index: 1; }
.kr-desktop .rplan__meta b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.kr-desktop .rplan__meta small { font-size: 11px; color: rgba(255,255,255,0.6); }
.kr-desktop .rplan__cell.is-active .rplan__meta small { color: rgba(255,255,255,0.85); }
.kr-desktop .rplan__entry {
  position: absolute; z-index: 1; bottom: 7px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); white-space: nowrap;
}

/* ── room passport ── */
.kr-desktop .rpass-sec { margin-top: 56px; }
.kr-desktop .rpass-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 24px; }
.kr-desktop .rpass-head h2 { font-size: 30px; }
.kr-desktop .rpass {
  display: grid; grid-template-columns: 1fr 1.2fr 0.78fr; gap: 18px;
  background: var(--kr-cream); border-radius: var(--r-lg); padding: 22px;
}
.kr-desktop .rpass__why { padding: 8px 6px 8px 10px; }
.kr-desktop .rpass__why h4, .kr-desktop .rpass__cols h4 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px; color: var(--kr-black);
}
.kr-desktop .rpass__why ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.kr-desktop .rpass__why li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--kr-graphite); }
.kr-desktop .rpass__chk {
  width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%;
  background: #fff; color: var(--kr-red); display: grid; place-items: center; font-style: normal;
}
.kr-desktop .rpass__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kr-desktop .rpass__tile {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-card);
}
.kr-desktop .rpass__tl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kr-mute); }
.kr-desktop .rpass__tile b { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--kr-black); }
.kr-desktop .rpass__tile small { font-size: 11.5px; color: var(--kr-mute); }
.kr-desktop .rpass__cols { background: #fff; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.kr-desktop .rpass__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kr-desktop .rpass__chip {
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--kr-black); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
}
.kr-desktop .rpass__cols .link-arrow { margin-top: auto; font-size: 13px; align-self: flex-start; }

/* ── results toolbar ── */
.kr-desktop .rbar {
  margin-top: 26px; background: #fff; border: 1px solid var(--kr-line);
  border-radius: var(--r-md); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.kr-desktop .rbar__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.kr-desktop .rbar__left { display: flex; align-items: baseline; gap: 12px; }
.kr-desktop .rbar__left b { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--kr-black); }
.kr-desktop .rbar__note { font-size: 13px; color: var(--kr-mute); }
.kr-desktop .rbar__right { display: flex; align-items: center; gap: 12px; }
.kr-desktop .rbar__arealab { font-size: 12.5px; font-weight: 600; color: var(--kr-mute); }
.kr-desktop .rarea { display: inline-flex; align-items: center; border: 1.5px solid var(--kr-line-2); border-radius: var(--r-pill); height: 42px; overflow: hidden; }
.kr-desktop .rarea button { width: 40px; height: 100%; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--kr-black); }
.kr-desktop .rarea button:hover { background: var(--kr-bg); }
.kr-desktop .rarea b { min-width: 62px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--kr-black); }
.kr-desktop .rbar__reset {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--kr-mute);
}
.kr-desktop .rbar__reset:hover { color: var(--kr-red); background: rgba(200,16,46,0.05); }
.kr-desktop .rbar__row--facets { justify-content: flex-start; border-top: 1px solid var(--kr-line); padding-top: 14px; }
.kr-desktop .rgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kr-desktop .rgroup__lab { font-size: 11px; font-weight: 700; color: var(--kr-mute); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 2px; }
.kr-desktop .rbar__div { width: 1px; align-self: stretch; background: var(--kr-line); }
.kr-desktop .rtone {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--kr-line-2); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--kr-black);
}
.kr-desktop .rtone i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.kr-desktop .rtone:hover { border-color: var(--kr-black); }
.kr-desktop .rtone.is-active { background: var(--kr-black); border-color: var(--kr-black); color: #fff; }
.kr-desktop .rtog {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--kr-line-2); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--kr-black);
}
.kr-desktop .rtog:hover { border-color: var(--kr-black); }
.kr-desktop .rtog.is-active { color: var(--kr-red); border-color: rgba(200,16,46,0.35); background: rgba(200,16,46,0.06); }

/* ── results grid + смета ── */
.kr-desktop .room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.kr-desktop .rcalc {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: var(--kr-bg); border: 1px dashed var(--kr-line-2);
  border-radius: 10px; font-size: 12px; color: var(--kr-graphite);
}
.kr-desktop .rcalc svg { color: var(--kr-red); flex: none; }
.kr-desktop .rcalc b { font-family: var(--font-display); font-weight: 800; color: var(--kr-black); }
.kr-desktop .rcalc small { margin-left: auto; color: var(--kr-mute); font-size: 10.5px; }

.kr-desktop .room-empty { display: none; flex-direction: column; align-items: center; text-align: center; padding: 64px 24px; }
.kr-desktop [data-room-wrap].is-empty .room-grid { display: none; }
.kr-desktop [data-room-wrap].is-empty .room-empty { display: flex; }
.kr-desktop .room-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--kr-cream); color: var(--kr-red); display: grid; place-items: center; margin-bottom: 24px; }
.kr-desktop .room-empty h2 { font-size: 28px; margin-bottom: 10px; }
.kr-desktop .room-empty p { font-size: 14.5px; color: var(--kr-mute); max-width: 440px; margin-bottom: 24px; }
.kr-desktop .room-empty__btns { display: flex; gap: 12px; }

/* ── samples CTA band ── */
.kr-desktop .rcta {
  margin-top: 64px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, #211B14 0%, #2C2418 55%, #3C3020 100%);
  color: #fff; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center;
}
.kr-desktop .rcta__copy { padding: 44px 48px; }
.kr-desktop .rcta__copy h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.kr-desktop .rcta__copy p { color: rgba(255,255,255,0.78); font-size: 14.5px; max-width: 480px; margin-bottom: 22px; }
.kr-desktop .rcta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.kr-desktop .rcta__sw { display: grid; grid-template-columns: repeat(5, 64px); gap: 10px; justify-content: center; padding: 30px; }
.kr-desktop .rcta__sw span { width: 64px; height: 64px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }

/* ── swap animations ── */
@media (prefers-reduced-motion: no-preference) {
  .kr-desktop .room-grid.rp-anim { animation: rpIn 0.3s ease; }
  .kr-desktop .rp-fade { animation: rpUp 0.35s ease; }
}
@keyframes rpIn { from { opacity: 0.4; } }
@keyframes rpUp { from { opacity: 0; transform: translateY(8px); } }

  /* end @scope (.kr-desktop) */


/* ============================================================
   MOBILE
   ============================================================ */
/* de-scoped from @scope (.kr-mobile) — plain descendant selectors for full browser support */


/* ── decor tints missing from chrome.css ── */
.kr-mobile .wd-6.stone, .kr-mobile .stone.wd-6 { --stone-grad: linear-gradient(180deg, #B9B5AC 0%, #A09C92 45%, #86827A 100%); }
.kr-mobile .wd-13 { --wood-grad: linear-gradient(180deg, #B9B0A2 0%, #A2988A 40%, #8B8172 75%, #736A5C 100%); }

/* ── interactive cursors ── */
.kr-mobile .rplan__cell, .kr-mobile .rtone, .kr-mobile .rtog, .kr-mobile .rarea button, .kr-mobile .rbar__reset, .kr-mobile .fav-cta__price, .kr-mobile .fav-cta__pdp { cursor: pointer; }

/* ── product card ── */
.kr-mobile .prod { background: #fff; border-radius: var(--r-md); border: 1px solid var(--kr-line); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.kr-mobile .prod__media { aspect-ratio: 1/1; position: relative; overflow: hidden; }
.kr-mobile .prod__media .badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.kr-mobile .badge { font-family: var(--font-display); font-weight: 800; font-size: 9px; padding: 3px 7px; border-radius: var(--r-pill); letter-spacing: 0.08em; text-transform: uppercase; }
.kr-mobile .badge--aqua { background: #2E6E8E; color: #fff; }
.kr-mobile .prod__actions { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.kr-mobile .prod__action { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--kr-black); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12); cursor: pointer; }
.kr-mobile .prod__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kr-mobile .prod__cat { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: var(--kr-mute); text-transform: uppercase; line-height: 1.4; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-mobile .prod__name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--kr-black); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
/* margin-top:auto pins the price/rcalc/CTA tail to the card bottom — adjacent cards align */
.kr-mobile .prod__price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--kr-line); }
.kr-mobile .prod__price strong { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--kr-red); }
.kr-mobile .fav-cta { display: flex; gap: 6px; margin-top: 8px; }
.kr-mobile .fav-cta__price { flex: 1; min-width: 0; height: 38px; padding: 0 6px; background: var(--kr-black); color: #fff; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; }
.kr-mobile .fav-cta__price:hover { background: var(--kr-red); }
.kr-mobile .fav-cta__pdp { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid var(--kr-line-2); color: var(--kr-black); display: grid; place-items: center; }

/* ── hero + plan ── */
.kr-mobile .rhero {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: linear-gradient(165deg, #1F1A14 0%, #2C2418 52%, #3F3322 100%);
  color: #fff; margin: 12px 16px 0; padding: 20px 16px 16px;
}
.kr-mobile .rhero__crumbs { font-size: 10px; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.kr-mobile .rhero__crumbs a { color: rgba(255,255,255,0.55); }
.kr-mobile .rhero__crumbs .sep { opacity: 0.4; padding: 0 4px; }
.kr-mobile .rhero__crumbs .cur { color: #fff; font-weight: 700; }
.kr-mobile .rhero h1 { color: #fff; font-size: 27px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 8px; }
.kr-mobile .rhero h1 em { font-style: normal; color: var(--kr-yellow); }
.kr-mobile .rhero__lede { font-size: 12.5px; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 14px; }

.kr-mobile .rplan-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 12px; }
.kr-mobile .rplan-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kr-mobile .rplan-card__title { font-family: var(--font-display); font-weight: 800; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.kr-mobile .rplan-card__title span { color: var(--kr-yellow); }
.kr-mobile .rplan-card__hint { font-size: 10px; color: rgba(255,255,255,0.5); }
.kr-mobile .rplan {
  display: grid; gap: 7px; height: 252px;
  grid-template-columns: 1.25fr 0.75fr 1.05fr;
  grid-template-rows: 0.9fr 0.72fr 1fr;
  grid-template-areas:
    "living  bath bed"
    "living  hall bed"
    "kitchen hall kids";
}
.kr-mobile .rc-living { grid-area: living; }
.kr-mobile .rc-kitchen { grid-area: kitchen; }
.kr-mobile .rc-bed { grid-area: bed; }
.kr-mobile .rc-kids { grid-area: kids; }
.kr-mobile .rc-hall { grid-area: hall; }
.kr-mobile .rc-bath { grid-area: bath; }
.kr-mobile .rplan__cell {
  position: relative; overflow: hidden; border-radius: 9px;
  background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  color: #fff; text-align: left; display: flex; flex-direction: column;
  justify-content: space-between; padding: 8px 10px; transition: background .18s, box-shadow .18s;
}
.kr-mobile .rplan__cell.is-active { box-shadow: inset 0 0 0 2px var(--kr-yellow); }
.kr-mobile .rplan__fill { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.kr-mobile .rplan__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,10,5,0.16), rgba(15,10,5,0.44)); }
.kr-mobile .rplan__cell.is-active .rplan__fill { opacity: 1; }
.kr-mobile .rplan__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.85); }
.kr-mobile .rplan__top svg { width: 13px; height: 13px; }
.kr-mobile .rplan__n { min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); background: rgba(255,255,255,0.14); font-style: normal; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 9px; line-height: 16px; }
.kr-mobile .rplan__cell.is-active .rplan__n { background: var(--kr-yellow); color: var(--kr-black); }
.kr-mobile .rplan__meta { position: relative; z-index: 1; }
.kr-mobile .rplan__meta b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 11px; }
.kr-mobile .rplan__meta small { font-size: 9px; color: rgba(255,255,255,0.6); }
.kr-mobile .rplan__entry { position: absolute; z-index: 1; bottom: 4px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); white-space: nowrap; }

/* ── passport ── */
.kr-mobile .rpass-sec { margin: 18px 16px 0; }
.kr-mobile .rpass-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.kr-mobile .rpass-head h2 { font-size: 19px; }
.kr-mobile .rpass-head .link-arrow { font-size: 11.5px; flex: none; }
.kr-mobile .rpass { background: var(--kr-cream); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kr-mobile .rpass__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kr-mobile .rpass__tile { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kr-mobile .rpass__tl { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kr-mute); }
.kr-mobile .rpass__tile b { font-family: var(--font-display); font-weight: 800; font-size: 13.5px; color: var(--kr-black); }
.kr-mobile .rpass__tile small { font-size: 10px; color: var(--kr-mute); }
.kr-mobile .rpass__why { background: #fff; border-radius: 10px; }
.kr-mobile .rpass__why summary {
  list-style: none; cursor: pointer; padding: 11px 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--kr-black);
}
.kr-mobile .rpass__why summary::-webkit-details-marker { display: none; }
.kr-mobile .rpass__why summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid var(--kr-black); border-bottom: 1.5px solid var(--kr-black);
  transform: rotate(45deg); margin-top: -3px;
}
.kr-mobile .rpass__why[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.kr-mobile .rpass__why ul { list-style: none; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.kr-mobile .rpass__why li { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--kr-graphite); }
.kr-mobile .rpass__chk { width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--kr-cream); color: var(--kr-red); display: grid; place-items: center; font-style: normal; }
.kr-mobile .rpass__cols { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kr-mobile .rpass__chip { padding: 6px 11px; border-radius: var(--r-pill); background: var(--kr-black); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 10.5px; }
.kr-mobile .rpass__cols .link-arrow { font-size: 11.5px; margin-left: auto; }

/* ── filters ── */
.kr-mobile .rbar-m { margin-top: 16px; }
.kr-mobile .rbar-m__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 10px; }
.kr-mobile .rbar-m__top b { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--kr-black); }
.kr-mobile .rbar-m__note { display: block; font-size: 11px; color: var(--kr-mute); }
.kr-mobile .rbar__reset { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--kr-mute); padding: 8px 10px; border-radius: var(--r-pill); }
.kr-mobile .rchips { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.kr-mobile .rchips::-webkit-scrollbar { display: none; }
.kr-mobile .rtone, .kr-mobile .rtog {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--r-pill); border: 1.5px solid var(--kr-line-2);
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; color: var(--kr-black); background: #fff;
}
.kr-mobile .rtone i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.kr-mobile .rtone.is-active { background: var(--kr-black); border-color: var(--kr-black); color: #fff; }
.kr-mobile .rtog.is-active { color: var(--kr-red); border-color: rgba(200,16,46,0.35); background: rgba(200,16,46,0.06); }
.kr-mobile .rarea-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 16px 4px; padding: 8px 8px 8px 14px;
  background: var(--kr-bg); border: 1px dashed var(--kr-line-2); border-radius: 10px;
}
.kr-mobile .rarea-row > span { font-size: 12px; font-weight: 600; color: var(--kr-graphite); }
.kr-mobile .rarea { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--kr-line-2); border-radius: var(--r-pill); height: 38px; overflow: hidden; }
.kr-mobile .rarea button { width: 38px; height: 100%; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--kr-black); }
.kr-mobile .rarea b { min-width: 54px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--kr-black); }

/* ── grid + смета ── */
.kr-mobile .room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-top: 12px; }
.kr-mobile .rcalc {
  margin-top: 6px; display: flex; align-items: center; gap: 6px;
  padding: 7px 9px; background: var(--kr-bg); border: 1px dashed var(--kr-line-2);
  border-radius: 8px; font-size: 10.5px; color: var(--kr-graphite);
}
.kr-mobile .rcalc svg { color: var(--kr-red); flex: none; width: 11px; height: 11px; }
.kr-mobile .rcalc b { font-family: var(--font-display); font-weight: 800; color: var(--kr-black); }
.kr-mobile .rcalc small { display: none; }

.kr-mobile .room-empty { display: none; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px; }
.kr-mobile [data-room-wrap].is-empty .room-grid { display: none; }
.kr-mobile [data-room-wrap].is-empty .room-empty { display: flex; }
.kr-mobile .room-empty__icon { width: 68px; height: 68px; border-radius: 50%; background: var(--kr-cream); color: var(--kr-red); display: grid; place-items: center; margin-bottom: 16px; }
.kr-mobile .room-empty h2 { font-size: 20px; margin-bottom: 8px; }
.kr-mobile .room-empty p { font-size: 12.5px; color: var(--kr-mute); margin-bottom: 18px; }
.kr-mobile .room-empty__btns { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ── CTA + sticky bar ── */
.kr-mobile .rcta { margin: 28px 16px 0; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(150deg, #211B14 0%, #2C2418 55%, #3C3020 100%); color: #fff; padding: 22px 18px; }
.kr-mobile .rcta h2 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.kr-mobile .rcta p { color: rgba(255,255,255,0.78); font-size: 12px; margin-bottom: 16px; }
.kr-mobile .rcta__sw { display: flex; gap: 8px; margin-bottom: 16px; }
.kr-mobile .rcta__sw span { width: 44px; height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.kr-mobile .rcta__btns { display: flex; flex-direction: column; gap: 8px; }

.kr-mobile .room-bulk {
  position: sticky; bottom: 0; z-index: 40; margin-top: 28px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--kr-line); padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.kr-mobile .room-bulk__info b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--kr-black); }
.kr-mobile .room-bulk__info small { font-size: 10.5px; color: var(--kr-mute); }
.kr-mobile .room-bulk .btn { margin-left: auto; }

/* ── swap animations ── */
@media (prefers-reduced-motion: no-preference) {
  .kr-mobile .room-grid.rp-anim { animation: rpIn 0.3s ease; }
  .kr-mobile .rp-fade { animation: rpUp 0.35s ease; }
}
@keyframes rpIn { from { opacity: 0.4; } }
@keyframes rpUp { from { opacity: 0; transform: translateY(8px) } }

  /* end @scope (.kr-mobile) */

/* ============================================================
   iOS SAFARI FALLBACK — «Почему так» accordion
   Some iOS Safari builds that otherwise support @scope drop the
   details/summary rule cluster inside the @scope block (the rest
   of the page styles fine). Duplicated here as plain descendant
   selectors so the accordion is styled on every engine.
   ============================================================ */
.kr-mobile .rpass__why { background: #fff; border-radius: 10px; }
.kr-mobile .rpass__why summary {
  list-style: none; cursor: pointer; padding: 11px 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--kr-black);
}
.kr-mobile .rpass__why summary::-webkit-details-marker { display: none; }
.kr-mobile .rpass__why summary::marker { content: ""; }
.kr-mobile .rpass__why summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.5px solid var(--kr-black); border-bottom: 1.5px solid var(--kr-black);
  transform: rotate(45deg); margin-top: -3px;
}
.kr-mobile .rpass__why[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.kr-mobile .rpass__why ul { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.kr-mobile .rpass__why li { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--kr-graphite); }
.kr-mobile .rpass__why .rpass__chk { width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--kr-cream); color: var(--kr-red); display: grid; place-items: center; font-style: normal; }
