/* Automobilių kėbulo remontas (Kaunas) – kompiuterio versija. Šviesi „dažymo kameros“ kryptis:
   šilta balta + grafitas + vienas lako raudonas akcentas. Kampai: nuotraukos / kortelės 14 px, mygtukai – pilna kapsulė, laukai 10 px. */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --bg: #EEEDEA; --surface: #F7F6F3; --sunk: #E4E2DE; --graphite: #17191B;
  --ink: #141618; --ink-2: #464B51; --ink-3: #5C6168; --line: #D3D1CC; --line-2: #BDBAB4;
  --acc: #B5302A; --acc-2: #962520; --on-acc: #FBF9F6; --ok: #2F6B4A; --danger: #A3261F;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem); --max: 1440px; --hd: 68px;
  --r: 14px; --r-field: 10px;
  --shadow: 0 1px 2px rgb(60 50 40 / .06), 0 18px 40px -18px rgb(60 50 40 / .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--hd) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--bg); font-weight: 700; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Mygtukai ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.4rem; border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--acc { background: var(--acc); color: var(--on-acc); }
.btn--acc:hover { background: var(--acc-2); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #2A2D31; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .95rem; }
.tel { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.tel:hover { background-size: 100% 1.5px; }

/* ---------- Antraštė ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--hd); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.hd .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 600 1.15rem/1 var(--display); letter-spacing: -.02em; }
.logo i { width: 12px; height: 12px; background: var(--acc); border-radius: 3px; flex: none; }
.logo small { display: block; font: 500 .72rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .97rem; color: var(--ink-2); }
.nav ul a { text-decoration: none; }
.nav ul a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--hd) + clamp(1.5rem, 4vh, 3rem)) 0 clamp(1.5rem, 3vh, 2.5rem); min-height: min(100dvh, 980px); display: flex; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: stretch; width: 100%; }
.hero-txt { display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }
.kicker { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); display: flex; align-items: center; gap: .75rem; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--acc); }
.hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.9rem); margin: 1.4rem 0 1.6rem; }
.hero h1 em { font-style: normal; color: var(--acc); }
.lead { font-size: clamp(1.08rem, 1.25vw, 1.25rem); color: var(--ink-2); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; }
.hero-img { position: relative; border-radius: var(--r); overflow: hidden; background: #D9DADB; min-height: 520px; }
.hero-img picture, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img img { object-position: 40% 50%; }

/* Faktai po hero (tikri duomenys iš Google Maps) */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts dl { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; margin: 0; }
.facts dl > div { padding: 1.5rem 1.5rem 1.6rem 0; }
.facts dl > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--ink-3); }
.facts dd { margin: .3rem 0 0; font: 600 1.45rem/1.2 var(--display); letter-spacing: -.02em; }
.facts dd small { font: 400 .9rem var(--sans); color: var(--ink-2); letter-spacing: 0; }
.stars { color: var(--acc); letter-spacing: .08em; font-size: 1rem; margin-left: .3rem; }

