/* =====================================================================
   Ди Ен Ай Груп — обща визуална система
   Всички цветове, размери, радиуси и сенки идват от токените по-долу.
   ===================================================================== */
:root {
  /* фонове и повърхности */
  --bg: #F6F2EA;
  --panel: #FBF8F2;          /* светли ленти: горна лента, панел, футър */
  --card: #ffffff;           /* карти, полета, диалози */
  --surface-3: #EEEAE2;      /* писта на табове, неутрални чипове */
  --surface-hover: #F1EDE5;  /* hover на прозрачни бутони и връзки */
  --surface-disabled: #F2EFE9;

  /* текст и рамки */
  --ink: #1C211E;
  --ink-2: #3c4240;
  --muted: #5F665F;          /* ≥ 5:1 върху --bg */
  --line: #E4DED2;
  --line-strong: #CFC7B8;

  /* бранд */
  --accent: #1E3A2A;
  --accent-2: #3E6B4E;
  --accent-soft: #E3EBE4;
  --accent-ring: rgba(30, 58, 42, .16);
  --focus: rgba(62, 107, 78, .55);
  --wood: #B5834F;           /* само декоративно (лого, икони) */
  --wood-ink: #8A5F33;       /* текст в цвят дърво, ≥ 4.5:1 */
  --wood-soft: #F3E8DA;

  /* семантични състояния (значението не се променя) */
  --ok: #2f7d4f;      --ok-soft: #e4f2e9;      --ok-line: #c3e2cf;
  --warn: #9a4f1b;    --warn-soft: #f8ece2;    --warn-line: #efd2bd;
  --danger: #b3372b;  --danger-soft: #fbe9e7;  --danger-line: #f0c4be;
  --info: var(--accent); --info-soft: var(--accent-soft);

  /* радиуси, сенки */
  --r-sm: 8px;
  --r-ctl: 10px;
  --radius: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 25, .06);
  --shadow: 0 1px 2px rgba(20, 30, 25, .05), 0 6px 22px rgba(20, 30, 25, .06);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .25);

  /* контроли */
  --ctl-h: 44px;
  --ctl-h-sm: 36px;
  --ctl-fs: 15px;

  /* обвивка */
  --content-w: 1160px;
  --gutter: 24px;
  --topbar: 64px;
  --panel-w: 440px;

  /* типография */
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-page: 40px;   /* заглавие на страница */
  --fs-sec: 24px;    /* заглавие на секция */
  --fs-card: 18px;   /* заглавие на карта */
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-micro: 12px;

  /* скролбари */
  --sb-thumb: #CBC3B4;
  --sb-thumb-hover: #A39A89;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: var(--fs-body);
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
code { font-size: .92em; background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }

