/* Примерка пола в интерьере — in the site's tokens: hairline boxes, square swatches, ink selection. */
.pk { padding: 0 var(--pad); margin-top: 24px; }
.pk-app { display: grid; grid-template-columns: minmax(0, 1fr) calc(7 * var(--col) + 6 * var(--gap)); gap: var(--gap); align-items: start; }
.pk-stage { position: sticky; top: calc(var(--top) + var(--hh) + 20px); min-width: 0; }
.pk-frame { position: relative; aspect-ratio: 3 / 2; max-height: calc(100vh - var(--top) - var(--hh) - 150px);max-height: calc(100svh - var(--top) - var(--hh) - 150px); width: 100%; background: var(--stone); overflow: hidden; border: 1px solid var(--ink); }
.pk-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pk-canvas:active { cursor: grabbing; }
.pk-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--ink-3); font: 700 10px/14px var(--f-d); letter-spacing: 1px; text-transform: uppercase; background: var(--paper-2); }
.pk-badge { position: absolute; left: 0; top: 0; padding: 6px 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); font: 700 10px/12px var(--f-d); letter-spacing: 1px; text-transform: uppercase; pointer-events: none; }
.pk-caption { position: absolute; bottom: 14px; font: 500 22px/1.1 var(--f-d); text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 14px rgb(0 0 0 / 0.4); pointer-events: none; }
.pk-caption-a { left: 16px; } .pk-caption-b { right: 16px; }
.pk-hint { margin-top: 8px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font: 400 12px/16px var(--f-t); color: var(--ink-3); }
.pk-actions { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--ink); }
.pk-actions a, .pk-actions button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; font: 700 10px/12px var(--f-d); letter-spacing: 1px; text-transform: uppercase; text-align: center; overflow: hidden; isolation: isolate; transition: color 0.3s var(--ease); }
.pk-actions > * + * { border-left: 1px solid var(--ink); }
.pk-actions a::after, .pk-actions button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.pk-actions a:hover, .pk-actions button:hover { color: var(--paper); }
.pk-actions a:hover::after, .pk-actions button:hover::after { transform: none; }
.pk-actions .pk-primary { background: var(--ink); color: var(--paper); }
.pk-actions .pk-primary::after { background: var(--hover-ink); }
.pk-actions button[aria-pressed="true"] { background: var(--paper-2); }
.pk-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.pk-panel { display: grid; border: 1px solid var(--ink); }
.pk-group { padding: 14px 15px 16px; }
.pk-group + .pk-group { border-top: 1px solid var(--ink); }
.pk-group h2 { display: flex; justify-content: space-between; margin: 0 0 10px; font: 700 10px/12px var(--f-d); letter-spacing: 1px; text-transform: uppercase; }
.pk-group h2 span { color: var(--ink-3); font-weight: 400; }
.pk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { min-height: 32px; padding: 7px 11px; border: 1px solid var(--ink); background: var(--paper); font: 400 12px/16px var(--f-t); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.pk-chip:hover { background: var(--paper-2); }
.pk-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pk-chip:disabled { opacity: 0.35; cursor: not-allowed; }
.pk-decors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 4px 4px 0 0; margin-top: 10px; }
.pk-decor { position: relative; padding: 0; text-align: left; }
.pk-decor img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pk-decor span { display: block; margin-top: 4px; overflow-wrap: anywhere; hyphens: auto; font: 400 10px/1.25 var(--f-t); color: var(--ink-3); }
.pk-decor[aria-pressed="true"] img { outline: 1px solid var(--ink); outline-offset: 2px; }
.pk-decor[aria-pressed="true"] span { color: var(--ink); font-weight: 700; }
.pk-layouts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.pk-layout { display: flex; gap: 10px; align-items: center; padding: 9px; text-align: left; font: 400 12px/15px var(--f-t); }
.pk-layout:nth-child(even) { border-left: 1px solid var(--ink); }
.pk-layout:nth-child(n + 3) { border-top: 1px solid var(--ink); }
.pk-layout small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.pk-layout[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pk-layout[aria-pressed="true"] small { color: var(--paper); opacity: 0.75; }
.pk-ico { flex: none; width: 28px; height: 28px; background-size: cover; border: 1px solid currentColor; }
.pk-ico-plank { background-image: repeating-linear-gradient(0deg, #c9ad86 0 6px, #8a6c4c 6px 7px); }
.pk-ico-english { background-image: repeating-linear-gradient(45deg, #c9ad86 0 5px, #8a6c4c 5px 6px), linear-gradient(#c9ad86, #c9ad86); background-blend-mode: multiply; }
.pk-ico-italian { background-image: repeating-linear-gradient(45deg, #c9ad86 0 8px, #8a6c4c 8px 9px); }
.pk-ico-french { background-image: linear-gradient(135deg, #c9ad86 50%, #b39571 50%); }
.pk-turn, .pk-dirs { margin-top: 8px; }
.pk-swatch { width: 32px; height: 32px; padding: 0; border: 1px solid var(--ink); background: var(--c); cursor: pointer; }
.pk-swatch[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 3px; }
.pk-swatch-photo { background: var(--c); }
.pk-slots { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; border: 1px solid var(--ink); }
.pk-slots button { padding: 9px 10px; text-align: left; font: 400 11px/14px var(--f-t); }
.pk-slots button + button { border-left: 1px solid var(--ink); }
.pk-slots button b { display: block; font: 700 9px/12px var(--f-d); letter-spacing: 1px; color: var(--ink-3); text-transform: uppercase; }
.pk-slots button[aria-pressed="true"] { background: var(--paper-2); }
.pk-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pk-room { display: grid; grid-template-columns: 60px 1fr; gap: 9px; align-items: center; padding: 5px; border: 1px solid var(--line-l); text-align: left; font: 400 12px/15px var(--f-t); }
.pk-room img, .pk-room-3d { width: 60px; height: 40px; object-fit: cover; display: block; }
.pk-room-3d { background: linear-gradient(160deg, #e9e5dd 0 55%, #b69a78 55%); }
.pk-room small { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.pk-room[aria-pressed="true"] { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: -2px; }
.pk-room-opts { display: grid; gap: 8px; margin: 4px 0 10px; }
.pk-opt-row { align-items: center; }
.pk-opt-title { width: 64px; font: 700 9px/12px var(--f-d); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.pk-grades { margin-top: 2px; }
.pk-note { padding: 14px 15px; border-top: 1px solid var(--ink); font: 400 11px/16px var(--f-t); color: var(--ink-3); }
.pk-no-gl .pk-panel { opacity: 0.4; pointer-events: none; }
@media (max-width: 1023px) {
  .pk { margin-top: 30px; }
  .pk-app { grid-template-columns: 1fr; }
  .pk-stage { position: relative; top: 0; }
  .pk-frame { max-height: none; }
  .pk-decors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pk-actions { grid-template-columns: 1fr 1fr; }
  .pk-actions > :first-child { grid-column: 1 / -1; }
  .pk-actions > * + * { border-left: 0; border-top: 1px solid var(--ink); }
  .pk-actions > :nth-child(odd):not(:first-child) { border-left: 1px solid var(--ink); }
}
@media (max-width: 620px) { .pk-frame { aspect-ratio: 4 / 5; } .pk-decors { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pk-caption { font-size: 16px; } .pk-rooms { grid-template-columns: 1fr; } }
@media (min-width: 1024px) and (max-width: 1279px) { .pk-app { grid-template-columns: minmax(0, 1fr) 340px; } .pk-actions { grid-template-columns: 1fr 1fr 1fr; } .pk-actions > :nth-child(n + 4) { border-top: 1px solid var(--ink); } .pk-actions > :nth-child(4) { border-left: 0; } }
