/* ─── Салон — showroom carousel (salon.js) ────────────────────────────────── */
.salon-page { margin: 0; background: #1a140d; color: #fff; font-family: 'Outfit', sans-serif;
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
#salon-root { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.salon-bg { position: fixed; inset: 0; background: center/cover no-repeat; z-index: 0; transform: scale(1.06); transition: transform .7s cubic-bezier(.22,.85,.25,1); will-change: transform; }
.salon-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,20,13,.5) 0%, rgba(26,20,13,.12) 30%, rgba(26,20,13,.35) 100%); }

/* header + tabs */
.salon-head { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: clamp(1.2rem,3vw,2rem) 1rem .5rem; }
.salon-back { position: absolute; left: clamp(1rem,3vw,2rem); top: clamp(1.2rem,3vw,2rem); z-index: 14;
  display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-size: .84rem; font-weight: 500;
  background: rgba(26,20,13,.55); border: 1px solid rgba(255,255,255,.22); padding: .5rem .95rem .5rem .75rem; border-radius: 999px; backdrop-filter: blur(8px);
  transition: background .2s, transform .2s; }
.salon-back svg { flex: 0 0 auto; }
.salon-back:hover { background: rgba(26,20,13,.75); transform: translateX(-2px); }
.salon-brand { font-family: 'Cormorant', serif; font-size: clamp(1.2rem,2.4vw,1.7rem); letter-spacing: .04em; color: rgba(255,255,255,.92); }
.salon-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .4rem; background: rgba(26,20,13,.4); padding: .35rem; border-radius: 999px; backdrop-filter: blur(8px); }
.salon-tab { padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem;
  background: transparent; color: rgba(255,255,255,.72); border: none; transition: all .2s; }
.salon-tab:hover { color: #fff; }
.salon-tab.on { background: linear-gradient(135deg, var(--gold,#B8762A), var(--gold2,#D4924A)); color: #fff; box-shadow: 0 6px 18px rgba(184,118,42,.4); }

/* carousel stage — 3D coverflow */
.salon-stage { position: relative; z-index: 4; flex: 1; display: flex; align-items: center; justify-content: center; min-height: clamp(300px,46vh,500px); touch-action: pan-y; }
.salon-rail { position: relative; width: 100%; height: clamp(280px, 40vh, 440px); perspective: 1700px; transform-style: preserve-3d; }
.salon-card { position: absolute; left: 50%; top: 50%; width: clamp(270px, 30vw, 470px);
  background: none; border: none; padding: 0; cursor: pointer; transform-style: preserve-3d; backface-visibility: hidden;
  transform: translate(-50%,-50%); transition: transform .6s cubic-bezier(.22,.85,.25,1), opacity .45s ease; will-change: transform, opacity; }
.salon-card-img { display: block; width: 100%; aspect-ratio: 4/3; border-radius: 16px; background: #2a2118 center/cover no-repeat;
  box-shadow: 0 30px 55px -18px rgba(0,0,0,.75); transition: box-shadow .5s ease; }
.salon-card.is-active .salon-card-img { box-shadow: 0 50px 90px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(240,192,122,.18); }
/* reflection-ish contact glow under the active model */
.salon-card.is-active::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -30px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,0) 72%); filter: blur(8px); }

.salon-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; line-height: 1; color: #fff;
  background: rgba(26,20,13,.5); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); transition: all .2s; }
