/* Layout: vertikali „vamzdžio“ linija jungia skyrius; žalvarinės jungtys žymi skyrių pradžią. */
:root {
  --bg: #f3f6f7;
  --surface: #ffffff;
  --ink: #102a33;
  --muted: #4d6670;
  --line: #d2dee2;
  --water: #0b5c74;
  --water-soft: #e2eef2;
  --brass: #a96c22;
  --brass-soft: #f6ead8;
  --on-water: #ffffff;
  --ph: #b0361f;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b171c; --surface: #10222a; --ink: #e2edf0; --muted: #93abb3; --line: #233f49;
    --water: #5bb5cf; --water-soft: #13313b; --brass: #d9a45c; --brass-soft: #2e2416;
    --on-water: #062029; --ph: #ff8a70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b171c; --surface: #10222a; --ink: #e2edf0; --muted: #93abb3; --line: #233f49;
  --water: #5bb5cf; --water-soft: #13313b; --brass: #d9a45c; --brass-soft: #2e2416;
  --on-water: #062029; --ph: #ff8a70; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 1.0625rem/1.65 var(--f-body);
}
img { max-width: 100%; }
a { color: var(--water); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ph { outline: 2px dashed var(--ph); outline-offset: 2px; border-radius: 3px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass);
}

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-width: 0; }
.logo svg { flex: none; }
.logo b { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.1; }
.logo small { display: block; font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.head-call {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  background: var(--water); color: var(--on-water); text-decoration: none; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.head-call .sr { display: none; }
.nav { border-top: 1px solid var(--line); }
.nav ul {
  list-style: none; margin: 0; padding: 0.35rem 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; white-space: nowrap; padding: 0.35rem 0.7rem; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); background: var(--water-soft); }
.nav a[aria-current="page"] { color: var(--water); font-weight: 600; background: var(--water-soft); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero h1 { margin-block: 0.6rem 1rem; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.3rem; border-radius: 10px; border: 2px solid transparent;
}
.btn-call { background: var(--water); color: var(--on-water); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.btn-call:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--water); }
.cta-note { font-size: 0.92rem; color: var(--muted); }

/* „Žymos plokštelė“ – kaip ant vamzdyno armatūros */
.plate {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.4rem; font-family: var(--f-mono); font-size: 0.9rem; position: relative;
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.plate::before { left: 12px; } .plate::after { right: 12px; }
.plate dl { margin: 0.4rem 0 0; display: grid; gap: 0.7rem; }
.plate .row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; border-top: 1px dashed var(--line); padding-top: 0.7rem; }
.plate dt { color: var(--muted); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; padding-top: 0.15rem; }
.plate dd { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: 0.98rem; }
.plate .tag { text-align: center; color: var(--brass); letter-spacing: 0.12em; font-size: 0.74rem; text-transform: uppercase; }

/* Vamzdžio linija */
.pipe { height: 14px; position: relative; margin-top: clamp(2rem, 5vw, 3rem); }
.pipe::before { content: ""; position: absolute; inset: 5px 0; background: var(--water); border-radius: 3px; opacity: 0.85; }
.pipe span { position: absolute; top: 0; width: 22px; height: 14px; background: var(--brass); border-radius: 3px; }

/* Sections */
section.block { padding-block: clamp(2.5rem, 6vw, 4rem); }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 0.5rem; margin-bottom: 1.8rem; max-width: 44rem; }
.sec-head p { color: var(--muted); }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc {
  background: var(--surface); padding: 1.3rem 1.3rem 1.4rem; text-decoration: none; color: var(--ink);
  display: grid; gap: 0.45rem; align-content: start; transition: background 0.15s;
}
.svc:hover { background: var(--water-soft); }
.svc .dn { font-family: var(--f-mono); font-size: 0.74rem; color: var(--brass); letter-spacing: 0.06em; }
.svc p { color: var(--muted); font-size: 0.95rem; }
.svc .go { color: var(--water); font-weight: 600; font-size: 0.92rem; margin-top: 0.3rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 3px solid var(--water); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-mono); color: var(--brass); font-size: 0.85rem; }
.steps p { color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table td { padding: 0.75rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 1rem; font-family: var(--f-mono); font-size: 0.98rem; }
.small { font-size: 0.9rem; color: var(--muted); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.areas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0.6rem; }
.areas li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; }
.areas b { display: block; }
.areas span { font-size: 0.86rem; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding-block: 0.9rem; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--f-mono); color: var(--brass); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; color: var(--muted); max-width: 44rem; }

/* Service page */
.crumbs { font-size: 0.86rem; color: var(--muted); padding-top: 1.2rem; }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: 1.2rem 2.5rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-block: 0.5rem 1rem; }
.page-hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: 3.5rem; }
.prose { display: grid; gap: 1.1rem; max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.9rem; height: 4px; background: var(--water); border-radius: 2px; }
.note { background: var(--brass-soft); border-radius: 10px; padding: 1rem 1.2rem; }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 7.5rem); display: grid; gap: 1rem; }
.aside .plate .big { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; display: block; margin-block: 0.3rem 0.8rem; color: var(--ink); text-decoration: none; }
.aside .btn-call { width: 100%; justify-content: center; }
.rel { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; font-family: var(--f-body); }
.rel a { text-decoration: none; }

/* CTA band */
.band { background: var(--water); color: var(--on-water); }
.band .wrap { padding-block: clamp(2.2rem, 5vw, 3.2rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.band h2 { color: var(--on-water); }
.band p { opacity: 0.85; margin-top: 0.4rem; }
.band .btn { background: var(--on-water); color: var(--water); font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Footer */
.foot { padding-block: 2.2rem 6rem; font-size: 0.9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.foot h3 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.5rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.foot a { color: var(--muted); }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .hero-grid, .two, .content { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .head-call .num { display: none; }
  .head-call .sr { display: inline; }
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    background: var(--water); color: var(--on-water); justify-content: center; align-items: center; gap: 0.6rem;
    padding-top: 0.85rem; padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    text-decoration: none; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Atliktų darbų nuotraukos */
.work { margin: 0; display: grid; gap: 0.5rem; justify-items: start; }
.work img { display: block; height: auto; max-height: 30rem; width: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.work figcaption { font-size: 0.88rem; color: var(--muted); }
.gallery { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.gallery a { text-decoration: none; min-width: 0; }
.gallery .work img { max-height: 22rem; }
.gallery .work figcaption { max-width: 22rem; }