/* ---------- Sekcijų antraštės ---------- */
.sec { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.h2 { font-size: clamp(2.3rem, 4.4vw, 4.4rem); }
.sub { margin-top: 1.1rem; font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- 11a: paslaugų juosta → tinklelis → vėduoklė (g3d.js) ---------- */
.g3d { position: relative; background: var(--bg); }
.g3d-stage { position: relative; }
.g3d-hero { padding: clamp(5rem, 9vw, 7rem) var(--pad) 1.5rem; max-width: var(--max); margin: 0 auto; }
.g3d-hint, .g3d-cap, .g3d-tag { display: none; }
.g3d-top { display: flex; justify-content: flex-end; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 1rem; }
.g3d-sw { display: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 4px; }
.g3d-sw button { font: 600 .9rem var(--sans); color: var(--ink-2); background: none; border: 0; padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer; min-height: 40px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.g3d-sw button:hover { color: var(--ink); }
.g3d-sw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.g3d-list { list-style: none; margin: 0 auto; padding: 1rem var(--pad) clamp(4rem, 8vw, 6rem); max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.5rem; }
.g3d-list a { display: block; text-decoration: none; border-radius: var(--r); }
.g3d-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.g3d-list a:hover img { transform: translateY(-4px); }
.g3d-list b { display: block; margin-top: 1rem; font: 600 1.25rem/1.2 var(--display); letter-spacing: -.02em; }
.g3d-list span { display: block; margin-top: .35rem; color: var(--ink-2); font-size: .98rem; }
.g3d-list em { display: inline-block; margin-top: .55rem; font-style: normal; font-weight: 600; font-size: .92rem; color: var(--acc); }

/* Kompiuteris su WebGL */
.g3d-on .g3d { height: 330vh; }
.g3d-on .g3d .g3d-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 58%, #F8F7F4 0%, var(--bg) 70%); }
.g3d-on .g3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity 1s var(--ease); }
.g3d-on .g3d.is-ready canvas { opacity: 1; }
.g3d-on .g3d .g3d-hero { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(var(--hd) + 2.2rem) var(--pad) 0; pointer-events: none; }
.g3d-on .g3d .g3d-hero .h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
.g3d-on .g3d .g3d-hero .sub { font-size: 1.02rem; max-width: 46ch; }
.g3d-on .g3d .g3d-top { position: absolute; z-index: 3; top: calc(var(--hd) + 2.4rem); right: 0; left: 0; }
.g3d-on .g3d .g3d-sw { display: flex; }
.g3d-on .g3d .g3d-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.g3d-on .g3d .g3d-hint { display: block; position: absolute; z-index: 2; left: 50%; bottom: 7vh; transform: translateX(-50%); white-space: nowrap; font-size: .85rem; font-weight: 500; color: var(--ink-3); pointer-events: none; opacity: 0; }
.g3d-on .g3d .g3d-cap { display: block; position: absolute; z-index: 2; left: 50%; bottom: 7vh; transform: translateX(-50%); font-weight: 600; color: var(--ink); pointer-events: none; min-height: 1.4em; white-space: nowrap; }
.g3d-on .g3d.is-grid .g3d-cap, .g3d-on .g3d.is-grid .g3d-hint { display: none; }
.g3d-on .g3d .g3d-tag { display: block; position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); max-width: min(520px, 40vw); opacity: 0; visibility: hidden; }
.g3d-tag-h { font: 600 clamp(2.4rem, 4.6vw, 4.6rem)/1 var(--display); letter-spacing: -.035em; margin: 0 0 1.2rem; }
.g3d-tag-p { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 1.8rem; max-width: 34ch; }
.g3d-tag a { pointer-events: auto; }
/* Planšetė (lietimas, CSS 3D) */
.g3d.is-m3d { overflow: hidden; }
.g3d.is-m3d .g3d-sw { display: flex; }
.g3d.is-m3d .g3d-list { display: block; position: relative; height: calc(56vw * .625 + 6rem); perspective: 900px; perspective-origin: 50% 45%; overflow: visible; touch-action: pan-y; user-select: none; }
.g3d.is-m3d .g3d-list li { position: absolute; left: 50%; top: 0; width: 56vw; margin-left: -28vw; will-change: transform, opacity; backface-visibility: hidden; }
.g3d.is-m3d .g3d-list img { pointer-events: none; -webkit-user-drag: none; }
.g3d.is-m3d.is-mgrid .g3d-list { display: grid; height: auto; perspective: none; grid-template-columns: 1fr 1fr; }
.g3d.is-m3d.is-mgrid .g3d-list li { position: static; width: auto; margin: 0; transform: none !important; opacity: 1 !important; visibility: visible !important; will-change: auto; }

/* ---------- Eiga ---------- */
.eiga .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); }
.eiga-head { position: sticky; top: calc(var(--hd) + 3rem); align-self: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font: 500 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--acc); }
.steps h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.steps p { margin-top: .6rem; color: var(--ink-2); max-width: 48ch; }

