/* ============================================================
   Giedra — langų pardavimo portalas
   Dizainas: braižymo lenta / techninis brėžinys ant dienos
   šviesos balto fono. Plonos rėmo linijos, milimetrinis
   tinklelis, mono šriftas matmenims ir Uw reikšmėms.
   Rankinis CSS — be build žingsnio (kaip DNT nuomos portale).
   ============================================================ */

:root {
  --ground:        #FCFDFE;
  --surface:       #FFFFFF;
  --surface-sunk:  #EEF2F5;
  --ink:           #16202B;
  --ink-soft:      #54626E;
  --ink-faint:     #8B98A2;
  --line:          #D9E0E6;
  --line-strong:   #B6C2CB;
  --accent:        #2C6C7A;
  --accent-deep:   #1E4C58;
  --accent-wash:   #E4EFF1;
  --accent-bright: #4E8C9E;
  --warm:          #C07A24;
  --ok:            #2E7D57;
  --warn:          #B0731C;
  --crit:          #B23A3A;
  --ok-wash:       #E6F1EB;
  --warn-wash:     #F6EEE0;

  --shadow: 0 1px 2px rgba(22,32,43,.04), 0 8px 28px -12px rgba(22,32,43,.14);
  --shadow-lift: 0 2px 6px rgba(22,32,43,.06), 0 22px 48px -20px rgba(22,32,43,.24);

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Consolas', monospace;

  --wrap: 1140px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }
a { color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.num  { font-variant-numeric: tabular-nums; }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Antraštė ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; flex-shrink: 0; text-decoration: none;
}
.brand img { height: 42px; width: auto; display: block; }
.brand__mark {
  width: 24px; height: 24px; border: 1.5px solid var(--accent-deep); border-radius: 4px;
  position: relative; flex-shrink: 0;
}
.brand__mark::after  { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 2px; background: var(--accent-bright); border-radius: 2px; }

