/* Dažymas Kaune: atspausdintas meistro kainoraštis. Juodas tekstas, baltas lapas, mėlynos nuorodos. */
:root {
  --ink: #111111;
  --grey: #555555;
  --rule: #111111;
  --hair: #b5b5b5;
  --tint: #f0f0f0;
  --paper: #ffffff;
  --link: #0b3bb3;
  --font: 'Libre Franklin', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #777 #eee; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0 0 0.8em; max-width: 68ch; }
ul, ol { max-width: 68ch; }
caption { text-align: left; }
button { font: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 62rem; margin: 0 auto; padding-inline: clamp(14px, 3vw, 24px); }

/* ---------- Letterhead ---------- */
.head { padding-top: clamp(16px, 3vw, 32px); }
.head__row { display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: end; padding-bottom: 14px; border-bottom: 6px double var(--rule); }
.head__name { display: block; color: var(--ink); text-decoration: none; font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
a.head__name:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.head__what { margin: 8px 0 0; max-width: 34rem; text-wrap: balance; }
.head__contact { text-align: right; }
.head__tel { display: block; color: var(--ink); font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.head__tel:hover { text-decoration: underline; }
.head__mail { display: block; margin-top: 4px; }
.head__area { display: block; color: var(--grey); }
.menu { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: none; }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* ---------- Blocks ---------- */
.block { padding-top: clamp(28px, 4vw, 44px); }
.block > .wrap > h2, .block__title { font-size: 1.6rem; margin-bottom: 0.45em; }
main > * + .block > .wrap::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: clamp(20px, 3vw, 28px); }
h3 { font-size: 1.15rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 4vw, 44px); }
.two h3 { margin-bottom: 0.4em; }
.two p { margin-bottom: 0.7em; }
.plain { margin: 0 0 0.8em; padding-left: 1.2em; }
.plain li { margin-bottom: 0.2em; }

/* ---------- Price list ---------- */
.prices { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.prices th, .prices td { padding: 9px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: baseline; font-weight: 400; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices thead th { border-bottom: 2px solid var(--rule); font-size: 0.875rem; font-weight: 700; line-height: 1.25; vertical-align: bottom; }
.prices tr > :first-child { padding-left: 0; }
.prices tr > :last-child { padding-right: 0; }
.prices .num { width: 9rem; text-align: right; white-space: nowrap; }
.prices thead .num { white-space: normal; }
.prices td.num { font-weight: 800; font-size: 1.125rem; }
.prices td.num span { display: inline-block; width: 2.9em; font-weight: 400; font-size: 0.875rem; text-align: left; }
.prices td.num--text { font-weight: 400; font-size: 1rem; }
.prices tbody tr:hover { background: var(--tint); }
.prices--extra { margin-top: 18px; }
.prices--extra caption { padding-bottom: 7px; font-weight: 800; font-size: 1.05rem; }
.price-note { margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }

.btn { display: inline-block; padding: 11px 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; max-width: none; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 1.6rem 8.5rem 1fr; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s) "."; font-weight: 800; }
.steps b { font-weight: 800; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 4vw, 44px); }
.contacts__tel { display: inline-block; color: var(--ink); font-size: 1.75rem; font-weight: 800; line-height: 1.1; white-space: nowrap; text-decoration: none; }
.contacts__tel:hover { text-decoration: underline; }
.contacts__mail { display: inline-block; margin-top: 4px; font-size: 1.125rem; overflow-wrap: anywhere; }
.contacts p { margin: 8px 0 0; }
.contacts h3 { margin-bottom: 0.4em; }

.foot { margin-top: clamp(28px, 4vw, 44px); padding-block: 12px 20px; color: var(--grey); font-size: 0.875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; }

.callbar { display: none; }

/* ---------- Inner page heading ---------- */
.page-hero { padding-top: clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); letter-spacing: -0.015em; }
.page-hero p { margin: 10px 0 0; font-size: 1.125rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4em; margin: 0 0 10px; padding: 0; list-style: none; color: var(--grey); font-size: 0.875rem; max-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.4em; }
.section { padding-top: clamp(20px, 3vw, 28px); }

/* ---------- Calculator ---------- */
.calc { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding-top: 14px; }
.calc__opts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 26px; }
.calc__opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__opt legend { padding: 0; margin-bottom: 3px; font-weight: 800; font-size: 0.9375rem; }
.calc__mode label { display: flex; align-items: center; gap: 7px; min-height: 30px; cursor: pointer; }
.calc__mode input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); flex: none; }
.calc__help { margin-left: 0.3em; font-weight: 400; }
.calc__hint { margin: 12px 0 14px; color: var(--grey); font-size: 0.9375rem; max-width: none; }
.calc__head, .calc__row { display: grid; grid-template-columns: 1fr 7.5rem 8.5rem 6.5rem; gap: 8px 14px; align-items: center; }
.calc__head { padding-bottom: 5px; border-bottom: 2px solid var(--rule); font-size: 0.875rem; font-weight: 700; }
.calc__head span:last-child, .calc__sum { text-align: right; }
.calc__row { padding-block: 8px; border-bottom: 1px solid var(--hair); }
.calc__name { line-height: 1.3; }
.calc__rate { white-space: nowrap; font-size: 0.9375rem; }
.calc__rate b { font-weight: 800; font-size: 1.0625rem; }
.calc__qty { display: flex; align-items: center; gap: 6px; }
.calc__qty input { width: 100%; min-height: 42px; padding: 0 9px; border: 1px solid var(--ink); border-radius: 0; font: inherit; color: var(--ink); background: var(--paper); }
.calc__qty input:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.calc__qty input::placeholder { color: #6a6a6a; }
.calc__sum { font-weight: 700; white-space: nowrap; }
.calc__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-block: 12px; font-weight: 800; font-size: 1.125rem; }
.calc__total output { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; font-weight: 800; }

