/* betonopoliravimas.lt – lengvas stilius be karkasų */
:root {
  --ink: #1c1c1e;
  --ink-2: #2a2a2d;
  --text: #2e2e31;
  --muted: #64646a;
  --concrete: #f4f3f0;
  --stone: #e7e5e0;
  --line: #d9d6cf;
  --white: #fff;
  --red: #c61617;
  --red-dark: #9f1112;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--white); }
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-gem { width: 34px; height: 30px; color: var(--red); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.1rem; font-weight: 600; }
.logo-top { color: #d0d0d0; font-weight: 500; }
.logo-bottom { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .sub-toggle { color: #e9e9ea; text-decoration: none; font: inherit; font-size: .95rem; padding: 10px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer; display: block; position: relative; }
.main-nav a:hover, .sub-toggle:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; border-top: 2px solid var(--red); }
.sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 270px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.sub a { color: var(--text); padding: 8px 12px; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--concrete); color: var(--ink); }
.sub a[aria-current="page"]::after { display: none; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.header-phone { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; color: #fff !important; background: var(--red) !important; border-radius: 999px !important; padding: 8px 16px !important; white-space: nowrap; }
.header-phone:hover { background: var(--red-dark) !important; }
.header-phone svg { width: 15px; height: 15px; }

@media (min-width: 981px) { .main-nav .mobile-only { display: none; } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; right: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 16px 20px 32px; overflow-y: auto; display: none; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .sub-toggle { font-size: 1.05rem; width: 100%; text-align: left; padding: 12px; }
  .sub { position: static; box-shadow: none; background: rgba(255,255,255,.04); min-width: 0; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .sub a { color: #e9e9ea; }
  .sub a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .header-phone { justify-content: center; margin-top: 12px; padding: 12px !important; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,20,22,.92) 0%, rgba(20,20,22,.75) 45%, rgba(20,20,22,.35) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 120px) 20px; display: grid; gap: 32px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #e6e6e8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.hero .eyebrow { color: #ff8a8a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.page-hero { background: var(--concrete); padding: 28px 0 40px; border-bottom: 1px solid var(--stone); }
.page-hero .lead { font-size: 1.15rem; max-width: 70ch; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--concrete); }
.section-dark { background: var(--ink); color: #dedee0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #b9b9bd; }
.section-dark .eyebrow { color: #ff8a8a; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); color: inherit; }
.card-link .more { color: var(--red); font-weight: 650; }
.section-dark .card { background: var(--ink-2); border-color: #3a3a3e; color: #dedee0; box-shadow: none; }

.icon { width: 40px; height: 40px; color: var(--red); margin-bottom: 12px; }

/* Split: paveikslėlis + tekstas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 80px); }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split-media .gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-media .gallery-2 img { aspect-ratio: 1 / 1; }
.kicker { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 6px; display: block; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* Sąrašai */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") center / 10px no-repeat; }
.prolist .con::before { background-color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M416 208H32c-17.7 0-32 14.3-32 32v32c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32v-32c0-17.7-14.3-32-32-32z'/%3E%3C/svg%3E"); }

/* Etapai */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 22px 20px 20px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Betono sluoksniai */
.layers { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.layer { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-size: .95rem; }
.layer span:last-child { color: var(--muted); white-space: nowrap; }
.layer-1 { background: #faf9f6; }
.layer-2 { background: #e4e1da url(/assets/img/layer-top.svg) repeat-x left top / auto 100%; }
.layer-3 { background: #d3cfc6 url(/assets/img/layer-sp.svg) repeat-x left top / auto 100%; }
.layer-4 { background: #c4bfb5 url(/assets/img/layer-terrazzo.svg) repeat-x left top / auto 100%; padding: 26px 18px; }
.layer-2, .layer-3, .layer-4 { align-items: flex-start; }
.layer-2 span, .layer-3 span, .layer-4 span { background: rgba(250,249,246,.85); padding: 1px 7px; border-radius: 4px; color: var(--ink, #222); }
.layer-3 { padding-bottom: 30px; }
.layer-4 { padding-bottom: 46px; }
.layer-2 span:last-child, .layer-3 span:last-child, .layer-4 span:last-child { color: #555; }

/* Rezultatas pagal nuimamą sluoksnį */
.finish { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.finish div { border-left: 4px solid var(--red); background: var(--white); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.finish strong { display: block; color: var(--ink); }
.finish span { color: var(--muted); font-size: .95rem; }

/* Tekstas */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.note { background: #fff6f6; border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.quote { font-size: 1.2rem; font-style: italic; color: var(--ink); border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin: 0; }
.quote cite { display: block; font-size: .95rem; font-style: normal; color: var(--muted); margin-top: 8px; }

/* Lentelės (palyginimams) */
.table-wrap { overflow-x: auto; border: 1px solid var(--stone); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stone); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 650; }
tbody tr:nth-child(even) { background: var(--concrete); }

/* DUK */
.faq details { border-bottom: 1px solid var(--stone); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* CTA juosta */
.cta-band { background: linear-gradient(120deg, var(--red-dark), var(--red)); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #ffe3e3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b9bd; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #e2e2e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
/* Pastaba: „1.4fr repeat(auto-fit, …)“ CSS netinkama (fr + auto-fit) – naršyklė ją ignoruodavo ir poraštė virsdavo vienu stulpeliu */
.footer-grid { display: grid; gap: 28px 32px; grid-template-columns: 1.3fr repeat(5, 1fr); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-about { margin-top: 14px; max-width: 34ch; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer li { font-size: .9rem; line-height: 1.35; }

/* Galerija */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide picture { display: block; height: 100%; }
.gallery .wide img { aspect-ratio: auto; height: 100%; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Prieš / po */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.before-after figure { margin: 0; position: relative; }
.before-after img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.before-after figcaption { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.before-after figure:last-child figcaption { background: var(--red); }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }

.page-hero .split-media img { aspect-ratio: 4 / 3; }

/* Kontaktai */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a { font-size: 1.2rem; font-weight: 650; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); }

.wide-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.grid figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

.page-hero .meta{font-size:.85rem;opacity:.75;margin-top:.5rem}