.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius);
}
.site-nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.site-nav a[aria-current="page"] { color: var(--accent-deep); background: var(--accent-wash); }
.site-nav a.btn { padding: 9px 16px; }
.site-nav a.btn--primary { color: #fff; background: var(--accent); }
.site-nav a.btn--primary:hover { color: #fff; background: var(--accent-deep); }

.lang-switch { display: flex; gap: 2px; margin-left: 8px; }
.lang-switch a {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 8px; border-radius: 3px; color: var(--ink-faint); text-decoration: none;
}
.lang-switch a[aria-current="true"] { color: var(--accent-deep); background: var(--accent-wash); font-weight: 600; }

/* ---------- Mygtukai ---------- */
.btn {
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(23,65,111,.25); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Sekcijos ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 48px 0; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head .label { display: block; margin-bottom: 14px; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section__head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid {
  max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: 1.16rem; color: var(--ink-soft); margin-top: 22px; max-width: 34ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__figure {
  position: relative; aspect-ratio: 4 / 3.4;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.hero__figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Faktų juosta ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
}
.fact { padding: 20px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--accent-deep); }
.fact__t { font-size: 0.86rem; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Medžiagų kortelės ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s; text-decoration: none; color: inherit;
}
.mat:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.mat__sym {
  width: 40px; height: 40px; border: 1.5px solid var(--accent); border-radius: 3px;
  display: grid; place-items: center; color: var(--accent);
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
}
.mat__img {
  width: 130px; height: 130px; object-fit: contain; align-self: center;
  margin-bottom: 4px;
}
.mat h3 { font-size: 1.12rem; }
.mat p { font-size: 0.92rem; color: var(--ink-soft); }
.mat__spec {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 8px;
}

/* ---------- Kaip veikia ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 26px 26px 26px 0; border-top: 2px solid var(--ink); margin-right: 26px; }
.step:last-child { margin-right: 0; }
.step__n { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.14rem; margin: 12px 0 8px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }
.step__meta { margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- CTA juosta ---------- */
.cta-band {
  background: var(--accent-deep); color: #fff; border-radius: var(--radius-lg); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 6px; font-size: 0.95rem; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 760px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(22,32,43,.18); font-size: 0.9rem;
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; color: var(--ink-soft); }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-band p a:not(.btn) { color: #fff; text-decoration: underline; }
.cta-band .btn--primary { background: #fff; color: var(--accent-deep); }
.cta-band .btn--primary:hover { background: #EAF1F9; }

/* ---------- Turinys ---------- */
.prose { max-width: 68ch; }
.prose p { margin-top: 1em; color: var(--ink-soft); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }

/* ---------- Footer ---------- */
.site-foot { padding: 40px 0; font-size: 0.82rem; color: var(--ink-faint); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- Produkto puslapis ---------- */
.prod-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.prod-head > div { max-width: 560px; }
.prod-head__img { width: 300px; height: 300px; object-fit: contain; }
.prod-lede { font-size: 1.14rem; color: var(--ink-soft); margin-top: 16px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.spec-table th {
  text-align: left; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); padding: 14px 16px; background: var(--surface-sunk);
  border-bottom: 1px solid var(--line-strong);
}
.spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td.r, .spec-table th.r { text-align: right; }
.spec-table small { color: var(--ink-faint); }

.tier {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-strong); white-space: nowrap;
}
.tier--standard { color: var(--ink-soft); }
.tier--comfort { color: var(--accent-deep); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.tier--premium { color: var(--warm); background: var(--warn-wash); border-color: color-mix(in srgb, var(--warm) 35%, transparent); }

/* ---------- DUK ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.faq-item summary {
  padding: 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item__body { padding: 0 20px 18px; }
.faq-item__body p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Kontaktų forma ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
.field-error { color: var(--crit); font-size: 0.8rem; }
.notice { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.notice--ok { background: var(--ok-wash); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

/* ---------- Konfigūratorius ---------- */
.config-head { padding: 8px 0 0; max-width: 680px; }
.config-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.config-head p { color: var(--ink-soft); margin-top: 10px; }

.rail {
  display: flex; margin: 28px 0 32px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
}
.rail__step {
  flex: 1; padding: 13px 16px; border-right: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--ink-faint);
}
.rail__step:last-child { border-right: 0; }
.rail__step b {
  font-family: var(--font-mono); font-size: 0.76rem; width: 22px; height: 22px;
  border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.rail__step.is-active { color: var(--accent-deep); background: var(--accent-wash); }
.rail__step.is-done { color: var(--ok); }
.rail__step.is-done b { background: var(--ok); color: #fff; border-color: var(--ok); }

.config-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.type-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; background: var(--surface); cursor: pointer; display: flex; gap: 14px; align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.type-card:hover { border-color: var(--line-strong); }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.type-card img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.type-card b { font-family: var(--font-display); font-size: 1rem; display: block; }
.type-card span { font-size: 0.84rem; color: var(--ink-soft); }

.position { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.position__bar {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 16px;
  background: var(--surface-sunk); border-bottom: 1px solid var(--line);
}
.position__bar b { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.position__del { background: none; border: 0; color: var(--ink-faint); cursor: pointer; font-size: 0.82rem; padding: 4px 8px; border-radius: 3px; }
.position__del:hover { color: var(--crit); background: var(--surface); }
.position__body { padding: 18px 16px; display: grid; gap: 18px; }

.fieldset > .label, .field label { display: block; margin-bottom: 7px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field select, .field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px;
}
.field .mono-input { font-family: var(--font-mono); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dim-row { display: grid; grid-template-columns: 1fr auto 1fr auto 90px; gap: 10px; align-items: end; }
.dim-x { padding-bottom: 10px; color: var(--ink-faint); font-family: var(--font-mono); }

.openings { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.opening {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px 6px 8px; background: var(--surface); cursor: pointer; text-align: center; transition: border-color .12s, background .12s;
}
.opening:hover { border-color: var(--accent); }
.opening input { position: absolute; opacity: 0; }
.opening:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent); }
.opening svg { width: 100%; height: 40px; display: block; }
.opening span { font-size: 0.66rem; color: var(--ink-soft); display: block; margin-top: 4px; font-family: var(--font-mono); }
.opening svg .gl { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.opening svg .op { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; border: 1px solid var(--line-strong); border-radius: 100px; padding: 7px 13px;
  font-size: 0.85rem; background: var(--surface); cursor: pointer; color: var(--ink-soft);
}
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-deep); font-weight: 600; }

.add-position {
  width: 100%; border: 1.5px dashed var(--line-strong); background: none; color: var(--accent-deep);
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; padding: 14px; border-radius: var(--radius-lg); cursor: pointer;
}
.add-position:hover { border-color: var(--accent); background: var(--accent-wash); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }

.summary {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  padding: 20px; position: sticky; top: 84px;
}
.summary h3 { font-size: 1rem; margin-bottom: 4px; }
.summary > p { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 14px; }
.summary__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary__item { font-size: 0.83rem; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.summary__item b { font-family: var(--font-mono); font-size: 0.78rem; display: block; }
.summary__item span { color: var(--ink-soft); }
.summary__note {
  font-size: 0.76rem; color: var(--ink-soft); background: var(--warn-wash);
  border: 1px solid color-mix(in srgb, var(--warm) 25%, transparent); border-radius: var(--radius); padding: 10px 12px; line-height: 1.5;
}

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.consent input { margin-top: 4px; }
.upload { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 20px; text-align: center; color: var(--ink-faint); font-size: 0.88rem; }
.upload input { display: block; margin: 8px auto 0; font-size: 0.85rem; }
.upload-list { list-style: none; margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); }

.alt-path { margin-top: 24px; padding: 16px 18px; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius-lg); font-size: 0.9rem; }
.alt-path span { color: var(--ink-soft); margin-right: 8px; }
.alt-path a { font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.alt-path a:hover { text-decoration: underline; }

.done { text-align: center; max-width: 540px; margin: 12px auto 0; padding: 32px 0; }
.done__mark { width: 58px; height: 58px; border: 2px solid var(--ok); color: var(--ok); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.6rem; }
.done h2 { font-size: 1.6rem; }
.done p { color: var(--ink-soft); margin-top: 10px; }
.done__ref { font-family: var(--font-mono); font-size: 1.05rem; color: var(--accent-deep); background: var(--accent-wash); border-radius: var(--radius); padding: 8px 16px; display: inline-block; margin-top: 20px; }

.field-hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Energinė klasė ---------- */
.eclass {
  display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.02em; padding: 2px 8px; border-radius: 4px; white-space: nowrap;
  background: var(--ok-wash); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
}
.eclass--a { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warm) 35%, transparent); }
.eclass--b, .eclass--c { background: var(--surface-sunk); color: var(--ink-soft); border-color: var(--line-strong); }

/* ---------- Profilio detalės / chips ---------- */
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spec-chip {
  font-size: 0.82rem; padding: 6px 12px; border-radius: 100px; background: var(--surface-sunk);
  border: 1px solid var(--line); color: var(--ink-soft);
}
.spec-chip b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.spec-chip--eclass { border-width: 1px; }

/* ---------- Konfigūratorius: profilis ---------- */
.prof-select { width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; }
.prof-note {
  margin-top: 10px; padding: 12px 14px; background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: var(--radius); font-size: 0.86rem;
  display: flex; gap: 14px; align-items: flex-start;
}
.prof-note__img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; background: var(--surface); border-radius: 4px; }
.prof-note p { color: var(--ink-soft); margin: 0 0 6px; }
.prof-note__glz { font-family: var(--font-mono); font-size: 0.78rem; }
.prof-note .eclass { margin-right: 6px; vertical-align: 1px; }
.prof-note a { font-weight: 600; font-size: 0.84rem; }

.prof-thumb { width: 44px; height: 44px; object-fit: contain; background: var(--surface-sunk); border-radius: 4px; }

/* ---------- Konfigūratorius: dalys ---------- */
.section-count { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.section-count .seg { position: relative; }
.section-count .seg input { position: absolute; opacity: 0; }
.section-count .seg span {
  display: block; padding: 8px 16px; font-family: var(--font-mono); font-size: 0.9rem; cursor: pointer;
  border-right: 1px solid var(--line-strong); color: var(--ink-soft);
}
.section-count .seg:last-child span { border-right: 0; }
.section-count .seg:has(input:checked) span { background: var(--accent); color: #fff; }

.sections { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.section-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--ground); }
.section-pick__label { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.section-pick__w { margin-top: 10px; max-width: 220px; }
.section-pick__w .muted { color: var(--ink-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Pasiūlymo dokumentas (klientui) ---------- */
.offer-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.offer-doc__head { padding: 28px 32px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.offer-doc__head .brand { font-size: 1.1rem; }
.offer-doc__meta { font-size: 0.8rem; color: var(--ink-soft); text-align: right; line-height: 1.9; }
.offer-doc__meta b { color: var(--ink); }
.offer-doc .table-scroll { border: 0; border-radius: 0; }
.offer-doc .spec-table { min-width: 520px; }
.offer-doc__totals { margin-left: auto; width: 300px; padding: 18px 32px 8px; font-size: 0.92rem; }
.offer-doc__totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.offer-doc__totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.offer-doc__terms { padding: 18px 32px 28px; font-size: 0.82rem; color: var(--ink-soft); background: var(--surface-sunk); border-top: 1px solid var(--line); }
.offer-doc__actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.offer-doc__actions form { margin: 0; }

/* ---------- Adaptyvumas ---------- */
@media (max-width: 940px) {
  .config-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .type-grid { grid-template-columns: 1fr; }
  .openings { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .prod-head { grid-template-columns: 1fr; gap: 24px; }
  .prod-head__img { width: 220px; height: 220px; order: -1; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__figure { max-width: 420px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .materials { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .materials { grid-template-columns: 1fr; }
  .site-head__inner { flex-wrap: wrap; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .openings { grid-template-columns: repeat(2, 1fr); }
  .dim-row { grid-template-columns: 1fr 1fr; }
  .dim-x { display: none; }
  .rail__step span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
