/* Карлсон, страница «Ресепшн и барные стойки из нержавейки» (/resepshn-i-barnye-stojki/).
   Дополняет home.css и page.css, те же токены и сетка. Свои блоки: фото первого экрана со сменой кадров, палитра отделок,
   калькулятор-ориентир по погонным метрам с планом стойки, объекты с фильтром и галереей. */

/* ---------- первый экран: фото справа ---------- */
.sk-h1 { font-size: min(5.2cqi, 76px); }
.sk-media { position: relative; height: 660px; overflow: hidden; background: var(--ti); box-shadow: 0 40px 90px -50px rgba(11,35,45,.45); }
.sk-media .hs img { object-position: 50% 50%; }
.sk-badge { position: absolute; left: 20px; top: 20px; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--white); padding: 10px 14px; }
.sk-badge svg { width: 26px; height: 17px; fill: var(--red); flex: none; }
.sk-media .hero-cap { left: 20px; bottom: 20px; right: 20px; justify-content: space-between; }
.sk-media .hero-cap .lbl { white-space: normal; }
.sk-media .bar { width: 36px; }
.sk-nav { display: flex; gap: 6px; }
.kw .sk-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; transition: background .2s, color .2s; }
.kw .sk-nav button:hover { background: var(--ink); color: var(--white); }
.sk-nav .ico { width: 18px; height: 18px; }