/* ---------- фокус (видим само при клавиатура) ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.card:focus-visible, .tab:focus-visible { outline-offset: 1px; }

/* ---------- скролбари ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
.view-renders, .renders-strip { scrollbar-color: rgba(255, 255, 255, .45) transparent; }
.renders-strip::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .45); }

/* ---------- топбар ---------- */
.topbar {
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-radius: var(--r-sm); }
.brand-logo { display: block; height: 54px; width: 61px; }
.brand-logo svg { height: 100%; width: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line-strong); padding-left: 12px; }
.brand-text b { font-size: 15px; font-weight: 800; letter-spacing: .01em; color: var(--accent); }
.brand-text small { color: var(--wood-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: var(--r-sm); }
.toplink:hover { color: var(--ink); background: var(--surface-hover); }

/* ---------- бадж / статус ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .01em; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.badge-demo, .badge-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.badge-neutral { background: var(--surface-3); color: var(--muted); }

/* ---------- бележки ---------- */
.notice, .placeholder-note { border-radius: var(--radius); padding: 11px 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.notice-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }

/* ---------- бутони ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: var(--ctl-h); padding: 0 18px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--ctl-fs); line-height: 1.2; text-decoration: none; white-space: nowrap;
  background: var(--card); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:active { background: #16301F; }
/* второстепенно действие (рамка) */
.btn-secondary, .btn-ghost { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface-hover); border-color: #B9B09F; }
/* текстово действие без фон */
.btn-link { background: transparent; border-color: transparent; color: var(--muted); }
.btn-link:hover { background: var(--surface-hover); color: var(--ink); }
/* опасно действие */
.btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
/* върху тъмен фон */
.btn-on-dark { background: #fff; border-color: #fff; color: var(--accent); }
.btn-on-dark:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-on-dark-outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-on-dark-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-sm { min-height: var(--ctl-h-sm); padding: 0 14px; font-size: 14px; border-radius: var(--r-ctl); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"], .btn.is-busy { cursor: progress; }

/* ---------- полета ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; color: var(--ink); }
.field small { color: var(--muted); font-weight: 600; }
.input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select, .field textarea,
.edit-room input, .edit-room select,
.ca-input input, .ca-field select {
  width: 100%; min-height: var(--ctl-h);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl);
  padding: 0 12px; background: var(--card); color: var(--ink);
  font-size: var(--ctl-fs); font-weight: 500;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.45; }
select.input, .field select, .edit-room select, .ca-field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235F665F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px;
}
.input:hover,
.field input:hover, .field select:hover, .field textarea:hover,
.edit-room input:hover, .edit-room select:hover, .ca-input input:hover, .ca-field select:hover { border-color: #B9B09F; }
.input:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.edit-room input:focus, .edit-room select:focus, .ca-input input:focus, .ca-field select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-ring); }
.field input:disabled, .field select:disabled, .field textarea:disabled, .input:disabled { background: var(--surface-disabled); color: var(--muted); cursor: not-allowed; }
.field input::placeholder, .field textarea::placeholder { color: #8A8F88; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(179, 55, 43, .15); }
.err { display: block; color: var(--danger); font-size: var(--fs-small); font-style: normal; font-weight: 600; margin-top: 5px; }
.err:empty { display: none; }
.check-row, .consent, .toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent { font-size: var(--fs-small); color: var(--muted); margin: 4px 0 14px; }
.check-row input, .consent input, .toggle input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.err-consent { margin: -6px 0 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- обща обвивка на страниците ---------- */
.page {
  width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter));
  margin: 0 auto; padding: 40px var(--gutter) 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
}
.page > section { min-width: 0; }
/* заглавие на страница (PageHeader) */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.page-header > div { min-width: 0; flex: 1 1 520px; }
.page-header .lead { max-width: 760px; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-title, .page-hero h1 { font-weight: 800; font-size: var(--fs-page); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.eyebrow { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wood-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 9px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18'%3E%3Cpolyline points='2,16 18,3 34,16' fill='none' stroke='%23B5834F' stroke-width='3.5'/%3E%3C/svg%3E"); }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; }
.page-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.page-hero > * { min-width: 0; }
.page-hero img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); background: #fff; display: block; }
/* заглавие на секция */
.sec, .page h2.sec { font-weight: 800; font-size: var(--fs-sec); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 16px; }
.sec-lead, .page .sec-lead { color: var(--muted); margin: -8px 0 20px; max-width: 760px; }
.page a:not(.btn):not(.brand) { color: var(--accent); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page a:not(.btn):not(.brand):hover { color: var(--accent-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats { margin-top: 24px; }
.stats small { color: var(--muted); font-size: var(--fs-small); }

/* ---------- карти ---------- */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.tile h3 { margin: 0 0 6px; font-size: var(--fs-card); font-weight: 700; line-height: 1.3; }
.tile > h2 { font-size: var(--fs-card); font-weight: 700; margin: 0 0 4px; }
.tile > h2 + p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-ctl); background: var(--wood-soft); color: var(--wood-ink); font-weight: 800; margin-bottom: 12px; }
.tile-gap { margin-top: 16px; }
.kpi { font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.product img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }

/* ---------- таблици ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--wood-ink); padding: 16px 0 6px; }
.spec tr:first-child th { padding-top: 4px; }
.spec td { padding: 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 46%; padding-right: 12px; }
.spec td:last-child { font-weight: 600; color: var(--ink); }
.spec-narrow { max-width: 560px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 700; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFAF6; }
.table small { color: var(--muted); font-size: var(--fs-small); white-space: nowrap; }
.table .badge { white-space: normal; max-width: 260px; }
.table .nowrap, .table .t-num { white-space: nowrap; }
.table .t-num { text-align: right; font-variant-numeric: tabular-nums; }
.table .clip { max-width: 320px; }
.table .empty td { color: var(--muted); text-align: center; padding: 28px 12px; }

/* ---------- съдържателни секции ---------- */
.mesh { display: grid; gap: 8px; align-content: start; }
.mesh img { width: 100%; height: 110px; object-fit: contain; background: #fff; border-radius: var(--r-ctl); border: 1px solid var(--line); }
.mesh h3 { font-size: 16px; margin: 4px 0 0; }
.mesh .use { color: var(--muted); font-size: 14px; }
.mesh .dims { font-weight: 700; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.credit { font-size: var(--fs-small); color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.ph { background: repeating-linear-gradient(135deg, #fff7f0 0 10px, #fdf0e5 10px 20px); outline: 1px dashed #e2b998; border-radius: 4px; }
.cta-band { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 18px 24px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: var(--r-lg); padding: 28px; }
.cta-band h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.cta-band p { opacity: .88; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e8ece9; }
.project-card .body { padding: 18px 20px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.project-card .body .btn { justify-self: start; margin-top: 4px; }
.project-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-card .tags span { font-size: var(--fs-micro); font-weight: 600; background: var(--surface-3); padding: 3px 9px; border-radius: var(--r-pill); color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-done { margin-top: 16px; display: grid; gap: 10px; }
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.site-footer .inner { max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); }
.site-footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 16px; }

/* ---------- навигация ---------- */
.mainnav { display: flex; gap: 4px; align-items: center; }
.mainnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--r-ctl); }
.mainnav a:hover { color: var(--ink); background: var(--surface-hover); }
.mainnav a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.navtoggle { display: none; border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--r-ctl); width: 40px; height: 40px; font-size: 20px; line-height: 1; }

/* =====================================================================
   Конфигуратор
   ===================================================================== */
.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  height: calc(100vh - var(--topbar));
  height: calc(100dvh - var(--topbar));
}
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 16px var(--gutter); gap: 12px; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; background: var(--surface-3); border-radius: var(--radius); padding: 4px; gap: 2px; }
.tab { border: 0; background: transparent; min-height: 36px; padding: 0 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 11px; border-radius: var(--r-pill); }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.live-chip.is-sample { color: var(--warn); background: var(--warn-soft); }
.live-chip.is-sample i { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,58,42,.45); } 70% { box-shadow: 0 0 0 7px rgba(30,58,42,0); } 100% { box-shadow: 0 0 0 0 rgba(30,58,42,0); } }

.viewport {
  position: relative; flex: 1; min-height: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: #e6e9e4;
  box-shadow: var(--shadow);
}
.view { position: absolute; inset: 0; }
.view-3d { touch-action: none; }
.three-canvas { display: block; position: absolute; inset: 0; outline: none; cursor: grab; }
.three-canvas:active { cursor: grabbing; }
.label-layer { position: absolute; inset: 0; pointer-events: none; }
.room-label { background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.06); border-radius: var(--r-sm); padding: 4px 8px; text-align: center; font-size: 11.5px; line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.08); white-space: nowrap; transition: opacity .15s; }
.room-label.sm { font-size: 10px; padding: 3px 6px; }
.room-label.is-hidden { opacity: 0; }
.room-label b { display: block; font-weight: 700; }
.room-label span { color: var(--accent); font-weight: 700; }
.loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-weight: 600; z-index: 2; background: #e6e9e4; transition: opacity .4s; text-align: center; padding: 20px; }
.loader.is-done { opacity: 0; pointer-events: none; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--accent-ring); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.view-plan { background: #fbfaf7; overflow: hidden; touch-action: none; cursor: grab; }
.plan-canvas { position: absolute; inset: 12px 12px 64px; }
.plan-svg { width: 100%; height: 100%; transform-origin: 0 0; user-select: none; display: block; }
.plan-svg .pl-name { font-family: var(--font); font-weight: 700; fill: #1f2523; }
.plan-svg .pl-area { font-family: var(--font); font-weight: 800; fill: var(--accent); }
.plan-svg .pl-dim { font-family: var(--font); fill: #6b716d; }
.plan-svg .pl-total { font-family: var(--font); font-weight: 700; font-size: 15px; fill: #1f2523; }
.plan-svg .pl-dimline line { stroke: #6b716d; stroke-width: 1.2; }
.plan-svg .pl-entr { font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: .12em; fill: var(--accent); }

.plan-svg .room-hit { cursor: pointer; }
.plan-svg .room-hit:hover { fill: #f1f5f3; }
.plan-svg .wall-hit { fill: rgba(62,107,78,.14); stroke: rgba(62,107,78,.6); stroke-width: 1.5; stroke-dasharray: 6 4; }
.plan-svg .wall-hit.wh { cursor: ns-resize; }
.plan-svg .wall-hit.wv { cursor: ew-resize; }
.plan-svg .wall-hit:hover, .plan-svg .wall-hit.is-active { fill: rgba(62,107,78,.32); stroke: var(--accent-2); stroke-dasharray: none; }
.plan-svg .wall-grip { fill: var(--accent-2); stroke: #fff; stroke-width: 3; }
.edit-panel { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.edit-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); }
.edit-head b { font-size: 14px; }
.edit-head span { color: var(--muted); }
.edit-room { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; flex: 2 1 340px; }
.edit-room label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-micro); font-weight: 700; color: var(--muted); }
.edit-room input, .edit-room select { min-height: var(--ctl-h-sm); font-size: 14px; font-weight: 600; min-width: 150px; }
.edit-room small { color: var(--accent); font-weight: 700; font-size: var(--fs-small); padding-bottom: 8px; }
.edit-actions { display: flex; gap: 8px; margin-left: auto; }
.tool-edit[aria-pressed="true"] { background: var(--accent); color: #fff; }
.view-plan.is-editing .plan-canvas { top: 96px; }
.view-plan.is-editing .plan-canvas:has(~ .edit-panel .edit-room:not([hidden])) { top: 110px; }
.custom-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.card-custom .big { color: var(--accent); }
.card-custom .plus { display: grid; place-items: center; height: 46px; margin: 6px 0 2px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); color: var(--muted); font-weight: 800; font-size: var(--fs-small); }
.custom-area { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.ca-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.ca-input { position: relative; display: block; }
.ca-input input, .ca-field select { font-size: 18px; font-weight: 800; }
.ca-input input { padding-right: 40px; }
.ca-input em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 700; }
#caRange { grid-column: 1 / -1; width: 100%; }
#caInfo { grid-column: 1 / -1; color: var(--accent); font-weight: 700; font-size: var(--fs-small); }
.view-renders { background: #111; }
.renders-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.renders-strip figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.renders-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.renders-strip figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 700; }

.stage-caption { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: var(--r-ctl); font-size: var(--fs-small); font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.06); max-width: calc(100% - 32px); pointer-events: none; }
.stage-caption b { font-weight: 800; }
.stage-tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
/* бутони върху визуализацията — същата височина и радиус като .btn-sm */
.tool { display: inline-flex; align-items: center; gap: 7px; min-height: var(--ctl-h-sm); border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); padding: 0 12px; border-radius: var(--r-ctl); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: background .15s; }
.tool svg { width: 17px; height: 17px; }
.tool.icon { width: var(--ctl-h-sm); justify-content: center; padding: 0; font-size: 20px; }
.tool:hover { background: #fff; }
.tool[aria-pressed="true"], .tool-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-accent:hover { background: var(--accent-2); }
.zoom-val { font-size: var(--fs-micro); font-weight: 700; color: var(--muted); min-width: 46px; text-align: center; background: rgba(255,255,255,.88); border-radius: var(--r-sm); padding: 4px; font-variant-numeric: tabular-nums; }
.hint { position: absolute; left: 16px; bottom: 16px; font-size: var(--fs-micro); color: var(--ink-2); background: rgba(255,255,255,.8); padding: 5px 10px; border-radius: var(--r-pill); pointer-events: none; }

/* ---------- панел с опциите ---------- */
.panel { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.panel-inner { padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 28px; }
.intro h1 { font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px; }
.intro .lead { font-size: 14.5px; }
.step header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.step .num { font-size: var(--fs-micro); font-weight: 700; color: var(--wood-ink); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.step h2 { font-size: 16px; font-weight: 700; }
.cards { display: grid; gap: 10px; }
.cards-area { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-area:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-area:has(> .card:nth-child(5)) { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-swatch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--card);
  border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover { border-color: var(--line-strong); }
.card:active { transform: scale(.99); }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.card .t { font-weight: 700; font-size: 14.5px; line-height: 1.25; padding-right: 24px; }
.card .d { color: var(--muted); font-size: var(--fs-micro); line-height: 1.4; }
.card .p { font-size: var(--fs-small); font-weight: 700; color: var(--accent); margin-top: 2px; font-variant-numeric: tabular-nums; }
.card .p.is-zero { color: var(--muted); font-weight: 600; }
.card .check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: #fff; }
.card.is-selected .check { background: var(--accent); border-color: var(--accent); }
.card.is-selected .check::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cards-area .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.cards-area .big small { font-size: 14px; font-weight: 700; }
.cards-area .mini-plan { width: 100%; height: 46px; margin: 6px 0 2px; }
.cards-area .mini-plan rect { fill: #f3f1ec; stroke: #9aa09c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cards-area .card.is-selected .mini-plan rect { fill: var(--accent-soft); stroke: var(--accent); }
.roof-icon { width: 100%; height: 50px; margin-bottom: 4px; }
.roof-icon path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.card.is-selected .roof-icon path { stroke: var(--accent); }
.swatch { width: 100%; height: 50px; border-radius: var(--r-sm); margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }
.sw-plaster { background: radial-gradient(circle at 30% 30%, #f6f3ec, #e4ded2); }
.sw-wood { background: repeating-linear-gradient(90deg, #b07f51 0 13px, #7c5532 13px 15px, #a8774a 15px 28px, #6e4a2b 28px 30px); }
.sw-graphite { background: linear-gradient(#45494c, #383b3e); }
.cards-swatch .cat-title { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-ink); margin: 6px 0 -2px; }
.cards-swatch .cat-title:first-child { margin-top: 0; }
.cards-swatch .card .d { font-size: 11.5px; }
.sw-plaster_scraped { background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.6px), radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.6px); background-size: 6px 6px, 9px 9px; }
.sw-stone_natural { background-image: linear-gradient(90deg, transparent 46%, #6f685e 46% 50%, transparent 50%), linear-gradient(transparent 46%, #6f685e 46% 52%, transparent 52%), linear-gradient(120deg, #b3a58f 0 30%, #9c8f7c 30% 55%, #c2b6a2 55% 80%, #8e8473 80%); background-size: 34px 25px, 100% 25px, 100% 100%; }
.sw-stone_ledge { background-image: repeating-linear-gradient(#8d867b 0 5px, #3f3b36 5px 6px, #9c9488 6px 10px, #3f3b36 10px 11px, #7b756b 11px 15px, #3f3b36 15px 16px); }
.sw-wood_horizontal { background-image: repeating-linear-gradient(#c9a679 0 9px, #6e4a2b 9px 10px, #bf9b6e 10px 19px, #6e4a2b 19px 20px); }
.sw-clinker { background-image: linear-gradient(90deg, transparent 47%, #cdc5b6 47% 53%, transparent 53%), repeating-linear-gradient(#9a5a3f 0 7px, #cdc5b6 7px 9px); background-size: 26px 18px, 100% 100%; }
.sw-ceramic { background-image: linear-gradient(90deg, transparent 49%, #8f8d88 49% 51%, transparent 51%), linear-gradient(transparent 48%, #8f8d88 48% 52%, transparent 52%); }
.sw-graphite { background-image: linear-gradient(90deg, transparent 49%, rgba(0,0,0,.5) 49% 51%, transparent 51%); }
.cards-list .card { padding: 13px 44px 13px 14px; }

/* ---------- обобщение и цена ---------- */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 80px; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.total { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.total.bump { animation: bump .45s ease; }
@keyframes bump { 0% { color: var(--accent-2); transform: translateY(-2px); } 100% { color: var(--ink); transform: none; } }
.per-m2 { color: var(--muted); font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.lines { list-style: none; padding: 0; margin: 14px 0 10px; border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-small); }
.lines li span:first-child { color: var(--muted); }
.lines li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fine { font-size: var(--fs-micro); color: var(--muted); line-height: 1.45; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.actions .btn { min-height: 48px; }

.mobile-bar { display: none; }

/* ---------- диалози ---------- */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--shadow-lg); color: var(--ink); background: var(--card); }
.modal::backdrop { background: rgba(25, 32, 29, .5); backdrop-filter: blur(2px); }
.modal-inner { padding: 28px; position: relative; display: block; }
.modal-x { position: absolute; top: 14px; right: 14px; width: var(--ctl-h-sm); height: var(--ctl-h-sm); border-radius: 50%; border: 0; background: var(--surface-3); font-size: 22px; line-height: 1; color: var(--ink-2); }
.modal-x:hover { background: var(--line); }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; padding-right: 40px; }
.inq-summary { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.inq-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.inq-summary li:last-child { border-bottom: 0; }
.inq-summary li span:first-child { color: var(--muted); }
.inq-summary li span:last-child { font-weight: 700; text-align: right; }
.inq-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 16px; font-weight: 700; gap: 10px; }
.inq-total b { font-size: 22px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.recipient-note { font-size: var(--fs-small); color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); padding: 9px 12px; border-radius: var(--r-ctl); margin: 4px 0 16px; }
.recipient-note.is-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions-col { flex-direction: column; align-items: stretch; margin-top: 16px; }
.status-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid var(--warn-line); }
.status-card.is-ok { background: var(--ok-soft); border-color: var(--ok-line); }
.status-card.is-error { background: var(--danger-soft); border-color: var(--danger-line); }
.status-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--warn); font-size: 20px; }
.status-card.is-ok .status-icon { background: var(--ok); }
.status-card.is-error .status-icon { background: var(--danger); }
.status-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.status-text { font-size: 14px; color: var(--ink-2); }
.status-id { font-size: var(--fs-micro); color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Адаптивност
   ===================================================================== */
@media (max-width: 1180px) { :root { --panel-w: 390px; } .cards-area .big { font-size: 21px; } }
@media (max-width: 1080px) {
  .mainnav a { padding: 8px 9px; }
  .brand-text small { display: none; }
}
@media (max-width: 920px) {
  :root { --topbar: 56px; --gutter: 16px; --fs-page: 30px; --fs-sec: 21px; --ctl-fs: 16px; }
  .navtoggle { display: inline-grid; place-items: center; }
  .mainnav { display: none; position: absolute; top: var(--topbar); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.08); z-index: 50; }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 12px; font-size: 16px; }
  .page { padding: 24px var(--gutter) 56px; gap: 36px; }
  .page-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stats.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kpi { font-size: 24px; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product img { max-width: 220px; }
  .contact-form .row2 { grid-template-columns: minmax(0, 1fr); }
  .topbar-right .toplink { display: none; }
  .topbar .badge-demo { display: none; }
  .tile { padding: 18px; }
  .cta-band { padding: 22px; }
  .cta-band .cta-actions, .cta-band > .btn { width: 100%; }
  .cta-band .cta-actions .btn, .cta-band > .btn { flex: 1 1 auto; }

  .cfg { display: block; height: auto; }
  .stage { padding: 10px 10px 0; gap: 8px; }
  .viewport { height: 52vh; height: 52svh; min-height: 300px; flex: none; border-radius: 14px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 4px; font-size: 13.5px; }
  .stage-top .live-chip { position: absolute; left: 20px; top: 66px; z-index: 3; font-size: 11px; padding: 4px 9px; }
  .stage-caption { top: auto; bottom: 60px; left: 10px; font-size: var(--fs-micro); padding: 6px 10px; }
  .hint { display: none; }
  .stage-tools { right: 10px; bottom: 10px; }
  .tool span { display: none; }
  .tool { padding: 0 9px; }
  .tool-accent span, .tool-edit span { display: inline; }
  .tool-edit span { font-size: 0; }
  .tool-edit span::before { content: "Промени"; font-size: 14px; }
  #zoomVal, #zoomReset { display: none; }
  .edit-panel { left: 6px; right: 6px; top: 6px; padding: 8px 10px; gap: 6px 10px; }
  .edit-head span { display: none; }
  .edit-room input, .edit-room select { min-width: 0; width: 100%; }
  .edit-room label { flex: 1 1 140px; }
  .view-plan.is-editing .plan-canvas { top: 186px !important; }
  .panel { border-left: 0; overflow: visible; background: var(--bg); }
  .panel-inner { padding: 20px var(--gutter) 110px; gap: 24px; }
  .intro h1 { font-size: 24px; }
  .cards-area { gap: 8px; }
  .cards-area .card { padding: 10px; }
  .cards-area .big { font-size: 19px; }
  .cards-area .d { font-size: 11.5px; }
  .cards-swatch { gap: 8px; }
  .cards-swatch .card { padding: 9px; }
  .total { font-size: 32px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    gap: 10px; align-items: center; justify-content: space-between;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,248,242,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.06);
  }
  .mb-price { border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; border-radius: var(--r-sm); }
  .mb-price small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
  .mb-price em { font-style: normal; color: var(--warn); }
  .mb-price b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
  .modal-inner { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .cards-area .big { font-size: 17px; }
  .cards-swatch .t { font-size: 13px; }
  .stats.grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.project-card a > img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-credit { font-size: 11.5px; color: var(--muted); font-style: italic; }

/* ---------- проект с галерия ---------- */
.project-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.pf-cover { position: relative; border: 0; padding: 0; background: #e8ece9; cursor: zoom-in; display: block; }
.pf-cover img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.pf-count { position: absolute; left: 14px; bottom: 14px; background: rgba(28,33,30,.75); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 99px; }
.pf-body { padding: 26px; display: grid; gap: 12px; align-content: center; }
.pf-body h2 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pf-body p { color: var(--muted); }
.pf-thumbs { display: flex; gap: 8px; }
.pf-thumbs button { border: 0; padding: 0; border-radius: 8px; overflow: hidden; width: 64px; height: 48px; cursor: pointer; background: #e8ece9; }
.pf-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-more { font-weight: 800; color: var(--accent); }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(12,16,14,.92); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; }
.lightbox figure { margin: 0; grid-column: 2; display: grid; gap: 10px; justify-items: center; align-content: center; min-height: 0; height: calc(100dvh - 110px); }
.lightbox figure img { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 8px; user-select: none; touch-action: pan-y; }
.lightbox figcaption { color: #fff; display: flex; gap: 14px; font-weight: 600; font-size: 14px; }
.lightbox figcaption #lbNum { color: rgba(255,255,255,.6); }
.lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; justify-self: center; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; z-index: 2; }
.lb-strip { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; padding: 10px 14px 16px; overflow-x: auto; }
.lb-strip button { flex: none; border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 76px; height: 56px; opacity: .6; cursor: pointer; background: #333; }
.lb-strip button.is-active { border-color: var(--wood); opacity: 1; }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 920px) {
  .project-feature { grid-template-columns: 1fr; }
  .pf-cover img { min-height: 240px; max-height: 320px; }
  .pf-body { padding: 18px; }
  .lightbox[open] { grid-template-columns: 0 1fr 0; }
  .lb-nav { position: fixed; top: 45%; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-strip { justify-content: flex-start; }
}

.project-feature + .project-feature { margin-top: 0; }
#project2 { grid-template-columns: 1fr 1.3fr; }
#project2 .pf-cover { order: 2; }
@media (max-width: 920px) { #project2 { grid-template-columns: 1fr; } #project2 .pf-cover { order: 0; } }
