﻿/* Конфигуратор межкомнатных дверей (interior.html). Цвета и шрифты — из style.css (дизайн-система Yuvam). */
body.konf { padding-bottom: 0; }
body.konf .wa-fab { display: none; }           /* своя кнопка WhatsApp в итоге */
body.kf-lock { overflow: hidden; }

.kf { max-width: 1100px; margin: 0 auto; }
.kf-stage { position: relative; height: min(56vh, 480px); min-height: 330px; background: #e6ddd0; overflow: hidden; }
#kfCanvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.kf-title { position: absolute; left: 16px; top: 14px; pointer-events: none; }
.kf-title h1 { margin: 0; font-family: var(--f-display); font-size: 1rem; line-height: 1.15; color: var(--ink); }
.kf-color { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kf-kicker { font-size: .66rem; font-weight: 600; letter-spacing: .24em; color: var(--accent); text-transform: uppercase; }
.kf-inroom { position: absolute; right: 12px; top: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 600; box-shadow: 0 4px 14px rgba(74, 63, 57, .16); cursor: pointer; }

.kf-panel { position: relative; margin-top: -14px; padding: 10px 16px 18px; background: #FBF8F3; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.kf-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kf-tabs button { min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.kf-tabs button[aria-selected="true"] { color: var(--ink); border-bottom: 2px solid var(--brass); }
.kf-pane { min-height: 178px; display: flex; flex-direction: column; gap: 12px; }

.kf-seg { display: flex; gap: 8px; }
.kf-seg button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #CBBFB3; background: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.kf-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.kf-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.kf-strip::-webkit-scrollbar { display: none; }
.kf-door { flex: 0 0 auto; scroll-snap-align: center; width: 72px; padding: 4px; border: 2px solid transparent; border-radius: var(--radius); background: #fff; cursor: pointer; text-align: center; }
.kf-door img { display: block; width: 48px; height: 120px; margin: 0 auto; object-fit: cover; }
.kf-door span { display: block; margin-top: 4px; font-size: .64rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.kf-door.is-on { border-color: var(--brass); }

.kf-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kf-sw { padding: 0; border: 0; background: none; cursor: pointer; font-size: .64rem; font-weight: 600; line-height: 1.2; color: var(--ink); text-align: center; }
.kf-sw i { display: block; height: 46px; border-radius: var(--radius); box-shadow: 0 0 0 1px #D8CEC3; margin: 2px 2px 4px; }
.kf-sw.is-on i { box-shadow: 0 0 0 2px var(--brass); }
.kf-grid5--ral .kf-sw i { height: 38px; }
.kf-more { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border: 1px solid #CBBFB3; border-radius: var(--radius); background: #fff; font-size: .84rem; font-weight: 600; cursor: pointer; }
.kf-dots { display: flex; gap: 3px; }
.kf-dots i { width: 12px; height: 12px; border-radius: 50%; }

.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #CBBFB3; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.kf-chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.kf-chip--sq i { border-radius: 3px; }
.kf-chip span { white-space: nowrap; }
.kf-chip.is-on { border: 2px solid var(--brass); padding: 0 11px; }
.kf-cs-ico { width: 14px !important; height: 22px !important; border-radius: 1px !important; box-shadow: none !important; border: 3px solid #cfc6bb; border-bottom: 0; background: #fff !important; position: relative; }
.kf-cs-ico--std { border-color: #a99d91; background: repeating-linear-gradient(90deg, transparent 0 1px, transparent 1px 2px) !important; }
.kf-cs-ico--std::after, .kf-cs-ico--base::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 0; height: 5px; border-left: 4px solid #8f8377; border-right: 4px solid #8f8377; }
.kf-cr-ico { width: 22px !important; height: 12px !important; border-radius: 1px !important; box-shadow: none !important; background: linear-gradient(180deg, #8f8377 0 22%, #cfc6bb 22% 78%, #8f8377 78%) !important; }
.kf-cr-ico--none { background: none !important; border: 1.5px dashed #b5aa9e; }
.kf-cr-ico--ribbed { background: repeating-linear-gradient(90deg, #a99d91 0 2px, #e4dcd2 2px 4px) !important; border-top: 3px solid #8f8377; border-bottom: 3px solid #8f8377; }
.kf-cr-ico--lines { background: linear-gradient(180deg, #8f8377 0 22%, #e4dcd2 22% 40%, #8f8377 40% 48%, #e4dcd2 48% 60%, #8f8377 60% 68%, #e4dcd2 68% 78%, #8f8377 78%) !important; }
.kf-lay-ico { width: 14px !important; height: 22px !important; border-radius: 2px !important; background: linear-gradient(135deg, #eef1f0, #cfd5d6); box-shadow: 0 0 0 1.5px var(--ink) !important; }
.kf-lay-ico--6 { background: linear-gradient(90deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), linear-gradient(0deg, transparent 31%, var(--ink) 31% 36%, transparent 36% 64%, var(--ink) 64% 69%, transparent 69%), linear-gradient(135deg, #eef1f0, #cfd5d6); }
.kf-lay-ico--8 { background: linear-gradient(90deg, transparent 45%, var(--ink) 45% 55%, transparent 55%), linear-gradient(0deg, transparent 23%, var(--ink) 23% 27%, transparent 27% 48%, var(--ink) 48% 52%, transparent 52% 73%, var(--ink) 73% 77%, transparent 77%), linear-gradient(135deg, #eef1f0, #cfd5d6); }
.kf-note { margin: 0; font-size: .86rem; color: var(--muted); }

.kf-photo { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1.5px solid var(--brass); border-radius: var(--radius); background: #fff; cursor: pointer; }
.kf-photo svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kf-photo b { display: block; font-size: .9rem; }
.kf-photo small { font-size: .72rem; color: var(--muted); }
.kf-walls { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-dot { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; box-shadow: 0 0 0 1px #D8CEC3; cursor: pointer; }
.kf-dot.is-on { box-shadow: 0 0 0 2px var(--brass); }
.kf-size { display: flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 600; }
.kf-size input { flex: 1; accent-color: var(--accent); }

.kf-trust { margin: 0; font-size: .72rem; color: var(--accent); text-align: center; }
.kf-next { width: 100%; min-height: 50px; justify-content: center; font-weight: 700; }

.kf-lux { margin: 0; padding: 10px 12px; border: 1px solid var(--brass); border-radius: var(--radius); background: #fff; font-size: .8rem; line-height: 1.5; }

/* под конфигуратором: Premium / Lüks и двери любой сложности */
.kf-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0 28px; }
.kf-level { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kf-level--lux { border: 1.5px solid var(--brass); }
.kf-level ul, .kf-any { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.kf-level li, .kf-any li { position: relative; padding-left: 20px; }
.kf-level li::before, .kf-any li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.kf-level p { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.kf-any { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 12px 0 20px; }
.kf-any__h { margin-top: 28px; }
.kf-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.kf-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kf-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--surface-2, rgba(0,0,0,.04)); border-radius: var(--radius); }
.kf-steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brass); color: #fff; display: grid; place-items: center; font-size: .85em; }
.kf-steps strong { display: block; font-size: .95em; }
.kf-steps small { display: block; margin-top: 2px; opacity: .75; line-height: 1.3; }
@media (min-width: 720px) { .kf-steps { grid-template-columns: repeat(4, 1fr); } }
.kf-works--sh { grid-template-columns: repeat(3, 1fr); }
.kf-works--sh img { aspect-ratio: 1; }
.kf-shaddr { margin: 14px 0 10px; color: var(--ink-soft, inherit); }
.kf-shbtn { display: flex; flex-wrap: wrap; gap: 10px; }
.kf-shig { margin-top: 12px; font-size: .9em; }
.kf-works img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.kf-own { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 1.5px dashed var(--brass); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.kf-own svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kf-own b { display: block; font-size: .88rem; }
.kf-own small { font-size: .72rem; color: var(--muted); }

/* итог */
.kf-sum { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #FBF8F3; padding: 0 16px 24px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.kf-sum[hidden] { display: none; }
.kf-sum__top { position: sticky; top: 0; margin: 0 -16px; padding: 0 16px; height: 52px; display: flex; align-items: center; background: var(--accent); }
.kf-back { border: 0; background: none; color: var(--cream); font-size: .86rem; font-weight: 600; min-height: 44px; cursor: pointer; }
.kf-sum__row { display: flex; gap: 14px; }
.kf-sum__row img { width: 132px; height: 210px; object-fit: cover; border-radius: var(--radius); flex: none; background: #e6ddd0; }
.kf-sum__row h2 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.4rem; }
.kf-sum dl { margin: 0; font-size: .84rem; display: grid; gap: 4px; }
.kf-sum dl div { display: flex; gap: 4px; }
.kf-sum dt { color: var(--muted); }
.kf-sum dd { margin: 0; }
.kf-sum__trust { margin: 10px 0 0; font-size: .7rem; line-height: 1.5; color: var(--muted); }
.kf-bubble { align-self: flex-end; max-width: 300px; white-space: pre-line; background: #E7F3DE; color: #2F3B28; border-radius: 10px 10px 2px 10px; padding: 10px 12px; font-size: .78rem; line-height: 1.5; }
.kf-bubble-note { margin-top: -8px; text-align: right; font-size: .7rem; color: var(--muted); }
.kf-sum__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.kf-send { justify-content: center; min-height: 52px; font-weight: 700; text-align: center; }
.kf-share { min-height: 48px; border: 1.5px solid var(--brass); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; }
.kf-help { text-align: center; font-size: .84rem; font-weight: 600; padding: 8px 0; color: var(--ink); }

@media (min-width: 900px) {
  .kf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding: 24px 16px; }
  .kf-stage { height: 620px; border-radius: var(--radius); }
  .kf-panel { margin-top: 0; border-radius: var(--radius); }
  .kf-sum { inset: 40px auto auto 50%; transform: translateX(-50%); width: 520px; max-height: calc(100vh - 80px); border-radius: var(--radius); box-shadow: var(--shadow); }
}