.salon-arrow:hover { background: var(--gold,#B8762A); border-color: transparent; }
.salon-arrow--prev { left: clamp(.6rem,3vw,2.5rem); }
.salon-arrow--next { right: clamp(.6rem,3vw,2.5rem); }

/* active product info */
.salon-active { position: relative; z-index: 5; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .4rem 1rem 0; }
.salon-active-name { font-family: 'Cormorant', serif; font-weight: 400; font-size: clamp(1.7rem,3.4vw,2.6rem); }
.salon-active-price { font-size: 1.05rem; font-weight: 600; color: var(--gold3,#F0C07A); margin-bottom: .5rem; }

.salon-dots { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; padding: 1rem 1rem 1.4rem; }
.salon-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.3); transition: all .2s; padding: 0; }
.salon-dot:hover { background: rgba(255,255,255,.6); }
.salon-dot.on { background: var(--gold2,#D4924A); transform: scale(1.3); }

/* buttons */
.salon-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 500; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); transition: all .2s ease; }
.salon-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.salon-btn--gold { background: linear-gradient(135deg, var(--gold,#B8762A), var(--gold2,#D4924A)); border-color: transparent; box-shadow: 0 8px 24px rgba(184,118,42,.34); }

/* companion */
.salon-companion { position: fixed; left: clamp(1rem,4vw,2.4rem); bottom: clamp(1rem,4vw,2rem); z-index: 20;
  display: flex; align-items: center; gap: .7rem; max-width: min(440px, calc(100vw - 2rem));
  background: rgba(26,20,13,.62); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: .55rem .7rem; }
.salon-ava { position: relative; flex: 0 0 auto; width: 40px; height: 40px; }
.salon-ava img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.salon-ava-mono { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2,#D4924A), var(--gold,#B8762A)); font-family: 'Cormorant', serif; font-size: 1.25rem; font-weight: 600; }
.salon-ava-dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #5fd07a; border: 2px solid #1a140d; }
.salon-companion-txt { margin: 0; font-size: .82rem; line-height: 1.4; color: rgba(255,255,255,.9); }
.salon-ask { flex: 0 0 auto; padding: 0 .9rem; align-self: stretch; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: var(--gold,#B8762A); color: #fff; border: none; font: inherit; font-size: .8rem; font-weight: 500; }

/* detail overlay */
.salon-detail { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  background: rgba(12,9,5,.74); backdrop-filter: blur(6px); padding: clamp(.8rem,3vw,2rem); }
.salon-detail.on { display: flex; }
.salon-detail-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(940px,100%); max-height: 90vh; overflow: hidden;
  background: var(--bg,#F9F6F1); color: var(--ink,#18150F); border-radius: 18px; animation: salonPop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes salonPop { from { opacity: 0; transform: scale(.97) translateY(10px); } to { opacity: 1; transform: none; } }
.salon-detail-x { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 1rem; }
.salon-detail-media { background: #2a2118; display: flex; flex-direction: column; }
.salon-detail-hero { flex: 1; min-height: 280px; background: #2a2118 center/cover no-repeat; }
.salon-thumbs { display: flex; gap: .4rem; padding: .5rem; background: rgba(0,0,0,.2); }
.salon-thumb { width: 54px; height: 54px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; background: #3a2f22 center/cover no-repeat; }
.salon-thumb.on { border-color: var(--gold2,#D4924A); }
.salon-detail-info { padding: clamp(1.2rem,3vw,2rem); overflow-y: auto; }
.salon-detail-info h2 { font-family: 'Cormorant', serif; font-weight: 400; font-size: clamp(1.7rem,3vw,2.2rem); margin: 0 0 .3rem; }
.salon-detail-price { font-size: 1.2rem; font-weight: 600; color: var(--gold,#B8762A); margin-bottom: 1rem; }
.salon-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.salon-facts li { font-size: .9rem; color: var(--ink2,#2E2A22); padding-left: 1.1rem; position: relative; }
.salon-facts li::before { content: '—'; position: absolute; left: 0; color: var(--gold,#B8762A); }
.salon-detail-desc { font-size: .92rem; line-height: 1.55; color: var(--ink2,#2E2A22); margin: 0 0 1.4rem; font-weight: 300; }
.salon-detail-cta { display: flex; flex-direction: column; gap: .55rem; }
.salon-detail-cta .salon-btn { justify-content: center; color: var(--ink,#18150F); background: var(--bg2,#F1EDE4); border-color: var(--bg3,#E8E0D3); }
.salon-detail-cta .salon-btn--gold { color: #fff; background: linear-gradient(135deg, var(--gold,#B8762A), var(--gold2,#D4924A)); border-color: transparent; }

@media (max-width: 600px) {
  .salon-card { width: clamp(258px, 78vw, 360px); }
  .salon-detail-box { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .salon-stage { min-height: clamp(250px, 40vh, 380px); }
  .salon-dots { padding-bottom: 4.7rem; }            /* reserve bottom band so the companion never covers the CTA/dots */
  .salon-companion { left: .8rem; right: auto; bottom: .8rem; max-width: calc(100vw - 1.6rem); padding: .45rem .55rem; gap: .5rem; }
  .salon-companion-txt { display: none; }
  .salon-ava, .salon-ava img, .salon-ava-mono { width: 34px; height: 34px; }
  .salon-ask { font-size: .76rem; padding: 0 .75rem; }

  /* sticky header so «← На главную» stays visible (Safari toolbar hid the absolute one) */
  .salon-head { position: sticky; top: 0; z-index: 12; gap: .55rem;
    padding: calc(env(safe-area-inset-top, 0px) + .7rem) .9rem .55rem;
    background: linear-gradient(180deg, rgba(26,20,13,.7) 0%, rgba(26,20,13,.25) 70%, rgba(26,20,13,0) 100%); }
  .salon-back { position: static; align-self: flex-start; }
  .salon-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) { .salon-card { transition: none; } .salon-detail-box { animation: none; } }

/* On the salon, the companion bar's «Задать вопрос» IS the consultant entry —
   hide the global floating launcher so it doesn't duplicate / overlap the bar. */
body.salon-page .cvc-chat-launch { display: none !important; }
body.salon-page .cvc-chat-teaser { display: none !important; }
