/*
Theme Name: SIMFI Шкафы-купе
Template: woodmart
Version: 1.7.0
Description: Оформление WoodMart Architecture Studio для шкафов-купе.
Text Domain: simfi-kupe
*/
.kupe-shell { max-width: 1200px; margin: auto; padding: clamp(24px, 5vw, 70px) 20px; }
.kupe-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 30px; }
.kupe-nav a { text-decoration: underline; text-underline-offset: 4px; }
.kupe-masthead { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 75px); align-items: center; padding: clamp(24px, 5vw, 70px); background: #f2eee7; }
.kupe-masthead h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.03; margin-bottom: 18px; }
.kupe-masthead img { width: 100%; display: block; }
.kupe-heading { margin: 44px 0 18px; }
.kupe-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kupe-card { display: block; padding: 22px; border: 1px solid #e1dbd1; background: #fbfaf7; }
.kupe-card strong { display: block; padding-top: 10px; font-size: 20px; }
.kupe-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; }
.kupe-cover { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3; }
.kupe-cover > img, .kupe-cover > picture { display: block; width: 100%; height: 100%; object-fit: contain; }
.kupe-form { margin: 24px 0; max-width: 560px; }
.kupe-form label { display: block; margin-bottom: 12px; }
.kupe-form select { width: 100%; }
.kupe-price-slot { min-height: 81px; }
.kupe-price {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  min-height: 81px; padding: 8px 14px; border: 1px solid #e4dbd2;
  background: #f8f3eb; color: #29231f;
}
.kupe-price-copy { display: flex; flex-direction: column; line-height: 1.2; }
.kupe-price-title { font-size: 14px; font-weight: 600; }
.kupe-price [data-kupe-price-status] { font-size: 12px; color: #615449; }
.kupe-price output { font-size: clamp(19px, 2.25vw, 27px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kupe-price output[aria-busy="true"] { opacity: .65; }
.kupe-price-terms {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2px 12px; color: #615449; font-size: 12px; line-height: 1.35;
}
.kupe-price-terms strong { margin-inline-start: 4px; color: #29231f; white-space: nowrap; }
.kupe-price output[aria-busy="true"] + .kupe-price-terms { opacity: .65; }
.kupe-price-terms[hidden], .kupe-price-docked .kupe-price-services { display: none; }
.kupe-price-docked {
  position: fixed; z-index: 10; right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom)); width: min(270px, calc(100% - 24px));
  border-radius: 8px; box-shadow: 0 4px 18px #24201a24; pointer-events: none;
  min-height: 0;
}
.kupe-share { margin-top: 6px; font-size: 13px; }
.kupe-share a, .kupe-width-picker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.kupe-share [role="status"]:not(:empty) { display: block; }
.kupe-share input { display: block; margin-top: 4px; }
.kupe-share input[hidden] { display: none; }
.kupe-request-form { display: grid; gap: 10px; }
.kupe-request-form label, .kupe-request-status { margin: 0; }
.kupe-request-contact input { display: block; margin-top: 4px; }
.kupe-request-consent { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.kupe-request-consent input { flex-shrink: 0; }
.kupe-request-consent a, .kupe-request-call { text-decoration: underline; text-underline-offset: 3px; }
.kupe-request-call { display: inline-block; margin-top: 8px; }
.kupe-request-confirmation { padding: 10px 12px; background: #edf5e7; color: #29441c; }
.kupe-request-status:not([hidden]) { color: #8b3020; }
.kupe-form > .kupe-price-slot { margin-bottom: 12px; }
.kupe-form button { margin: 10px 0; }
.kupe-filling { margin: 0 0 18px; }
.kupe-filling[hidden] { display: none; }
.kupe-decor-sample { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; font-size: 13px; }
.kupe-decor-sample [hidden] { display: none; }
.kupe-decor-sample img { width: 100px; height: 76px; object-fit: cover; border: 1px solid #aaa; }
.kupe-facade { display: flex; width: min(100%, 270px); height: 135px; margin: 10px 0 18px; border: 6px solid transparent; background: linear-gradient(var(--kupe-profile),var(--kupe-profile)) padding-box, var(--kupe-texture, linear-gradient(#dedede,#dedede)) center / cover border-box; gap: 3px; padding: 3px; }
.kupe-facade i { display: block; flex: 1; background: var(--kupe-texture, repeating-linear-gradient(135deg,#e9e9e9 0 4px,#dcdcdc 4px 5px)) center / cover; border: 2px solid var(--kupe-profile); box-shadow: 1px 0 1px #0004; }
.kupe-facade i[data-material="ldsp"]:nth-child(1) { background-position: 12% 30%; }
.kupe-facade i[data-material="ldsp"]:nth-child(2) { background-position: 78% 68%; }
.kupe-facade i[data-material="ldsp"]:nth-child(3) { background-position: 40% 22%; }
.kupe-facade i[data-material="ldsp"]:nth-child(4) { background-position: 92% 72%; }
.kupe-facade i[data-material="mirror"] { background: linear-gradient(125deg, #a2a9b0, #f3f3f0 48%, #bdc5c9); }
.kupe-facade i[data-material="graphite"] { background: linear-gradient(125deg, #666b72, #9b9b98 48%, #787c81); }
.kupe-facade.sv-kupe-thumb {
    width: 100%; height: clamp(64px, 9vw, 88px); margin: 0; padding: 1px;
    gap: 1px; border: 4px solid transparent; border-right-width: 8px;
    box-shadow: 0 1px 3px #2a261f38;
}
.kupe-facade.sv-kupe-thumb i { min-width: 0; border-width: 1px; box-shadow: none; }
.kupe-live-view { background: #f5f1ed; }
.kupe-live-switch { display: flex; align-items: center; gap: 5px; padding: 7px; background: #fff; border: 1px solid #e4dbd2; }
.kupe-live-view button { min-height: 36px; padding: 0 14px; border: 0; background: transparent; color: #332b23; font-weight: 600; text-transform: none; }
.kupe-live-view button[aria-pressed="true"] { background: #eedbca; }
.kupe-live-view button:focus-visible, .kupe-live-interior a:focus-visible { outline: 2px solid #8c5835; outline-offset: 1px; }
.kupe-live-switch button:disabled { opacity: .5; }
.kupe-live-stage { aspect-ratio: 4 / 3; background: #fff; }
.kupe-live-face, .kupe-live-filling { height: 100%; }
.kupe-live-face { position: relative; }
.kupe-live-face canvas, .kupe-studio-still, .kupe-studio-still > svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.kupe-live-guide { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.kupe-door-interactive { touch-action: pan-y pinch-zoom; user-select: none; }
.kupe-door-hover { cursor: grab; }
.kupe-door-dragging { cursor: grabbing; }
.kupe-live-drag-tip { margin: 0; padding: 5px 10px; background: #fff; color: #574d44; font-size: 12px; }
.kupe-live-filling { display: grid; place-items: center; background: white; }
.kupe-live-filling a, .kupe-filling a { text-decoration: underline; }
.kupe-live-interior { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; padding: 5px 8px; background: white; border: 1px solid #e4dbd2; }
.kupe-live-zones { display: flex; gap: 2px; }
.kupe-live-zones button { min-height: 40px; padding-inline: clamp(7px, 2vw, 12px); }
.kupe-live-interior a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; color: #574435; text-decoration: underline; }
.kupe-live-interior small { width: 100%; color: #574d44; font-size: 12px; line-height: 1.25; }
.kupe-live-view [hidden] { display: none; }
html:has(.kupe-scheme-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.kupe-scheme-dialog {
  inset: 0; margin: auto; padding: 0; width: min(1150px, calc(100% - 24px));
  height: min(900px, calc(100dvh - 24px)); max-width: none; max-height: none;
  overflow: hidden; border: 1px solid #ddd8cf; border-radius: 12px;
  background: #f4f4ee; box-shadow: 0 18px 60px #18140e55;
}
.kupe-scheme-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.kupe-scheme-dialog::backdrop { background: #211d18a0; }
.kupe-scheme-toolbar {
  display: flex; justify-content: flex-end; padding: 6px 10px;
  background: #fff; border-bottom: 1px solid #ddd8cf;
}
.kupe-scheme-toolbar button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 0 10px; background: #f3efe9; color: #332b23; border-radius: 5px; text-transform: none;
}
.kupe-scheme-toolbar span { font-size: 20px; line-height: 1; }
.kupe-scheme-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-height: 650px) {
  .product-images:has(.kupe-live-view) { position: sticky; top: calc(var(--wd-admin-bar-h, 0px) + 68px); align-self: start; z-index: 3; }
  .kupe-live-stage { max-height: calc(100svh - 300px); }
}
@media (max-width: 767px) and (min-height: 650px) {
  .kupe-live-stage { max-height: min(43svh, 355px); }
}
@media (max-width: 700px) { .kupe-masthead, .kupe-cards { grid-template-columns: 1fr; } }

.kupe-wordmark { color: var(--wd-title-color, #242424); font-family: var(--wd-title-font); font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; white-space: nowrap; }
.kupe-header-picks { white-space: nowrap; }
.kupe-architecture .wd-slider { background: #e9dfd6; }
.kupe-architecture .wd-slide-bg::after { position: absolute; inset: 0; background: linear-gradient(90deg,#e9dfd6 0%,transparent 48%); content: ""; pointer-events: none; }
.kupe-architecture .wd-slide-bg img { object-fit: contain; object-position: 95% 50%; }
.kupe-architecture .wd-slide-bg:has(.kupe-cover) { container-type: size; }
.kupe-architecture .wd-slide-bg > .kupe-cover {
  position: absolute; width: min(100%, 133.333333cqh);
  left: 95%; top: 50%; transform: translate(-95%, -50%);
}
.kupe-architecture .wd-slide-container .wp-block-wd-title { margin-block: 0 14px; }
.kupe-architecture .wd-slide-container .wp-block-wd-button { align-self: flex-start; background: #ead2bd; color: #2c241c; }
.kupe-architecture .wd-slide-container .kupe-slide-copy { color: #47403a; max-width: 320px; }
.kupe-demo {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start; gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 70px) max(20px, calc((100% - 1220px) / 2));
  background: #f2eee7;
}
.kupe-demo-copy { align-self: start; padding-top: clamp(12px, 7vw, 90px); }
.kupe-demo-copy h1 { margin: 0 0 16px; font-size: clamp(34px, 4.4vw, 61px); line-height: 1.04; }
.kupe-demo-copy p { color: #47403a; max-width: 31ch; margin: 0 0 22px; }
.kupe-demo .kupe-live-stage { max-height: none; }
.kupe-demo .kupe-live-view { border: 1px solid #dfd7cd; }
.kupe-demo .kupe-live-switch { justify-content: center; flex-wrap: wrap; gap: 6px; border: 0; background: #fbf8f4; }
.kupe-demo .kupe-live-switch button { background: #473526; color: #fff; min-height: 42px; }
.kupe-demo .kupe-demo-link { background: #f1e7dc; color: #473526; min-height: 42px; text-transform: none; }
.kupe-demo .kupe-demo-link:hover, .kupe-demo .kupe-demo-link:focus-visible { background: #ead2bd; color: #35271c; }
.kupe-compare-tip { margin: 14px 0 0; color: #615449; }
.kupe-compare { margin: 16px 0; border: 1px solid #e1dbd1; background: #fff; }
.kupe-compare summary { padding: 12px 16px; font-weight: 650; cursor: pointer; }
.kupe-compare summary:focus-visible { outline: 2px solid #8c5835; outline-offset: -2px; }
.kupe-compare-pickers { display: grid; gap: 8px 14px; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px; }
.kupe-compare-pickers[hidden] { display: none; }
.kupe-compare-pickers label { min-width: 0; }
.kupe-compare-delta { margin: 0; padding: 8px 12px; background: #f2eee7; color: #332b23; font-weight: 600; }
.kupe-compare-table { width: 100%; table-layout: fixed; margin: 0; color: #332b23; }
.kupe-compare-table th, .kupe-compare-table td { padding: 8px; overflow-wrap: anywhere; font-size: clamp(12px,1.5vw,14px); }
.kupe-compare-table thead th:first-child { width: 27%; }
.kupe-compare-table a { text-decoration: underline; text-underline-offset: 2px; }
.kupe-compare-price td { font-weight: 700; }
@media (max-width: 640px) {
  .kupe-demo { grid-template-columns: 1fr; gap: 18px; }
  .kupe-demo-copy { padding-top: 0; }
  .kupe-demo-copy h1 { font-size: clamp(30px,8vw,40px); }
  .kupe-demo-copy p { margin-bottom: 0; }
  .kupe-compare-pickers { grid-template-columns: 1fr; }
}
.kupe-architecture .kupe-cards { gap: clamp(16px, 2.5vw, 36px); }
.kupe-width-picker { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.kupe-width-picker label { font-size: 14px; font-weight: 600; margin: 0; }
.kupe-width-picker input { display: block; width: min(100%, 190px); margin-top: 4px; background: #fff; font-weight: 400; }
.kupe-width-picker a { align-self: end; padding-bottom: 10px; }
.kupe-catalog-status:empty, .kupe-catalog [hidden] { display: none; }
.kupe-catalog-item { background: #fff; }
.kupe-catalog-size { display: block; padding: 0 20px 18px; color: #554d46; font-size: 13px; }
.kupe-catalog-size select { width: 100%; margin-top: 4px; font-size: 14px; }
.kupe-architecture .kupe-card { padding: 0; border: none; background: white; }
.kupe-architecture .kupe-card img { display: block; }
.kupe-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: #242424; }
.kupe-card-caption strong { padding: 0; margin-bottom: 4px; font-weight: 600; }
.kupe-card-caption > div > span { color: #554d46; }
.kupe-card-arrow { color: #473526; background: #e9c7a9; display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; font-size: 18px; }
.kupe-architecture #catalog, .kupe-architecture #measure { scroll-margin-top: 110px; }
@media (max-width: 768px) {
  .kupe-architecture .wd-slide-bg img { object-position: center top; }
  .kupe-architecture .wd-slide-bg > .kupe-cover { left: 50%; top: 0; transform: translateX(-50%); }
  .kupe-architecture .wd-slide-bg::after { background: linear-gradient(0deg,#e9dfd6 3%,transparent 60%); }
  .kupe-architecture .wd-slide-container .wp-block-wd-title { font-size: clamp(27px, 6vw, 38px); }
}