/* ---------- палитра отделок ---------- */
.pal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch; }
.pal-stage { grid-column: 1 / 8; position: relative; min-height: 600px; overflow: hidden; background: var(--ti); }
.pal-sw { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.pal-sw img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s ease; }
.pal-sw.on { opacity: 1; }
.pal-sw.on img { transform: scale(1); }
.pal-in { position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 42%; background: var(--white); padding: 8px 8px 12px; box-shadow: 0 30px 60px -30px rgba(11,35,45,.55); }
.pal-in img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pal-in span { display: block; padding: 10px 6px 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.pal-name { position: absolute; left: 20px; top: 20px; z-index: 2; background: var(--white); padding: 8px 12px; }
.pal-side { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 24px; }
.pal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kw .pal-b { display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s; }
.pal-b img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pal-b span { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; font-size: 15px; font-weight: 500; }
.pal-b span i { width: 14px; height: 14px; border: 1px solid var(--line); flex: none; }
.kw .pal-b:hover { border-color: var(--ink); }
.kw .pal-b.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pal-b.on span i { background: var(--red); border-color: var(--red); }
.pal-card { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pal-card .disp { font-size: 32px; line-height: 1; }
.pal-card .p { color: var(--ink); font-size: 16px; line-height: 1.55; }
.pal-card .spec li span:last-child { max-width: 62%; }
.pal-card .btns { margin-top: auto; }

/* ---------- калькулятор-ориентир ---------- */
.sc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 48px; }
.sc-head .disp { grid-column: 1 / 8; }
.sc-head .lead { grid-column: 8 / 13; }
.sc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); box-shadow: 0 40px 90px -60px rgba(11,35,45,.5); }
.sc-in { padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.sc-out { background: var(--steel); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.sc .grp-t { display: flex; justify-content: space-between; gap: 12px; }
.sc .grp-t b { font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.sc .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc .opt { min-height: 56px; padding: 10px 12px; font-size: 14px; }
.shp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kw .shp button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 13px; line-height: 1.25; text-align: center; transition: border-color .2s, background .2s; }
.shp svg { width: 46px; height: 34px; fill: none; stroke: var(--steel); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.kw .shp button:hover { border-color: var(--ink); }
.kw .shp button.on { border-color: var(--ink); background: var(--pink); }
.shp button.on svg { stroke: var(--corten); }
.rngs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.rng { display: flex; flex-direction: column; gap: 8px; }
.rng-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.rng-t b { font-size: 20px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rng input { width: 100%; height: 28px; margin: 0; accent-color: var(--steel); cursor: pointer; }
.swl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kw .swl button { display: flex; flex-direction: column; gap: 6px; padding: 5px 5px 9px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 13px; text-align: left; transition: border-color .2s; }
.swl img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.swl button span { padding: 0 3px; }
.kw .swl button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ckl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ckl .optl { padding: 12px 14px; }
.plan { position: relative; background-color: #081A21; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 20px 20px; }
.plan svg { display: block; width: 100%; height: auto; }
.plan .body { fill: rgba(225,225,224,.16); stroke: #C3CED3; stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: d .4s ease; }
.plan .front { fill: none; stroke: #FE3725; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plan text { fill: #DDE4E7; font-family: 'Commissioner', sans-serif; font-size: 13px; font-weight: 500; }
.plan text.dim { fill: #9FB1B9; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.plan-tag { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink); padding: 6px 10px; }
.plan-leg { position: absolute; right: 12px; top: 14px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #C3CED3; }
.plan-leg i { width: 18px; height: 3px; background: #FE3725; }
.sk-pm { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sk-pm .out-big { font-size: 64px; }
.sk-pm span { font-size: 14px; color: #B9C6CC; }
.sc-out .btns { margin-top: auto; flex-direction: column; }
.sc-out .btns .btn { width: 100%; }
.sc-out .btn-line { color: var(--white); border-color: rgba(255,255,255,.5); }
.kw .sc-out .btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- объекты ---------- */
.ob-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.ob-head .chips { justify-content: flex-end; }
.kw .ob-head .chip.on { color: var(--white); }
.ob { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 360px; gap: 16px; grid-auto-flow: dense; }
.kw .oc { position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--ti); cursor: pointer; text-align: left; }
.oc.w { grid-column: span 2; }
.oc.t { grid-row: span 2; }
.oc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.oc:hover img { transform: scale(1.05); }
.oc-plate { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: var(--white); padding: 14px 16px; }
.oc-plate b { display: block; font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.oc-plate small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.oc-n { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.oc-n .ico { width: 16px; height: 16px; }
.gal .gal-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.gal .gal-cap { font-size: 15px; color: #C3CED3; }
.gal .gal-top b { font-size: 18px; font-weight: 500; }

/* ---------- средние ширины ---------- */
@container k (min-width: 821px) and (max-width: 1200px) {
  .sk-media { height: 560px; }
  .pal-stage { grid-column: 1 / 7; min-height: 520px; }
  .pal-side { grid-column: 7 / 13; }
  .pal-in { width: 50%; }
  .sc { grid-template-columns: 1fr; }
  .sc .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-out .btns { flex-direction: row; }
  .sc-out .btns .btn { width: auto; flex: 1 1 260px; }
  .ob { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; }
}

/* ---------- телефон ---------- */
@container k (max-width: 820px) {
  .lh-r { align-self: stretch; } /* в колонке flex с align-items: start слайдер без своей ширины сжимался в 0 */
  .sk-media { height: 420px; }
  .sk-badge { left: 12px; top: 12px; padding: 8px 10px; }
  .sk-media .hero-cap { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; }
  .sk-media .bar { width: 22px; }
  .kw .sk-nav button { width: 40px; height: 40px; }

  .pal { display: flex; flex-direction: column; gap: 16px; }
  .pal-stage { min-height: 0; height: 300px; }
  .pal-in { display: none; }
  .pal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .kw .pal-b { padding: 4px 4px 8px; gap: 6px; }
  .pal-b span { font-size: 12px; padding: 0 2px; }
  .pal-b span i { display: none; }
  .pal-card { padding: 22px 18px; }
  .pal-card .disp { font-size: 26px; }
  .pal-card .btns .btn { flex: 1 1 100%; }

  .sc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
  .sc { grid-template-columns: 1fr; }
  .sc-in { padding: 24px 16px; gap: 26px; }
  .sc-out { padding: 24px 16px; }
  .sc .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rngs { grid-template-columns: 1fr; gap: 16px; }
  .swl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ckl { grid-template-columns: 1fr; }
  .sk-pm .out-big { font-size: 48px; }
  .sc-out .btns .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 18px; }
  .sk-h1 { font-size: 10.4cqi; }
  .sk-media .bars { display: none; }

  .ob-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .ob-head .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); scrollbar-width: none; }
  .ob-head .chip { flex: none; }
  .ob { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 10px; }
  .oc.w { grid-column: auto; }
  .oc.t { grid-row: auto; }
  .oc-plate { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
  .oc-plate b { font-size: 16px; }
}

/* ---------- перенос на сайт (06.10) ---------- */
/* врезка «на объекте» в палитре: на сайте четыре фото с srcset, видно только выбранное */
.pal-in img[data-pal-ex]:not(.on) { display: none; }
/* калькулятор: плавно меняем план, когда двигают ползунки */
.plan text { transition: opacity .2s; }
/* галерея объектов: кнопка «Нужна похожая стойка» под миниатюрами */
.gal .gal-th img { width: 100%; height: 100%; object-fit: cover; }
/* у фото с атрибутами width и height высоту задаёт пропорция из CSS, как в макете */
.pal-b img, .swl img, .pal-in img { height: auto; }
