:root { --brand: #236557; --ink: #202927; --muted: #667570; --line: #dbe3df; --paper: #fff; --surface: #f4f7f5; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html, body { min-height: 100%; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; }
button, input, textarea { font: inherit; }
button, label.choice, label.layout-choice { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
input, textarea { border: 1px solid #cad7d0; border-radius: 5px; padding: 12px; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
input:focus-visible, textarea:focus-visible, button:focus-visible, .choice:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.studio-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; gap: 20px; border-bottom: 1px solid var(--line); }
.studio-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.studio-brand img { width: 48px; height: 48px; object-fit: contain; }
.studio-brand b { display: block; font-size: 22px; overflow-wrap: anywhere; }
.studio-brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
#modeLabel { color: var(--muted); font-size: 12px; text-align: right; }
.studio-main { max-width: 1040px; margin: 0 auto; padding: 25px 32px 36px; }
#loadingState { padding: 70px 0; color: var(--muted); }
.step-nav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.step-nav button { flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 10px 9px 16px; display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.step-nav button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: bold; }
.step-nav button span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.step-nav button.active span { background: var(--brand); color: white; border-color: var(--brand); }
.studio-progress { display: flex; align-items: center; gap: 20px; margin-bottom: 35px; }
#stepCounter { color: var(--muted); font-size: 12px; white-space: nowrap; }
progress { appearance: none; width: 100%; height: 4px; border: 0; background: var(--surface); }
progress::-webkit-progress-bar { background: var(--surface); }
progress::-webkit-progress-value { background: var(--brand); }
.studio-step > header { margin-bottom: 30px; }
.eyebrow { font-size: 10px; font-weight: bold; color: var(--brand); }
h1 { font-size: 32px; line-height: 1.2; margin: 12px 0 0; }
h2, legend { font-size: 16px; font-weight: bold; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
fieldset + fieldset { padding-top: 26px; border-top: 1px solid var(--line); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.choice { position: relative; display: flex; align-items: center; min-width: 0; border: 2px solid var(--line); border-radius: 6px; min-height: 66px; background: #fff; cursor: pointer; overflow: hidden; }
.choice:hover { border-color: #8ea99c; }
.choice.selected { border: 2px solid var(--brand); background: #eef5f1; }
.choice input { appearance: auto; position: absolute; width: 17px; height: 17px; top: 16px; right: 14px; accent-color: var(--brand); }
.choice-label { padding: 20px 38px 20px 16px; font-size: 14px; font-weight: bold; overflow-wrap: anywhere; line-height: 1.4; }
.choice-label small { display: block; font-size: 11px; line-height: 1.5; font-weight: normal; color: var(--muted); margin-top: 5px; }
.with-images { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.with-images .choice { display: block; }
.with-images .choice img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; }
.with-images .choice input { background: #fff; }
.with-images .choice-label { display: block; padding: 16px 14px; min-height: 84px; }
#wallChoices .with-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#wallChoices .choice img { aspect-ratio: 1.8; }
#worktopChoices .with-images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); min-height: 46px; padding: 12px 20px; font-size: 13px; font-weight: bold; line-height: 1.4; }
.studio-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.studio-btn.primary { background: var(--brand); border-color: var(--brand); color: white; }
.studio-footer { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 38px; padding-top: 24px; }
.form-error { background: #fff2ef; color: #963a2d; padding: 14px 16px; border-left: 3px solid #c46853; line-height: 1.5; margin: 20px 0 0; font-size: 13px; }
.layout-choices { display: flex; gap: 12px; margin-bottom: 24px; }
.layout-choice { flex: 1; border: 1px solid var(--line); border-radius: 5px; padding: 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.layout-choice:has(:checked) { background: #eef5f1; border-color: var(--brand); }
.layout-choice input { width: 17px; accent-color: var(--brand); }
.quick-plan-head, .quick-plan-row { display: grid; grid-template-columns: 65px repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.quick-plan-head { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 12px 0; }
.quick-plan-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.quick-plan-row label span { display: none; }
.quick-plan-row input { width: 100%; }
.plan-settings { display: flex; align-items: end; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.plan-settings label { font-size: 11px; color: var(--muted); max-width: 220px; }
.plan-settings input { margin-top: 8px; }
.saved-plan { border-top: 1px solid var(--line); padding-top: 20px; }
#frontChoices .choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#planMetrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#planMetrics div { padding: 16px 0; border-bottom: 1px solid var(--line); }
#planMetrics span { display: block; color: var(--muted); font-size: 11px; }
#planMetrics b { display: block; font-size: 22px; margin-top: 5px; }
.accessory-tabs { display: flex; gap: 6px; overflow: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.accessory-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.accessory-tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand); font-weight: bold; }
.accessory-quantity { display: block; max-width: 280px; font-size: 12px; color: var(--muted); }
.accessory-quantity input { margin-top: 8px; }
.rate-line { margin-top: 15px; font-size: 12px; color: var(--muted); }
.missing-rate { display: block; color: #9a592c; margin-top: 5px; }
.estimate-value { border-top: 2px solid var(--brand); border-bottom: 1px solid var(--line); padding: 22px 0; margin-bottom: 25px; }
.estimate-value span, .estimate-value small { display: block; color: var(--muted); font-size: 12px; }
.estimate-value strong { display: block; font-size: 30px; margin: 12px 0; overflow-wrap: anywhere; }
.estimate-empty { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: 14px; }
.estimate-warning { font-size: 12px; color: #945123; padding: 10px 0; line-height: 1.5; }
.estimate-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 20px 0; }
.estimate-table td, .estimate-table th { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.selection-summary { margin: 25px 0; }
.selection-summary > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.selection-summary dt { color: var(--muted); }
.selection-summary dd { margin: 0; font-weight: bold; overflow-wrap: anywhere; }
.contact-fields { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid label { color: var(--muted); font-size: 12px; }
.contact-grid input, .contact-grid textarea { margin-top: 8px; }
.contact-grid .wide { grid-column: 1 / -1; }
.consent { display: flex; gap: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 20px; }
.consent input { flex: 0 0 18px; width: 18px; margin-top: 5px; accent-color: var(--brand); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-state { padding: 60px 0; }
.success-state > svg { color: var(--brand); width: 42px; height: 42px; margin-bottom: 20px; }
.success-state p { color: var(--muted); line-height: 1.6; margin: 20px 0 30px; }
.planner-modal { display: none; position: fixed; inset: 0; z-index: 200; }
.planner-modal.active { display: flex; padding: 0 !important; background: #fff !important; }
.planner-modal .planner-modal-content { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.planner-modal .planner-shell::before { content: "Planer kuchni" !important; color: var(--ink) !important; }
.planner-modal .planner-shell::after { display: none !important; }
.planner-modal .planner-save-btn { border-radius: 5px !important; background: var(--brand) !important; display: flex; align-items: center; gap: 8px; }
.planner-modal svg { width: 18px; height: 18px; }
.planner-modal .planner-close { display: grid; place-items: center; border-radius: 5px !important; }
.planner-modal .room-card { border-radius: 6px !important; }
.planner-modal .planner-toolbar { border-radius: 6px !important; }
.planner-modal .planner-properties-panel { border-radius: 6px !important; }
.planner-history-controls { position: absolute; bottom: 24px; left: 24px; display: flex; gap: 8px; z-index: 55; }
.planner-history-controls button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.room-height-box label { display: flex; gap: 6px; align-items: center; font-size: 11px; }
.room-height-box input { width: 66px; padding: 7px; }
@media (max-width: 767px) {
  .studio-header { padding: 18px; }
  .studio-brand b { font-size: 19px; }
  #modeLabel { font-size: 10px; max-width: 90px; }
  .studio-main { padding: 20px 18px 28px; }
  .step-nav { margin-bottom: 20px; }
  .step-nav button { padding: 8px 9px 13px; }
  .studio-progress { margin-bottom: 27px; }
  h1 { font-size: 27px; }
  .choice-grid, .with-images, #frontChoices .choice-grid, #worktopChoices .with-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-label { padding: 18px 34px 18px 12px; font-size: 13px; }
  .with-images .choice-label { padding: 13px 10px; font-size: 12px; min-height: 84px; }
  .with-images .choice img { aspect-ratio: 1.1; }
  .layout-choices { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-plan-head { display: none; }
  .quick-plan-row { grid-template-columns: 1fr 1fr; }
  .quick-plan-row > b { grid-column: 1 / -1; }
  .quick-plan-row label span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
  .plan-settings { align-items: stretch; }
  .plan-settings label { max-width: none; width: 100%; }
  .plan-settings button { flex: 1; padding: 12px; }
  .saved-plan { grid-template-columns: minmax(0, 1fr); }
  #planMetrics { display: flex; justify-content: space-between; }
  .selection-summary > div { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; font-size: 12px; }
  .estimate-value strong { font-size: 25px; }
  .contact-grid { grid-template-columns: 1fr; }
  .studio-footer .studio-btn { padding: 12px 14px; }
  .studio-footer #submitRequest { min-width: 0; }
}
.estimate-variant { border-top: 1px solid #dce3df; padding: 20px 0; }
.estimate-variant h2 { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.planner-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.planner-modal .planner-modal-content { position: relative; width: 100%; height: 100%; overflow: hidden; }
.planner-ui-open { overflow: hidden; }
.planner-modal .planner-close { position: absolute; z-index: 2100; color: white; }
.planner-modal .planner-save-btn { position: absolute; z-index: 2100; color: white; border: 0; }
.planner-modal .planner-shell::before { display: none !important; }
.planner-modal[data-planner-mode="desktop"] .planner-toolbar-desktop { width: 62px; padding: 8px; top: 90px; left: 16px; bottom: 92px; }
.planner-modal[data-planner-mode="desktop"] .planner-toolbar-desktop .tool { width: 44px; min-height: 44px; padding: 10px; border-radius: 5px; justify-content: center; }
.planner-modal .planner-toolbar { background: #fff !important; border: 1px solid var(--line); box-shadow: none !important; }
.planner-modal .planner-toolbar .tool { color: var(--ink) !important; }
.planner-modal .planner-toolbar .tool.active { background: var(--brand) !important; color: white !important; box-shadow: none !important; }
.planner-modal .planner-toolbar .tool.active svg { color: white !important; }
.planner-modal .planner-view-switch { border-radius: 6px !important; box-shadow: none !important; }
.planner-modal .planner-view-switch-btn.active { background: var(--brand) !important; box-shadow: none !important; }
.planner-modal[data-planner-mode="desktop"] .planner-save-btn { box-shadow: none; }
.planner-modal .planner-history-controls { z-index: 2100; }
.planner-modal .planner-task-list { display: none !important; }
.planner-modal .planner-toolbar .tool svg { stroke: currentColor !important; }
.planner-modal .planner-3d-controls button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); }
.planner-modal .planner-3d-controls button.active { background: var(--brand); color: white; }
.planner-shell[data-planner-view="3d"] .planner-history-controls { display: none; }
@media (max-width: 767px) {
  .planner-modal .planner-history-controls { top: 18px; left: 14px; bottom: auto; }
  .planner-modal .planner-save-btn { box-shadow: none !important; }
}
