/* Geist šriftai iš savo serverio (be Google Fonts užklausų, kurios blokavo atvaizdavimą) */
@font-face { font-family: 'Geist'; src: url('assets/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Interjero Elementai 1.1: šviesi tema (tamsi pagal sistemos nustatymą).
   Kampų sistema: kortelės ir nuotraukos 16px, laukeliai 10px, mygtukai – pilnai suapvalinti.
   Z-index skalė: 10 antraštė, 20 mobilusis meniu. */

:root {
    --bg: #f1f2ef;
    --surface: #fafaf8;
    --surface-2: #e7e9e4;
    --text: #17201b;
    --muted: #55605a;
    --line: rgba(23, 32, 27, 0.12);
    --accent: #2d5a44;
    --accent-ink: #f4f7f5;
    --accent-soft: #dfe8e2;
    --band: #23392e;
    --band-text: #eef3ef;
    --band-muted: #b6c7bc;
    --icon-filter: none;
    --shadow: 0 18px 40px -22px rgba(23, 45, 34, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
    --logo-filter: brightness(0) saturate(100%) invert(10%) sepia(14%) saturate(900%) hue-rotate(95deg);
    --error: #b3261e;
    --partner-filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1311;
        --surface: #161c19;
        --surface-2: #1d2521;
        --text: #e6ebe8;
        --muted: #a3b0a8;
        --line: rgba(230, 235, 232, 0.12);
        --accent: #8cc4a6;
        --accent-ink: #0f1311;
        --accent-soft: #1f2e26;
        --band: #18261f;
        --band-text: #e6ebe8;
        --band-muted: #a7bcae;
        --icon-filter: invert(0.92);
        --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
        --logo-filter: none;
        --error: #ffb4ab;
        --partner-filter: brightness(0) invert(1);
    }
}
:root[data-theme="dark"] {
    --bg: #0f1311;
    --surface: #161c19;
    --surface-2: #1d2521;
    --text: #e6ebe8;
    --muted: #a3b0a8;
    --line: rgba(230, 235, 232, 0.12);
    --accent: #8cc4a6;
    --accent-ink: #0f1311;
    --accent-soft: #1f2e26;
    --band: #18261f;
    --band-text: #e6ebe8;
    --band-muted: #a7bcae;
    --icon-filter: invert(0.92);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
    --logo-filter: none;
    --error: #ffb4ab;
    --partner-filter: brightness(0) invert(1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.ico { width: 1.1em; height: 1.1em; filter: var(--icon-filter); flex: none; }

.wrap { width: min(1280px, 100% - 3rem); margin-inline: auto; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 30;
    padding: 0.6rem 1rem; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Mygtukai ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; padding: 0 1.4rem;
    border: 1px solid transparent; border-radius: 999px;
    font: 500 0.98rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn-quiet { border-color: var(--line); color: var(--text); }
.btn-quiet:hover { border-color: var(--text); }
.btn-quiet .ico { transition: transform 0.25s var(--ease); }
.btn-quiet:hover .ico { transform: translateX(3px); }
.btn-sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ── Antraštė (kaip senojoje svetainėje) ── */
.header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 96px; transition: height 0.3s ease; }
.site-header.is-stuck .header-row { height: 76px; }
.brand img { height: 64px; width: auto; transition: height 0.3s ease; }
.site-header.is-stuck .brand img { height: 52px; }
.nav { display: flex; gap: 2rem; margin-inline: auto; }
.nav a {
    color: var(--muted); text-decoration: none;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a {
    min-width: 2.2rem; padding: 0.3rem 0.55rem; border-radius: 999px; text-align: center;
    font: 500 0.75rem var(--font); letter-spacing: 0.06em; color: var(--muted); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
.lang-switch a:not([aria-current]):hover { color: var(--text); }
.header-phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }
.theme-toggle {
    display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
    border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--text); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; margin: 6px auto; background: var(--text); transition: transform 0.25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ── Pagrindinis langas per visą plotį ── */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(560px, calc(100svh - 96px), 820px);
    overflow: hidden;
}
/* Nuotrauka dešinėje pusėje, beveik originalaus dydžio (be ištempimo); kairysis kraštas pereina į foną */
.hero-bg {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: -2;
    width: min(56%, 980px); height: 100%; object-fit: cover; object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
.hero-inner { padding-block: 4rem; }
.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.6rem, 4.1vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
}
.hero h1 .accent { display: block; color: var(--accent); font-weight: 400; white-space: nowrap; }
.lead { max-width: 30rem; margin-top: 1.4rem; font-size: clamp(1.05rem, 0.35vw + 0.95rem, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero .btn-quiet { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.hero-services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.6rem; }
.hero-services::-webkit-scrollbar { display: none; }
.hero-services a {
    flex: none; padding: 0.5rem 1rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 0.85rem; color: var(--text); text-decoration: none; white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-services a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sekcijų antraštės (vertikaliai) ── */
.section-head { max-width: 44rem; margin-bottom: 2.6rem; }
.section-head h2, .tech h2, .process h2, .about h2, .contact h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; }
.section-head p { margin-top: 0.9rem; color: var(--muted); font-size: 1.05rem; }

/* ── Paslaugos: bento ── */
.services { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: 1rem;
}
.tile {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-photo {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tile::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(20, 16, 12, 0.04) 0%, rgba(20, 16, 12, 0.45) 45%, rgba(18, 15, 12, 0.9) 100%);
    opacity: 0; transition: opacity 0.5s var(--ease);
}
.tile.has-photo .tile-photo, .tile.has-photo::after { opacity: 1; transform: none; }
.tile-body { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; padding: 1.5rem; }
.tile-icon { width: 28px; height: 28px; margin-bottom: auto; filter: var(--icon-filter); transition: filter 0.3s ease; }
.tile h3 { font-size: 1.2rem; margin-top: 1.2rem; }
.tile-xl h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.tile p { color: var(--muted); font-size: 0.95rem; transition: color 0.3s ease; }
.tile-more {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 0.3rem; max-height: 0; overflow: hidden; opacity: 0;
    font-size: 0.9rem; transition: max-height 0.45s var(--ease), opacity 0.3s ease;
}
.tile-more li { padding-left: 1.5rem; position: relative; }
.tile-more li::before {
    content: ''; position: absolute; left: 0; top: 0.35em; width: 1rem; height: 1rem;
    background: url('assets/icons/check.svg') center / contain no-repeat;
    filter: invert(1);
}
.tile-link {
    display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start;
    margin-top: 0.4rem; font-size: 0.9rem; font-weight: 500; text-decoration: none;
    color: var(--accent);
}
.tile-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Nuotraukų langeliai: tekstas visada šviesus */
.tile.has-photo, .tile.has-photo p { color: #f2f5f3; }
.tile.has-photo p { color: rgba(242, 245, 243, 0.82); }
.tile.has-photo .tile-icon, .tile.has-photo .tile-link .ico { filter: invert(1); }
.tile.has-photo .tile-link { color: #cfe6d8; }

/* Užvedus / fokusavus: nuotrauka ir techniniai punktai */
.tile:hover, .tile:focus-within { border-color: var(--accent); box-shadow: var(--shadow); }
.tile:hover .tile-photo, .tile:focus-within .tile-photo { opacity: 1; }
.tile:hover::after, .tile:focus-within::after { opacity: 1; }
.tile:hover h3, .tile:focus-within h3 { color: #f2f5f3; }
.tile:hover p, .tile:focus-within p { color: rgba(242, 245, 243, 0.82); }
.tile:hover .tile-icon, .tile:focus-within .tile-icon { filter: invert(1); }
.tile:hover .tile-link, .tile:focus-within .tile-link { color: #cfe6d8; }
.tile:hover .tile-link .ico, .tile:focus-within .tile-link .ico { filter: invert(1); }
.tile:hover .tile-more, .tile:focus-within .tile-more { max-height: 12rem; opacity: 1; color: #f2f5f3; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Techninė informacija ── */
.tech { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--surface); border-block: 1px solid var(--line); }
.tech-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tech-intro { position: sticky; top: 104px; }
.tech-intro p { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; color: var(--accent); font-weight: 500; text-decoration: none; }
.text-link:hover .ico { transform: translateX(3px); }
.text-link .ico { transition: transform 0.25s var(--ease); }
.spec-groups { display: grid; gap: 1rem; }
.spec-group { padding: 1.6rem; border-radius: var(--radius); background: var(--bg); }
.spec-group h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent); }
.spec-group dl { display: grid; gap: 0.9rem; margin: 0; }
.spec-group dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.spec-group dt { color: var(--muted); font-size: 0.92rem; }
.spec-group dd { margin: 0; font-size: 0.97rem; }
.materials-head { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 1.2rem; }
.materials-head h3 { font-size: 1.35rem; }
.materials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.material {
    padding: 1.4rem; border-radius: var(--radius);
    background: var(--bg); border: 1px solid var(--line); min-height: 150px;
}
.material h4 { font-size: 1.05rem; }
.material p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }

/* ── Procesas: žalia juosta ── */
.process { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--band); color: var(--band-text); }
.process h2 { max-width: 20ch; }
.steps {
    list-style: none; margin: 3rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem;
}
.steps li { border-top: 1px solid rgba(238, 243, 239, 0.22); padding-top: 1.2rem; }
.step-n { font: 500 0.95rem var(--mono); color: var(--band-muted); }
.steps h3 { font-size: 1.15rem; margin-top: 0.8rem; }
.steps p { margin-top: 0.5rem; color: var(--band-muted); font-size: 0.93rem; }

/* ── Apie mus ── */
.about {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem); align-items: center;
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.about-copy p { margin-top: 1rem; color: var(--muted); max-width: 38rem; }
.about-copy p a { color: var(--accent); font-weight: 500; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 2.4rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 0.2rem; }
.stats dt { color: var(--muted); font-size: 0.88rem; }
.stats dd { margin: 0; font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }

/* ── Kontaktai ── */
.contact { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info > p { margin-top: 1rem; color: var(--muted); max-width: 30rem; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-list .ico { margin-top: 0.2rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.calc-link {
    display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; padding: 1rem 1.2rem;
    border-radius: var(--radius); background: var(--accent-soft); text-decoration: none;
    transition: background 0.2s ease;
}
.calc-link span { flex: 1; font-size: 0.95rem; }
.calc-link:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); }

.form { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
    background: var(--surface); color: var(--text); font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 0; color: var(--error); font-size: 0.88rem; }
.form-status { margin-top: 0.9rem; font-size: 0.95rem; }
.form-status.ok { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Partneriai ir poraštė ── */
.partners { display: grid; justify-items: center; gap: 1.6rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.partners-title { margin: 0; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 1rem; }
.partners-title::before, .partners-title::after { content: ''; width: 2.5rem; height: 1px; background: var(--line); }
.partners-logos { display: flex; justify-content: center; align-items: flex-start; gap: 4rem; flex-wrap: wrap; }
.partners a { display: grid; justify-items: center; gap: 0.6rem; text-decoration: none; }
.partners a span { font-size: 0.8rem; color: var(--muted); transition: color 0.2s ease; }
.partners a:hover span { color: var(--accent); }
.partners img { height: 48px; width: auto; filter: var(--partner-filter); opacity: 0.7; transition: opacity 0.2s ease, filter 0.2s ease; }
.partners a:hover img { opacity: 1; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer-row { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-logo { height: 72px; width: auto; }
.footer-row nav { display: flex; gap: 1.4rem; margin-left: auto; }
.footer-row nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-row nav a:hover { color: var(--text); }
.footer-row p { color: var(--muted); font-size: 0.88rem; }

/* ── Atsiradimas slenkant ── */
.reveal { opacity: 0; transition: opacity 0.6s ease; }
.reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; }
}

/* ── Planšetė ── */
@media (max-width: 1024px) {
    .nav { gap: 1.2rem; }
    .header-phone span { display: none; }
    .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Telefonas ── */
@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .nav {
        position: fixed; inset: 72px 0 auto 0; z-index: 20;
        flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1.5rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
    }
    .nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
    .header-actions { margin-left: auto; }
    .tech-grid, .about, .contact-grid { grid-template-columns: 1fr; }
    .header-row, .site-header.is-stuck .header-row { height: 72px; }
    .brand img, .site-header.is-stuck .brand img { height: 48px; }
    .nav { margin-inline: 0; }
    .nav a { letter-spacing: 0.08em; }
    .hero { min-height: 0; align-items: flex-end; }
    .hero h1 .accent { white-space: normal; }
    .hero-inner { padding-block: 16rem 2.5rem; min-width: 0; }
    .hero-bg {
        width: 100%; height: 22rem; bottom: auto;
        -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    }
    .tech-intro { position: static; }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 2rem); }
    .header-actions .btn-sm, .header-actions .lang-switch, .header-phone { display: none; }
    .materials { grid-template-columns: 1fr; }
    .brand img { height: 38px; }
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile, .tile-xl, .tile-wide { grid-column: auto; grid-row: auto; min-height: 240px; }
    .steps { grid-template-columns: 1fr; gap: 1.4rem; }
    .spec-group dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
    .field-row { grid-template-columns: 1fr; }
    .footer-row nav { margin-left: 0; flex-wrap: wrap; }
    .partners-logos { gap: 2.5rem; }
}

/* Logotipas: šviesioje temoje tamsus vienspalvis (auksinis originalas šviesiame fone per blankus) */
.brand img, .footer-logo { filter: var(--logo-filter); }


/* Platus langelis be nuotraukos (CNC): piktograma kairėje, tekstas dešinėje */
.tile-wide:not(.has-photo) .tile-body { display: grid; grid-template-columns: auto 1fr; column-gap: 1.4rem; align-content: center; }
.tile-wide:not(.has-photo) .tile-icon { grid-row: span 4; margin: 0.2rem 0 0; width: 40px; height: 40px; }
.tile-wide:not(.has-photo) h3 { margin-top: 0; }
@media (max-width: 600px) { .tile-wide:not(.has-photo) .tile-body { display: flex; } .tile-wide:not(.has-photo) .tile-icon { width: 28px; height: 28px; } }

/* =====================================================================
   VIDINIAI PUSLAPIAI: ES parama, užsakymas
   ===================================================================== */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin-top: 1rem; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.035em; }
.page-head p { margin-top: 0.8rem; max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

/* ── Paslaugos puslapis (/faneravimas/) ── */
.svc-cover { margin-block: 0 clamp(2.5rem, 5vw, 4rem); }
.svc-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-prose { max-width: 44rem; }
.svc-prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; }
.svc-prose h2:not(:first-child) { margin-top: 2.4rem; }
.svc-prose p { margin-top: 0.9rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.svc-prose strong { color: var(--text); font-weight: 600; }
.svc-prose a, .faq a { color: var(--accent); }
.svc-specs { position: sticky; top: 6.5rem; background: var(--surface); border: 1px solid var(--line); }
.svc-specs dl > div { grid-template-columns: 7.5rem 1fr; }
.svc-specs .btn { margin-top: 1.5rem; }
.svc-block { margin-top: clamp(3.5rem, 6vw, 5rem); }
.svc-block > h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; }
.svc-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.6rem; }
.svc-steps li { border-top-color: var(--line); }
.svc-steps .step-n { color: var(--accent); }
.svc-steps p { color: var(--muted); }
.svc-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.svc-gallery figure { margin: 0; }
.svc-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.svc-gallery figcaption { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.faq { margin-top: 1.4rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;
    font-weight: 500; font-size: 1.04rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font: 400 1.4rem/1 var(--mono); color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.2rem; color: var(--muted); max-width: 46rem; }
.svc-block:last-child { margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.tile-link-more { margin-top: 0; }
@media (max-width: 1024px) {
    .svc-layout { grid-template-columns: 1fr; }
    .svc-specs { position: static; }
    .svc-steps, .svc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .svc-cover img { aspect-ratio: 4 / 3; }
    .svc-steps { grid-template-columns: 1fr; }
}

/* ── ES parama ── */
.eu {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem); padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.eu-logo { margin: 0; padding: 1.5rem; border-radius: var(--radius-sm); background: #ffffff; display: grid; place-items: center; align-self: start; }
.eu-logo img { width: 100%; max-width: 420px; }
.eu-copy h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.eu-copy p { margin-top: 1rem; color: var(--muted); max-width: 44rem; }
.eu-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.eu-facts div { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg); }
.eu-facts dt { color: var(--muted); font-size: 0.85rem; }
.eu-facts dd { margin: 0.2rem 0 0; font-weight: 500; }

/* ── Užsakymas ── */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.order-layout[hidden] { display: none; }
.order-form { display: grid; gap: 1rem; }
.order-part { margin: 0; padding: clamp(1.3rem, 2.6vw, 2rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.order-part legend { display: flex; align-items: center; gap: 0.7rem; padding: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; float: left; width: 100%; }
.order-part legend + * { clear: both; }
.part-n {
    display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font: 500 0.85rem var(--mono);
}
.part-hint { margin: 0.4rem 0 0; padding-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.2rem; }
.check-card {
    position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: start;
    padding: 1rem 2.6rem 1rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--bg); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.check-card .ico { grid-row: span 2; margin-top: 0.1rem; }
.check-title { font-weight: 500; font-size: 0.97rem; }
.check-desc { color: var(--muted); font-size: 0.85rem; }
.check-card input {
    position: absolute; top: 1rem; right: 1rem; width: 1.15rem; height: 1.15rem; margin: 0;
    accent-color: var(--accent); cursor: pointer;
}
.check-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.check-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline-check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.2rem 0 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--bg); font-size: 0.93rem; cursor: pointer; }
.inline-check input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.param-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; margin-top: 1.2rem; transition: opacity 0.2s ease; }
.order-part .inline-check + .param-grid { margin-top: 0; }
.param-grid.is-disabled { opacity: 0.4; }
.dropzone {
    position: relative; display: grid; justify-items: center; gap: 0.5rem; margin-top: 1.2rem; padding: 2rem 1.2rem;
    border: 1.5px dashed color-mix(in srgb, var(--text) 30%, transparent); border-radius: var(--radius-sm);
    background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop-hint { color: var(--muted); font-size: 0.84rem; max-width: 34rem; }
.file-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); background: var(--bg); font-size: 0.9rem; }
.file-list.is-over li { outline: 1px solid var(--error); }
.file-remove { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.file-remove:hover { background: var(--surface-2); }

.order-summary {
    position: sticky; top: 96px; padding: 1.6rem; border-radius: var(--radius);
    background: var(--band); color: var(--band-text);
}
.order-summary h2 { font-size: 1.3rem; }
.order-summary dl { display: grid; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.order-summary dt { color: var(--band-muted); font-size: 0.82rem; }
.order-summary dd { margin: 0.15rem 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.order-summary .btn-primary { background: var(--band-text); color: var(--band); }
.order-summary .btn-primary:hover { background: #ffffff; }
.order-summary .form-status { color: #ffd2cc; }
.summary-note { margin-top: 1rem; font-size: 0.85rem; color: var(--band-muted); }
.summary-note a { color: var(--band-text); white-space: nowrap; }

.order-done {
    display: grid; justify-items: start; gap: 0.9rem; margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
    padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius); background: var(--accent-soft);
}
.order-done[hidden] { display: none; }
.order-done h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.order-done p { color: var(--muted); }

@media (max-width: 960px) {
    .order-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .eu { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .check-grid, .param-grid, .eu-facts { grid-template-columns: 1fr; }
}

/* Formos dalių antraštės: tarpas iki turinio */
.order-part legend { margin-bottom: 1.2rem; }
.order-part .part-hint { margin-top: -0.6rem; padding-top: 0; }
.order-part .check-grid, .order-part .dropzone, .order-part .inline-check { margin-top: 0; }
.order-part legend + .param-grid { margin-top: 0; }
.order-part .part-hint + .check-grid { margin-top: 1rem; }

/* ── Lukšto rašto derinimas ── */
.matching { margin-top: clamp(3rem, 6vw, 5rem); }
.matching-head { max-width: 44rem; margin-bottom: 1.6rem; }
.matching-head h3 { font-size: 1.6rem; }
.matching-head p { margin-top: 0.6rem; color: var(--muted); }
.matching-head .matching-key { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; }
.matching-key span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #9a7146; color: #fff7eb; font-weight: 600; font-size: 0.8rem; flex: none; }
.match-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
.match img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.match h4 { margin-top: 0.9rem; font-size: 1.05rem; }
.match-term { margin-top: 0.15rem; font: 0.8rem var(--mono); color: var(--accent); }
.match p:last-child { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.field-help { margin-left: 0.4rem; font-weight: 400; font-size: 0.85rem; color: var(--accent); }
@media (max-width: 1024px) { .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .match-grid { grid-template-columns: 1fr; } }

/* Dešinės 2 × 2 kortelės: nuotrauka sulieta, užvedus išryškėja */
.tile.blur-photo .tile-photo { filter: blur(5px) saturate(0.9); transform: scale(1.08); transition: filter 0.45s ease, transform 0.45s ease; }
.tile.blur-photo:hover .tile-photo, .tile.blur-photo:focus-within .tile-photo { filter: none; transform: scale(1.02); }
.tile-more u { text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tile.blur-photo .tile-photo { transition: none; } }
.tile p u { text-underline-offset: 3px; font-weight: 600; }

/* Rečiau naudojami derinimo būdai: užvedus išsiskleidžia */
.match-rare {
    margin-top: 1.6rem; padding: 1.1rem 1.4rem; border-radius: var(--radius);
    border: 1px dashed color-mix(in srgb, var(--text) 25%, transparent); background: var(--bg);
    transition: border-color 0.25s ease;
}
.match-rare-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.match-rare-head h4 { font-size: 1.02rem; }
.match-rare-hint { font-size: 0.85rem; color: var(--muted); }
.match-rare ul, .match-rare .match-rare-cta {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.3s ease, margin 0.3s ease;
}
.match-rare ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; }
.match-rare li { font-size: 0.92rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }
.match-rare li strong { display: block; color: var(--text); font-weight: 500; }
.match-rare li .match-term { display: block; margin: 0.1rem 0 0.2rem; }
.match-rare-cta { font-size: 0.92rem; }
.match-rare-cta a { color: var(--accent); font-weight: 500; }
.match-rare:hover, .match-rare:focus-within { border-color: var(--accent); }
.match-rare:hover ul, .match-rare:focus-within ul { max-height: 48rem; opacity: 1; margin-top: 1rem; }
.match-rare:hover .match-rare-cta, .match-rare:focus-within .match-rare-cta { max-height: 4rem; opacity: 1; margin-top: 1rem; }
.match-rare:hover .match-rare-hint, .match-rare:focus-within .match-rare-hint { display: none; }
@media (max-width: 600px) { .match-rare ul { grid-template-columns: 1fr; } }
/* Lukšto pjūviai: tangentas, pusiau tangentas, radialas */
.cuts { margin-top: 2.6rem; }
.cuts-title { font-size: 1.25rem; }
.cuts-lead { max-width: 44rem; margin-top: 0.5rem; color: var(--muted); }
.cut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.2rem; margin-top: 1.2rem; }
@media (max-width: 600px) { .cut-grid { grid-template-columns: 1fr; } }
.spec-group dd a { color: var(--accent); font-weight: 500; }

/* ── Užsakymo konfigūratorius ── */
.pick-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.pick {
    display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.05rem;
    border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
    font: 500 0.93rem var(--font); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pick:hover { border-color: var(--accent); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick[aria-pressed="true"] .ico { filter: invert(1); }
:root[data-theme="dark"] .pick[aria-pressed="true"] .ico { filter: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pick[aria-pressed="true"] .ico { filter: none; } }

.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; margin-top: 1.2rem; }
.cfg-grid:empty, .cfg-grid:not(:has(.cfg:not([hidden]))) { display: none; }
.cfg {
    display: grid; gap: 1rem; align-content: start; padding: 1.1rem 1.1rem 1.2rem;
    border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--bg);
    animation: cfgIn 0.3s ease both;
}
.cfg[hidden] { display: none; }
@keyframes cfgIn { from { opacity: 0; } to { opacity: 1; } }
.cfg-head { display: flex; align-items: center; gap: 0.6rem; }
.cfg-head h3 { flex: 1; font-size: 1rem; }
.cfg-close { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.cfg-close:hover { background: var(--surface-2); }
.cfg-label { margin-bottom: 0.4rem; font-size: 0.83rem; font-weight: 500; color: var(--muted); }
.cfg-q[hidden] { display: none; }
.cfg-q select { width: 100%; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--text) 28%, transparent); background: var(--surface); color: var(--text); font: inherit; }
.cfg-hint, .cfg-note { margin-top: 0.4rem; font-size: 0.83rem; color: var(--muted); }
.cfg-hint a { color: var(--accent); font-weight: 500; }
.cfg-note { margin: 0; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); }

.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border-radius: 999px; background: var(--surface-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg label, .chips label { position: relative; cursor: pointer; }
.seg input, .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 0.38rem 0.85rem; border-radius: 999px; font-size: 0.88rem; color: var(--muted); transition: background 0.2s ease, color 0.2s ease; }
.seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.chips span { display: inline-block; padding: 0.38rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; transition: all 0.2s ease; }
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.chips input:checked + span::before { content: '✓ '; color: var(--accent); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { border-radius: 14px; }
.seg span { border-radius: 11px; }

/* Kelių paslaugų pasirinkimas: žymimasis langelis mygtuke ir skaitiklis */
.pick::before {
    content: ''; flex: none; display: grid; place-items: center; width: 1.05rem; height: 1.05rem;
    border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--text) 40%, transparent);
    font-size: 0.72rem; line-height: 1; font-weight: 700;
}
.pick[aria-pressed="true"]::before { content: '✓'; border-color: var(--accent-ink); background: var(--accent-ink); color: var(--accent); }
.pick-count { margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted); }
.pick-count strong { color: var(--accent); }
.part-hint strong { color: var(--text); font-weight: 600; }

/* 2 dalis: detalių lentelės pagal paslaugas */
.dims { transition: opacity 0.2s ease; }
.dims.is-disabled { opacity: 0.4; }
.dims-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; border-bottom: 1px solid var(--line); }
.dims-tabs[hidden] { display: none; }
.dims-tab {
    position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.95rem; margin-bottom: -1px;
    border: 1px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: transparent;
    color: var(--muted); font: 500 0.92rem var(--font); cursor: pointer;
}
.dims-tab:hover { color: var(--text); }
.dims-tab[aria-selected="true"] { border-color: var(--line); border-bottom-color: var(--surface); background: var(--surface); color: var(--text); }
.dims-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; top: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.dims-tab .n { min-width: 1.35rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--surface-2); font: 500 0.75rem var(--mono); text-align: center; }
.dims-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dims-panel { padding-top: 1.1rem; }
.dims-panel[hidden] { display: none; }
.dims-panel .param-grid { margin-top: 0; }
.dims-hint { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--muted); }
.dims-hint .ico { flex: none; margin-top: 0.1rem; }

.dim-head, .dim-row {
    display: grid; column-gap: 0.5rem;
    grid-template-columns: 1.4rem minmax(7rem, 1fr) 3.9rem 5rem 5rem 3.9rem 7.2rem 2.1rem;
}
.dim-head { padding: 0 calc(0.6rem + 1px) 0.35rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.dim-head .is-grain { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dim-head span:nth-child(7) { grid-column: 7; }
.dim-rows { display: grid; gap: 0.5rem; counter-reset: dim; }
.dim-row {
    row-gap: 0.45rem; align-items: start; padding: 0.6rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--bg); counter-increment: dim;
}
.dim-n { grid-row: 1 / 3; align-self: center; font: 500 0.8rem var(--mono); color: var(--muted); }
.dim-n::before { content: counter(dim); }
.dim-f { display: grid; gap: 0.25rem; min-width: 0; }
.dim-f > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dim-notes { grid-column: 2 / 7; }
/* B pusė: šalia pastabų, antroje eilutėje */
.dim-row.has-bside .dim-notes { grid-column: 2 / 4; }
.dim-bside { grid-column: 4 / 7; }
.dim-row input, .dim-row select, .dims-panel .field select {
    width: 100%; min-width: 0; padding: 0.5rem 0.6rem; border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
    background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem;
}
.dim-row input[type="number"] { font-family: var(--mono); font-size: 0.85rem; -moz-appearance: textfield; }
.dim-row input::-webkit-outer-spin-button, .dim-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim-row input:focus, .dim-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.dim-edges { grid-column: 7; grid-row: 1 / 3; display: grid; gap: 0.35rem; align-content: start; }
.dim-act { grid-column: 8; grid-row: 1 / 3; display: grid; gap: 0.25rem; align-content: start; }
.dim-btn { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.dim-btn:hover:not([disabled]) { background: var(--surface-2); }
.dim-btn[disabled] { opacity: 0.3; cursor: default; }
.dim-btn .ico, .dims-add .ico, .dims-hint .ico { filter: var(--icon-filter); }
.dims-add { margin-top: 0.7rem; display: inline-flex; gap: 0.45rem; background: transparent; color: var(--text); }

/* Briaunų schema: plokštė su rašto linijomis (ilgis = rašto kryptis), keturios paspaudžiamos kraštinės */
.edge-box {
    position: relative; width: calc(var(--bw, 92px) + 1.1rem); height: calc(var(--bh, 46px) + 1.1rem);
    margin-inline: auto; transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.edge-box::before {
    content: ''; position: absolute; inset: 0.55rem; border-radius: 2px;
    border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
    background: repeating-linear-gradient(176deg, transparent 0 4px, color-mix(in srgb, var(--accent) 24%, transparent) 4px 5px), var(--surface);
}
.edge-box[data-grain="v"]::before {
    background: repeating-linear-gradient(86deg, transparent 0 4px, color-mix(in srgb, var(--accent) 24%, transparent) 4px 5px), var(--surface);
}
.edge { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.edge::after { content: ''; border-radius: 3px; background: color-mix(in srgb, var(--text) 18%, transparent); transition: background 0.15s ease; }
.edge[data-pos="top"], .edge[data-pos="bottom"] { left: 0.55rem; right: 0.55rem; height: 0.55rem; }
.edge[data-pos="top"] { top: 0; }
.edge[data-pos="bottom"] { bottom: 0; }
.edge[data-pos="left"], .edge[data-pos="right"] { top: 0.55rem; bottom: 0.55rem; width: 0.55rem; }
.edge[data-pos="left"] { left: 0; }
.edge[data-pos="right"] { right: 0; }
.edge[data-pos="top"]::after, .edge[data-pos="bottom"]::after { width: 100%; height: 4px; }
.edge[data-pos="left"]::after, .edge[data-pos="right"]::after { width: 4px; height: 100%; }
.edge:hover::after { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.edge[aria-pressed="true"]::after { background: var(--accent); }
.edge:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 3px; }
.dim-edges select { padding: 0.3rem 0.4rem; font-size: 0.8rem; }
.dim-edges select[hidden] { display: none; }

@media (max-width: 760px) {
    .dim-head { display: none; }
    .dims-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .dims-tab { flex: none; }
    .dim-row { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0.8rem; align-items: end; }
    .dim-n { grid-row: 1; grid-column: 1 / 5; align-self: center; }
    .dim-n::before { content: '#' counter(dim); }
    .dim-act { grid-row: 1; grid-column: 5 / 7; display: flex; justify-content: flex-end; }
    .dim-f > span { position: static; width: auto; height: auto; clip-path: none; font-size: 0.78rem; color: var(--muted); }
    .dim-f { grid-column: span 2; }
    .dim-f.dim-name { grid-column: 1 / -1; }
    .dim-edges { grid-column: span 4; grid-row: auto; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .dim-edges .edge-box { margin-inline: 0; }
    .dim-f.dim-notes, .dim-row.has-bside .dim-f.dim-notes { grid-column: 1 / -1; }
    .dim-f.dim-bside { grid-column: 1 / -1; }
}

/* =====================================================================
   HERO 3D: lukšto detalės sluoksniai (išsiskleidžia ir susipresuoja)
   Pagal ie-hero-3d.html; tekstūros – Poly Haven lukšto skenai (CC0), MDF – sugeneruota.
   ===================================================================== */
.hero.hero-3d { display: block; min-height: 0; overflow: hidden; }
.hero.hero-3d::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(55% 70% at 78% 55%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
        radial-gradient(40% 50% at 72% 85%, rgba(160, 120, 70, 0.12), transparent 70%);
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 1.5rem;
    min-height: clamp(600px, calc(100svh - 96px), 820px);
}
.hero-3d .hero-inner { padding-block: 3rem; }
.h3d-supplier { margin-top: 1.6rem; font-size: 0.88rem; color: var(--muted); }
.h3d-supplier a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.h3d-supplier a:hover { border-color: var(--accent); }

.h3d-wrap { position: relative; height: min(76vh, 660px); display: flex; align-items: center; justify-content: center; }
.h3d-scene {
    --rx: 58deg; --rz: -38deg;
    position: relative; width: 640px; height: 600px; flex: none;
    perspective: 1700px; perspective-origin: 50% 35%;
    transform: scale(var(--h3d-scale, 1)); transform-origin: center;
}
.h3d-stage {
    position: absolute; left: 40%; top: 54%; width: 440px; height: 300px; margin: -150px 0 0 -220px;
    transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz));
}
.h3d-shadow {
    position: absolute; inset: -8% -6%; transform: translateZ(-1px); border-radius: 24px;
    background: radial-gradient(closest-side, rgba(30, 25, 15, 0.38), transparent); filter: blur(14px);
    opacity: 0.55; transition: opacity 0.9s var(--h3d-ease), transform 0.9s var(--h3d-ease);
}
.h3d-scene { --h3d-ease: cubic-bezier(.7, 0, .2, 1); }
.h3d-scene.is-pressed .h3d-shadow { opacity: 0.9; transform: translateZ(-1px) scale(0.97); }

.h3d-slab { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--h3d-ease); }
.h3d-face { position: absolute; background-color: var(--c, #c9a87a); }
.h3d-top { inset: 0; transform: translateZ(var(--t)); background-size: cover; background-position: center; overflow: hidden; }
.h3d-bot { inset: 0; filter: brightness(0.55); }
.h3d-front, .h3d-back { left: 0; width: 100%; height: var(--t); transform-origin: top; transform: rotateX(90deg); }
.h3d-front { top: 100%; filter: brightness(0.78); }
.h3d-back { top: 0; filter: brightness(0.58); }
.h3d-left, .h3d-right { top: 0; width: var(--t); height: 100%; transform-origin: left; transform: rotateY(-90deg); }
.h3d-left { left: 0; filter: brightness(0.66); }
.h3d-right { left: 100%; filter: brightness(0.5); }

/* Lukštas: tikra tekstūra viršuje, ta pati tekstūra kraštuose (matosi sluoksnio storis) */
.h3d-veneer .h3d-face { background-image: var(--tex); background-size: 100% 2400%; }
.h3d-veneer .h3d-left, .h3d-veneer .h3d-right { background-size: 2400% 100%; }
.h3d-veneer .h3d-top { background-image: var(--tex); background-size: cover; }
/* Tikroviškumas: švelnus šviesos kritimas, lako atspindys, lengvas kraštų patamsėjimas */
.h3d-veneer .h3d-top::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(150deg, rgba(255, 248, 235, 0.16) 0%, rgba(255, 248, 235, 0) 45%, rgba(20, 12, 4, 0.16) 100%),
        radial-gradient(120% 90% at 30% 20%, transparent 55%, rgba(20, 12, 4, 0.14) 100%);
}
.h3d-veneer .h3d-top::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0) 64%);
    background-size: 220% 100%; background-position: var(--sheen, 60%) 0;
}
.h3d-veneer.is-dim .h3d-top { filter: brightness(0.82) saturate(0.9); }
.h3d-glue .h3d-face { background: rgba(236, 214, 140, 0.5); }
.h3d-glue .h3d-top { box-shadow: inset 0 0 40px rgba(255, 240, 190, 0.5); }
.h3d-core .h3d-face { background-color: #b0916b; background-image: url('assets/img/3d/mdf.webp'); background-size: 140px; }
.h3d-core .h3d-top::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.1));
}