/* ---------- Pilno pločio juosta ---------- */
.band { position: relative; height: min(78vh, 760px); overflow: hidden; background: #3A2A28; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band img { object-position: 45% 55%; transform: scale(1.08); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 14 13 / .74) 0%, rgb(16 14 13 / .3) 48%, rgb(16 14 13 / 0) 70%); }
.band .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.band-h { color: #F7F5F1; font: 600 clamp(2.2rem, 4.2vw, 4.2rem)/1.03 var(--display); letter-spacing: -.035em; max-width: 15ch; }
.band p { color: #E6E1DA; margin-top: 1rem; max-width: 40ch; font-size: 1.1rem; }

/* ---------- Kontaktai ---------- */
.kont .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.kont-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 1300 / 1110; background: #CFCCC6; }
.kont-img img { width: 100%; height: 100%; object-fit: cover; }
.kont dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; margin: 2.4rem 0 0; }
.kont dt { font-size: .88rem; color: var(--ink-3); }
.kont dd { margin: .35rem 0 0; font-size: 1.12rem; }
.kont dd a { font-weight: 600; }
.kont ul { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.kont .btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* ---------- Poraštė ---------- */
.ft { background: var(--graphite); color: #B9BDC2; padding: 3.5rem 0 2.2rem; font-size: .95rem; }
.ft .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.ft .logo { color: #F3F2EE; }
.ft .logo small { color: #9DA2A8; }
.ft h2 { font: 600 .95rem var(--sans); color: #F3F2EE; letter-spacing: 0; }
.ft ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ft a { text-decoration: none; } .ft a:hover { color: #fff; }
.ft-note { grid-column: 1 / -1; border-top: 1px solid #2C3034; padding-top: 1.4rem; margin-top: 1rem; color: #9DA2A8; font-size: .88rem; }

/* ---------- Registracijos langas ---------- */
.dlg { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: var(--r); padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(20 16 12 / .45); }
.dlg::backdrop { background: rgb(23 25 27 / .55); }
.dlg form { padding: clamp(1.5rem, 4vw, 2.4rem); }
.dlg-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dlg h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; margin: -.4rem -.6rem 0 0; }
.x:hover { background: var(--sunk); color: var(--ink); }
.x svg { width: 20px; height: 20px; }
.chip { display: inline-block; margin-top: .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(181 48 42 / .1); color: var(--acc-2); font-weight: 600; font-size: .92rem; }
.chip[hidden] { display: none; }
.fields { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #FFFEFC; border: 1.5px solid var(--line-2); border-radius: var(--r-field); padding: .8rem .9rem; min-height: 50px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #767B82; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid rgb(181 48 42 / .35); outline-offset: 0; border-color: var(--acc); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { display: block; min-height: 1.3em; margin-top: .3rem; color: var(--danger); font-size: .88rem; font-weight: 500; }
.dlg .btn { width: 100%; margin-top: 1.4rem; }
.priv { margin-top: 1rem; font-size: .88rem; color: var(--ink-3); text-align: center; }
.ok { text-align: center; padding: 1.5rem 0 .5rem; }
.ok .tick { width: 64px; height: 64px; margin: 0 auto 1.4rem; display: grid; place-items: center; border-radius: 999px; background: rgb(47 107 74 / .12); color: var(--ok); }
.ok p { color: var(--ink-2); margin: .8rem auto 0; max-width: 34ch; }
.ok .btn { width: auto; }

/* ---------- Atsiradimas slenkant (tik transform / opacity) ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-img img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.js .hero-img.in img { transform: none; }

/* ---------- Lūžio taškai ---------- */
@media (max-width: 1180px) {
  .nav ul { display: none; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero .wrap, .eiga .wrap, .kont .wrap { grid-template-columns: 1fr; }
  .hero-img { min-height: 0; aspect-ratio: 4 / 3; }
  .eiga-head { position: static; }
  .g3d-list { grid-template-columns: 1fr 1fr; }
  .ft .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g3d-list { grid-template-columns: 1fr; }
  .facts dl, .kont dl { grid-template-columns: 1fr; }
  .facts dl > div { padding-left: 0 !important; border-left: 0 !important; }
  .steps li { grid-template-columns: 1fr; gap: .6rem; }
  .ft .wrap { grid-template-columns: 1fr; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .rv, .js .hero-img img, .band img { opacity: 1; transform: none; }
}