/* ---------- Plan guide ---------- */
.guide { margin-top: clamp(28px, 4vw, 44px); }
.section-head { margin-bottom: 14px; }
.guide__title { font-size: 1.6rem; margin-bottom: 0.35em; }
.guide__cards { margin: 0; padding: 0; list-style: none; max-width: none; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.guide__card { display: grid; grid-template-columns: 18rem 1fr; grid-template-rows: auto auto 1fr; column-gap: clamp(18px, 3vw, 30px); padding-block: 12px; border-bottom: 1px solid var(--hair); }
.guide__card:last-child { border-bottom: 0; }
.guide__card .fig { grid-row: 1 / span 3; }
.guide__card h3 { margin: 0 0 4px; }
.guide__card p { margin: 0; }
.guide__formula { margin-bottom: 6px !important; font-weight: 700; }
.fig { display: block; width: 100%; height: auto; background: var(--paper); }
.fig text { font-family: var(--font); fill: var(--ink); text-anchor: middle; }
.fig .f-t { font-size: 11px; font-weight: 500; }
.fig .f-s { font-size: 10px; font-weight: 600; }
.fig .f-big { font-size: 17px; font-weight: 800; }
.fig .f-hi { fill: #ececec; }
.fig .f-wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: square; }
.fig .f-win, .fig .f-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.fig .f-thin { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.fig .f-dim { fill: none; stroke: var(--grey); stroke-width: 1; }
.fig .f-cut { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.fig .f-wallfill { fill: #dcdcdc; stroke: none; }
.fig .f-strong, .fig .f-markfill { fill: var(--ink); }
.fig .f-mark { fill: none; stroke: var(--ink); stroke-width: 5; }
.fig .f-lamp circle, .fig .f-lampbox { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }

.example { margin-top: 28px; }
.example__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 28px; margin-bottom: 10px; }
.example__head h3 { font-size: 1.25rem; margin-bottom: 3px; }
.example__head p { margin: 0; }
.example__fill { flex: none; }
.example__scroll { overflow-x: auto; }
.example__table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.example__table th, .example__table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: baseline; font-weight: 400; }
.example__table thead th { border-bottom: 2px solid var(--rule); font-size: 0.875rem; font-weight: 700; }
.example__table td:last-child, .example__table thead th:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.example__table tr.is-total th, .example__table tr.is-total td:last-child { font-weight: 800; }
.example__table tr.is-total { background: var(--tint); }
.example__note { margin: 8px 0 0; color: var(--grey); font-size: 0.9375rem; }

/* ---------- Article ---------- */
.post > * { max-width: 46rem; }
.post h2 { font-size: 1.5rem; margin: clamp(26px, 4vw, 36px) 0 0.45em; scroll-margin-top: 16px; }
.post > h2:first-child { margin-top: 0; }
.post .checks { margin: 0 0 0.8em; padding-left: 1.2em; }
.post .checks li { margin-bottom: 0.3em; }
.post figure { margin: 22px 0; }
.post figcaption { color: var(--grey); font-size: 0.9375rem; line-height: 1.4; }
.post__photo figcaption { margin-top: 7px; }
.post__credit { display: block; font-size: 0.8125rem; }
.post__levels ol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0 0 12px; padding: 0; list-style: none; max-width: none; }
.post__levels ol > li { border-top: 1px solid var(--ink); padding-top: 7px; }
.post__level { display: block; margin-bottom: 4px; font-size: 0.9375rem; line-height: 1.3; }
.post__level b { margin-right: 0.4em; font-weight: 800; }
.xsec { display: block; width: 100%; height: auto; }
.xsec .x-board, .xsec-key .sw-board { fill: #ededed; background: #ededed; stroke: #777; stroke-width: 0.8; }
.xsec .x-gap { stroke: var(--paper); stroke-width: 1.4; }
.xsec .x-screw { stroke: #444; stroke-width: 2.2; }
.xsec .x-joint, .xsec-key .sw-joint { fill: #c4c4c4; background: #c4c4c4; }
.xsec .x-feather, .xsec-key .sw-feather { fill: #9a9a9a; background: #9a9a9a; }
.xsec .x-coat1, .xsec-key .sw-coat1 { fill: #6c6c6c; background: #6c6c6c; }
.xsec .x-coat2, .xsec-key .sw-coat2 { fill: #2b2b2b; background: #2b2b2b; }
.xsec .x-marble, .xsec-key .sw-marble { fill: var(--paper); background: var(--paper); stroke: var(--ink); stroke-width: 0.7; }
.xsec-key { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 0.875rem; max-width: none; }
.xsec-key li { display: flex; align-items: center; gap: 6px; }
.xsec-key i { width: 16px; height: 11px; outline: 1px solid var(--ink); outline-offset: -1px; }
.post__light { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post__light > div { border-top: 1px solid var(--ink); padding-top: 7px; }
.post__light figcaption { margin-bottom: 6px; color: var(--ink); font-weight: 700; }
.light { display: block; width: 100%; height: auto; }
.light .l-ray { fill: none; stroke: #555; stroke-width: 1.1; stroke-dasharray: 4 4; }
.light .l-sun { fill: var(--ink); }
.light .l-wall { fill: #e4e4e4; stroke: #666; stroke-width: 0.8; }
.light .l-shadow { fill: var(--ink); opacity: 0.6; }
.post__table { overflow-x: auto; margin: 0 0 0.8em; }
.post__table table { width: 100%; min-width: 520px; border-collapse: collapse; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.post__table th, .post__table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; font-weight: 400; }
.post__table thead th { border-bottom: 2px solid var(--rule); font-size: 0.875rem; font-weight: 700; }
.post__table tbody th { font-weight: 800; }
.post__table tr.is-ours { background: var(--tint); }
.post__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 24px 0; padding-block: 12px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.post__cta p { margin: 0; font-weight: 700; }
.post__sources-title { font-size: 1.15rem !important; }
.post__sources { margin: 0; padding-left: 1.2em; font-size: 0.9375rem; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .head__row { grid-template-columns: 1fr; }
  .head__contact { text-align: left; }
  .two, .contacts { grid-template-columns: 1fr; }
  .prices th, .prices td { padding-inline: 6px; }
  .prices .num { width: 5.4rem; }
  .prices td.num { font-size: 1rem; }
  .steps li { grid-template-columns: 1.6rem 1fr; }
  .steps li span { grid-column: 2; }
  .calc__head { display: none; }
  .calc__row { grid-template-columns: 1fr auto; padding-block: 11px; }
  .calc__name, .calc__qty { grid-column: 1 / -1; }
  .calc__qty input { max-width: 10rem; }
  .calc__rate, .calc__sum { grid-row: 3; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); text-align: center; text-decoration: none; font-weight: 800; font-size: 1.125rem; }
  body { padding-bottom: 56px; }
}
@media (max-width: 520px) {
  .post__levels ol, .post__light { grid-template-columns: 1fr; }
  .guide__card { grid-template-columns: 1fr; }
  .guide__card .fig { grid-row: auto; max-width: 20rem; margin-bottom: 8px; }
  .prices th, .prices td { padding-inline: 4px; }
  .prices .num { width: 5.5rem; }
  .prices thead th { font-size: 0.75rem; }
  .post__table table { min-width: 0; }
  .example__table thead { display: none; }
  .example__table tr { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding-block: 7px; border-bottom: 1px solid var(--hair); }
  .example__table tr > :nth-child(n) { border: 0; padding: 0; }
  .example__table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--grey); font-size: 0.875rem; }
}

/* ---------- Užimtumas: 8 savaitės, užimta = pilka, laisva = juodas rėmas ---------- */
.head__free { display: block; margin-top: 2px; color: var(--ink); font-weight: 800; }
.busy__lead { margin: 0 0 12px; font-size: 1.25rem; }
.busy__lead b { font-weight: 800; white-space: nowrap; }
.busy__weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; max-width: none; }
.busy__week { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 2px solid var(--ink); background: var(--paper); }
.busy__dates { font-size: 0.9375rem; }
.busy__week b { font-weight: 800; font-size: 1.125rem; }
.busy__week--busy { border-color: var(--tint); background: var(--tint); color: var(--grey); }
.busy__week--busy b { font-weight: 400; }
.busy__upd { margin: 10px 0 0; color: var(--grey); font-size: 0.875rem; }
@media (max-width: 520px) { .busy__weeks { grid-template-columns: 1fr 1fr; } .busy__lead { font-size: 1.125rem; } }

/* ---------- Paper: the price list prints as one A4 sheet ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { font-size: 10pt; padding: 0; }
  .head { padding-top: 0; }
  .head__name, .head__tel { font-size: 24pt; }
  .prices th, .prices td { padding-block: 5px; }
  .prices td.num { font-size: 11pt; }
  .contacts__tel { font-size: 16pt; }
  a { color: var(--ink); text-decoration: none; }
  .menu, .callbar, .skip, .actions, .no-print, .foot { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .prices tbody tr:hover { background: none; }
  .block { padding-top: 14pt; break-inside: avoid; }
}