/* Užrašai: visada atsukti į žiūrovą */
.h3d-tag {
    position: absolute; left: 100%; top: 100%; width: 0; height: 0; transform-style: preserve-3d;
    transform: translateZ(calc(var(--t) / 2)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1));
    transition: opacity 0.5s;
}
.h3d-tag > div { position: absolute; left: 0; top: 0; transform: translate(10px, -50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.h3d-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.h3d-ln { width: 42px; height: 1px; background: var(--muted); opacity: 0.5; }
.h3d-tag b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.h3d-tag small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.h3d-scene.is-pressed .h3d-tag { opacity: 0; }

.h3d-controls { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; }
.h3d-species { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); }
.h3d-sp { display: flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; background: transparent; color: var(--text); font: 500 0.86rem/1 var(--font); padding: 7px 13px 7px 7px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.h3d-sp i { width: 22px; height: 22px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.h3d-sp[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.h3d-state { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 0.8rem; color: var(--muted); }
.h3d-state button { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 0.8rem/1 var(--font); padding: 8px 15px; border-radius: 999px; cursor: pointer; }
.h3d-state button:hover { border-color: var(--accent); }
.h3d-pulse { width: 8px; height: 8px; border-radius: 50%; background: #c08a3e; transition: background 0.4s ease; }
.h3d-wrap.is-pressed .h3d-pulse { background: var(--accent); }

@media (max-width: 1280px) { .h3d-scene { --h3d-scale: 0.9; } }
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
    .hero-3d .hero-inner { padding-block: 2.5rem 0; }
    .h3d-wrap { height: 560px; }
}
@media (max-width: 700px) {
    .h3d-scene { --h3d-scale: 0.6; }
    .h3d-wrap { height: 430px; margin-inline: -1rem; }
    .h3d-tag { display: none; }
    .h3d-stage { left: 50%; }
    .h3d-sp span { display: none; }
    .h3d-sp { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .h3d-slab, .h3d-shadow { transition: none; }
}
/* Hero 3D: žetonai pusės pločio stulpelyje lūžta į kelias eilutes; scena paslinkta, kad tilptų užrašai */
.hero-3d .hero-services { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
@media (min-width: 1101px) {
    .h3d-scene { --h3d-scale: 0.86; }
    .h3d-stage { left: 34%; }
}
@media (min-width: 1101px) and (max-width: 1280px) { .h3d-scene { --h3d-scale: 0.76; } }
/* Suspaustoje detalėje vidinės plokštumos sutampa ir mirga: paslepiame jas, kai sluoksniai jau susiglaudę */
.h3d-face { transition: visibility 0s; }
.h3d-scene.is-pressed .h3d-slab:not(:last-child) .h3d-top,
.h3d-scene.is-pressed .h3d-slab:not(.is-dim) .h3d-bot { visibility: hidden; transition-delay: 1.35s; }
/* 3D detalė techninės informacijos kairėje pusėje (lipni kartu su įvadu) */
.tech { overflow-x: clip; }
.tech-intro { min-width: 0; }
.tech-intro .h3d-wrap { height: 480px; margin-top: 1rem; justify-content: flex-start; }
.tech-intro .h3d-scene { --h3d-scale: 0.66; transform-origin: left center; margin-left: 20px; }
.tech-intro .h3d-tag b { font-size: 1.15rem; }
.tech-intro .h3d-tag small { display: none; }
@media (min-width: 1101px) and (max-width: 1320px) { .tech-intro .h3d-scene { --h3d-scale: 0.56; margin-left: 40px; } }
.nav a { white-space: nowrap; }
.brand { flex-shrink: 0; }
.tech-intro .h3d-controls { left: 0; transform: none; align-items: flex-start; }
@media (max-width: 1100px) {
    .tech-intro .h3d-wrap { height: 500px; justify-content: center; }
    .tech-intro .h3d-scene { --h3d-scale: 0.8; transform-origin: center; margin-left: 0; }
    .tech-intro .h3d-controls { left: 50%; transform: translateX(-50%); align-items: center; }
}
@media (max-width: 700px) {
    .tech-intro .h3d-wrap { height: 400px; }
    .tech-intro .h3d-scene { --h3d-scale: 0.58; }
}
@media (min-width: 1025px) and (max-width: 1280px) { .nav { gap: 1.1rem; } .header-phone span { display: none; } }
/* Hero: tikra projekto nuotrauka dešinėje */
.hero-photo { position: relative; margin: 0; align-self: center; }
.hero-photo img { display: block; width: 100%; height: min(74vh, 680px); object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(30, 25, 15, 0.35); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; color: #fff; background: rgba(20, 22, 20, 0.55); backdrop-filter: blur(6px); }
.hero-3d .hero-grid { gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 1100px) {
    .hero-photo { margin-top: 2rem; }
    .hero-photo img { height: auto; aspect-ratio: 4 / 3; }
}

/* Konfigūratorius: „IE“ (tiekiame mes) rodomas logotipu */
.own-logo { display: block; height: 1.15rem; width: auto; filter: var(--logo-filter); opacity: 0.75; transition: opacity 0.2s ease; }
.seg input:checked + span .own-logo { opacity: 1; }
.seg span:has(.own-logo) { display: inline-grid; place-items: center; min-height: 100%; }

/* Tamsioje temoje pažymėtas segmentas turi aiškiai išsiskirti */
:root[data-theme="dark"] .seg input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
:root[data-theme="dark"] .seg input:checked + span .own-logo { filter: brightness(0); opacity: 0.85; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .seg input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
    :root:not([data-theme="light"]) .seg input:checked + span .own-logo { filter: brightness(0); opacity: 0.85; }
}

/* „Ilgis visada rašto kryptimi“ – paryškinta ir pabraukta */
.dims-hint strong { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* Detalė ilgesnė nei 3 m: neblokuojama, tik pažymima */
.dim-warn { grid-column: 2 / -1; margin: 0; padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.83rem; line-height: 1.4;
    background: color-mix(in srgb, #c98a1b 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, #c98a1b 45%, transparent); }
.dim-warn[hidden] { display: none; }
.dim-row input.is-over { border-color: #c98a1b; box-shadow: 0 0 0 3px color-mix(in srgb, #c98a1b 22%, transparent); }
@media (max-width: 760px) { .dim-warn { grid-column: 1 / -1; } }

/* ── Telefonai ir planšetės be „užvedimo“ ── */
@media (hover: none) {
    /* Nuotraukos nesuliejamos, nes jų niekas negali „užvesti“ */
    .tile.blur-photo .tile-photo { filter: none; transform: none; }
}
@media (max-width: 600px) {
    .material { min-height: 0; padding: 1.1rem 1.2rem; }
}
@media (max-width: 760px) {
    /* Detalių skirtukai: visi matomi iš karto, kaip piliulės */
    .dims-tabs { flex-wrap: wrap; overflow: visible; gap: 0.4rem; border-bottom: 0; }
    .dims-tab { flex: 0 1 auto; margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.85rem; }
    .dims-tab[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
    .dims-tab[aria-selected="true"]::after { display: none; }
    /* Detalės kortelė: ilgis ir plotis greta, briaunos per visą plotį */
    .dim-row > * { order: 5; }
    .dim-n, .dim-act { order: 0; }
    .dim-f.dim-name { order: 1; }
    .dim-row > .dim-f:nth-of-type(3) { order: 2; grid-column: span 3; }
    .dim-row > .dim-f:nth-of-type(4) { order: 3; grid-column: span 3; }
    .dim-row > .dim-f:nth-of-type(2) { order: 4; grid-column: span 3; }
    .dim-row > .dim-f:nth-of-type(5) { order: 4; grid-column: span 3; }
    .dim-edges { order: 6; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; }
    .dim-edges select { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
    .dim-f.dim-notes { order: 7; }
    .dim-f.dim-bside { order: 6; grid-column: 1 / -1; }
    .dim-f.dim-bside > span { display: none; }
    .dim-warn { order: 8; }
}

/* ── Medžiagos: suskleidžiamas blokas (dera su „Rečiau naudojami būdai“) ── */
.materials-fold { margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color 0.2s ease; }
.materials-fold:hover, .materials-fold[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.materials-fold summary {
    list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem 1.5rem; align-items: center; padding: 1.3rem 1.5rem;
}
.materials-fold summary::-webkit-details-marker { display: none; }
.materials-fold summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.mf-title { display: flex; align-items: baseline; gap: 0.4rem 1rem; flex-wrap: wrap; }
.mf-title h3 { font-size: 1.35rem; }
.mf-hint { font-size: 0.85rem; color: var(--muted); }
.mf-opened, .materials-fold[open] .mf-closed { display: none; }
.materials-fold[open] .mf-opened { display: inline; }
.mf-groups { grid-column: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mf-group { padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.88rem; }
.mf-group em { font-style: normal; color: var(--muted); margin-right: 0.3rem; }
.mf-toggle {
    grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.3s var(--ease), background 0.2s ease;
}
.mf-toggle .ico { filter: var(--icon-filter); }
.materials-fold summary:hover .mf-toggle { background: var(--accent-soft); }
.materials-fold[open] .mf-toggle { transform: rotate(180deg); }
.materials-fold .materials { padding: 0 1.5rem 1.5rem; gap: 0.7rem; animation: cfgIn 0.3s ease both; }
.materials-fold .material { min-height: 0; padding: 1rem 1.1rem; background: var(--surface); }
.materials-fold .material h4 { font-size: 0.98rem; }
.materials-fold .material p { font-size: 0.88rem; }
@media (max-width: 600px) {
    .materials-fold summary { padding: 1.1rem; gap: 0.8rem 1rem; }
    .mf-title h3 { font-size: 1.15rem; }
    .mf-group { font-size: 0.84rem; }
    .mf-toggle { grid-row: 1; align-self: start; width: 2.3rem; height: 2.3rem; }
    .materials-fold .materials { padding: 0 1.1rem 1.1rem; }
}

/* ===== UX auditas ===== */
/* Mobilus meniu: užsakymas, skambutis, kalba */
.nav-extra { display: none; }
@media (max-width: 860px) {
    .nav-extra { display: grid; gap: 0.7rem; padding-top: 1.2rem; }
    .nav .nav-extra a { border-bottom: 0; padding: 0; letter-spacing: 0; text-transform: none; font-size: 1rem; }
    .nav .nav-extra .btn-primary { color: var(--accent-ink); }
    .nav .nav-extra .btn-quiet { color: var(--text); }
    .nav .nav-extra .btn { justify-content: center; min-height: 3rem; }
    .nav .nav-extra .lang-switch { justify-self: start; }
    .nav .nav-extra .lang-switch a { padding: 0.45rem 1rem; font-size: 0.9rem; color: var(--muted); }
    .nav .nav-extra .lang-switch a[aria-current="true"] { color: var(--bg); }
}
/* Nuoroda į konkrečią paslaugą: kortelė atsiranda po antrašte ir trumpam paryškinama */
.tile { scroll-margin-top: 110px; }
.tile:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.tile:target .tile-photo, .tile:target::after { opacity: 1; }
.tile.blur-photo:target .tile-photo { filter: none; transform: scale(1.02); }
.tile:target h3 { color: #f2f5f3; }
.tile:target p { color: rgba(242, 245, 243, 0.82); }
.tile:target .tile-icon { filter: invert(1); }
.tile:target .tile-more { max-height: 12rem; opacity: 1; }
/* Briaunų schema: didesnis paspaudimo plotas (ypač telefone) */
.edge[data-pos="top"], .edge[data-pos="bottom"] { height: 24px; }
.edge[data-pos="top"] { top: calc(0.275rem - 12px); }
.edge[data-pos="bottom"] { bottom: calc(0.275rem - 12px); }
.edge[data-pos="left"], .edge[data-pos="right"] { width: 24px; }
.edge[data-pos="left"] { left: calc(0.275rem - 12px); }
.edge[data-pos="right"] { right: calc(0.275rem - 12px); }
.dim-head { font-size: 0.75rem; }
/* Poraštė */
.footer-contacts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; width: 100%; order: 3; margin: 0; }
.footer-contacts a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-contacts a:hover { color: var(--accent); }
.footer-row > p:not(.footer-contacts) { order: 4; }
/* Planšetė: didesni kalbos mygtukai */
@media (max-width: 1024px) { .lang-switch a { padding-block: 0.35rem; } }
/* Telefonas: kompaktiškesnės kortelės be nuotraukų ir raštų pavyzdžiai po du */
@media (max-width: 600px) {
    .tile:not(.has-photo) { min-height: 0; }
    .tile:not(.has-photo) h3 { margin-top: 0.9rem; }
    .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.8rem; }
    .match img { aspect-ratio: 4 / 3; }
    .match h4 { font-size: 0.95rem; margin-top: 0.6rem; }
    .match p { font-size: 0.82rem; }
    .footer-contacts { flex-direction: column; }
}

/* Poraštė: įmonės rekvizitai */
.footer-row > p.footer-legal { order: 4; width: 100%; margin: 0; font-size: 0.82rem; line-height: 1.6; }
