/* --- Sekcijos ------------------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section-tight-top { padding-top: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split-head { position: sticky; top: 120px; }
.split-head h2 { margin-bottom: 20px; }
.split-head .muted { max-width: 26em; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
}

/* Paslaugos */
.services { border-top: 1px solid var(--line); }
.services li {
  padding: clamp(28px, 2.9vw, 44px) 0 clamp(30px, 3.1vw, 46px);
  border-bottom: 1px solid var(--line);
}
/* Pavadinimai stambūs: sąrašas atsveria h2 ir iliustraciją kairėje (stulpeliai panašaus aukščio) */
.services h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: .42em;
}
/* Ikonos prie pavadinimų (savininko prašymu): linijos kaip logotipe, vienas akcentinis „pikselis“ */
.svc-ico {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  overflow: visible;
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-ico .acc { fill: var(--accent); stroke: none; }
.services p { color: var(--muted); max-width: 36em; }

/* Paslaugų iliustracija: svetainė → SEO apžiūra → kontaktas */
.stage {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 440px;
  padding: 14px 14px 18px;
  border-radius: 24px;
  background: var(--panel-raise);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--panel-edge);
}
.stage svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-ln { stroke: var(--paper); stroke-width: 6; }
.st-dim { stroke: rgb(243 241 234 / .3); stroke-width: 6; }
.st-acc { stroke: var(--accent); stroke-width: 8; }
.st-thin { stroke-width: 4; }
.st-thick { stroke-width: 9; }
.f-paper { fill: var(--paper); }
.f-dim { fill: rgb(243 241 234 / .3); }
.f-acc { fill: var(--accent); }
/* Lęšio vidus: tamsu ant šviesaus */
.lens-in .st-ln { stroke: var(--ink); }
.lens-in .st-dim { stroke: rgb(18 20 17 / .8); }
.lens-in .f-paper { fill: var(--ink); }
.lens-in .f-dim { fill: rgb(18 20 17 / .8); }

/* Brėžiami kontūrai: pathLength="1" + stroke-dashoffset (1 — paslėpta, 0 — nubrėžta) */
.d, .sd { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.pop, .grow, .drop, .type, .stage .a { transform-box: fill-box; transform-origin: center; }
.grow, .k-h1, .k-h2, .k-l1, .k-l2, .k-l3 { transform-origin: left center; }
.k-ping { stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; }

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 8px 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.sl { display: inline-flex; align-items: center; gap: 8px; }
.sl i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 860px) {
  .stage { max-width: 520px; margin-top: 28px; }
}
/* Kur iliustracija siaura (telefonai ir siauras dviejų stulpelių išdėstymas), visos trys etiketės telpa vienoje eilutėje */
@media (max-width: 420px), (min-width: 861px) and (max-width: 980px) {
  .stage-foot { gap: 6px 10px; padding-inline: 4px; font-size: 0.75rem; }
}

/* Darbo eiga */
#eiga h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}
.steps li { position: relative; padding-top: 32px; }
.steps li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: -32px;
  height: 1px;
  background: var(--line);
}
.steps li:last-child::before { right: 0; }
.step-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--fg);
}
.steps .num { display: block; margin-bottom: 10px; }
.step-art {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 4px 0 20px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-art .st-ink { stroke: var(--fg); stroke-width: 5; }
.step-art .st-idim { stroke: var(--fg-dim); stroke-width: 4; }
.step-art .st-acc { stroke-width: 6; }
.f-ink { fill: var(--fg); }
.f-idim { fill: var(--fg-dim); }
.type, .drop { transform-box: fill-box; transform-origin: center; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps li:nth-child(2n)::before { right: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 36px 36px; }
  .steps li::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
}

/* Kas įeina */
/* Tas pats tinklelis kaip .split: sąrašas prasideda toje pačioje vertikalėje kaip paslaugų sąrašas */
.included-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 128px);
}
.included-text h2 { margin-bottom: 20px; }
.included-text p { font-size: 1.125rem; max-width: 24em; }

.included-list { border-top: 1px solid rgb(243 241 234 / .28); }
.included-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 1.6vw, 22px) 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgb(243 241 234 / .28);
}
.inc-check { flex: none; width: 26px; height: 26px; overflow: visible; }
/* Forma iš logotipo kalbos: hero apskritimo inversija (tamsus ant akcento), išeina už panelio kampo, po tekstu nepatenka.
   Aplink jį dvi orbitos (1,09 ir 1,19 spindulio): jomis priešingomis kryptimis lėtai skrieja „pikseliai“ ir taškai.
   Matoma tik ~trečdalis orbitos, todėl ženklų keli: bent vienas visada matomas.
   Orbitų kontūrai prasideda ir baigiasi už kairio panelio krašto (siūlė nematoma). */
.inc-circle {
  --s: clamp(220px, 28vw, 400px);
  z-index: -1;
  width: var(--s);
  aspect-ratio: 1;
  left: calc(var(--s) * -0.18);
  bottom: calc(var(--s) * -0.56);
  overflow: visible;
}
.inc-disc { fill: var(--panel-raise); }
.inc-ring { fill: none; stroke: var(--paper); stroke-opacity: .28; stroke-width: .7; }
.inc-orbit { transform-box: view-box; transform-origin: 100px 100px; fill: var(--paper); }
.inc-check circle { fill: var(--paper); }
.inc-check path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  /* Apskritimas nuleidžiamas po sąrašu: apačioje paliekama vietos, kad nepatektų po tekstu */
  .included-grid { grid-template-columns: 1fr; padding-bottom: 176px; }
  .included-list li { gap: 16px; padding: 16px 0; font-size: 1rem; }
  .inc-check { width: 24px; height: 24px; }
}

/* DUK: viena siaura kolona per vidurį.
   Atidarytas klausimas gauna švelnų foną (::before), kuris išlenda už kolonos per --faq-bleed:
   tekstas lieka lygiuotas su h2, o linijos aplink atidarytą klausimą paslepiamos. */
.faq-wrap { max-width: calc(860px + var(--gutter) * 2); }
.faq-wrap h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.faq {
  --faq-bleed: clamp(12px, 2vw, 24px);
  --faq-ease: cubic-bezier(.2, .7, .2, 1);
  --faq-tint: color-mix(in srgb, var(--fg) 4.5%, transparent);
  border-top: 1px solid var(--line);
  transition: border-color .4s var(--faq-ease);
}
.faq details {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  transition: border-color .4s var(--faq-ease);
}
.faq details::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px calc(var(--faq-bleed) * -1);
  border-radius: 18px;
  background: var(--faq-tint);
  opacity: 0;
  transition: opacity .4s var(--faq-ease);
}
.faq details[open]::before { opacity: 1; }
.faq details[open],
.faq details:has(+ details[open]),
.faq:has(> details:first-child[open]) { border-color: transparent; }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  column-gap: 16px;
  align-items: center;
  padding: 26px 0;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Fokuso rėmelis: tos pačios formos kaip atidaryto klausimo fonas */
@supports selector(:has(*)) {
  .faq summary:focus-visible { outline: none; }
  .faq details:has(> summary:focus-visible)::before {
    opacity: 1;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    transition-duration: .15s;
  }
}
.faq-ico {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fg-dim);
  border-radius: 50%;
  transition: background-color .25s, border-color .25s, transform .45s var(--faq-ease);
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  border-radius: 1px;
  background: var(--fg);
  transition: transform .3s var(--faq-ease), background-color .25s;
}
.faq-ico::after { transform: rotate(90deg); }
.faq details[open] .faq-ico { background: var(--accent); border-color: var(--accent); }
.faq details[open] .faq-ico::before,
.faq details[open] .faq-ico::after { background: var(--paper); }
.faq details[open] .faq-ico::after { transform: rotate(0deg); }
.faq details p {
  padding: 0 52px 30px 0;
  max-width: calc(38em + 52px);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

@media (hover: hover) {
  .faq .q { transition: transform .35s var(--faq-ease); }
  .faq summary:hover .q { transform: translateX(6px); }
  .faq summary:hover .faq-ico { border-color: var(--fg); }
  .faq details[open] summary:hover .faq-ico { border-color: var(--accent); }
  /* Užvedus ant uždaryto klausimo fonas pasirodo silpnai: matosi, kas atsidarys */
  .faq details:not([open]):has(> summary:hover)::before { opacity: .55; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-ico { transform: rotate(180deg); }
  .faq details[open] p { animation: faq-in .45s var(--faq-ease); }
  /* Sklandus atsidarymas ir užsidarymas, kur palaikoma (Chromium); kitur atsidaro iškart */
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0;
      overflow: clip;
      transition: height .4s var(--faq-ease), content-visibility .4s allow-discrete;
    }
    .faq details[open]::details-content { height: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq, .faq details, .faq details::before, .faq-ico { transition: none; }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) 32px; column-gap: 12px; padding: 22px 0; font-size: 1.0625rem; }
  .faq-ico { width: 32px; height: 32px; }
  .faq details::before { border-radius: 14px; }
  .faq details p { padding: 0 44px 26px 0; font-size: 1rem; }
}

/* Kontaktai */
.contact { padding-bottom: var(--panel-inset); }
.contact-panel { padding-block: clamp(80px, 10vw, 144px); }
.contact-inner { position: relative; }
.contact h2 { max-width: 13em; margin-bottom: 24px; }
.contact .lead { color: rgb(243 241 234 / .74); margin-bottom: 40px; }
.contact-mail {
  display: inline-block;
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-color: var(--paper); }
.c-circle {
  width: clamp(280px, 38vw, 520px);
  aspect-ratio: 1;
  right: calc(clamp(280px, 38vw, 520px) * -0.3);
  bottom: calc(clamp(280px, 38vw, 520px) * -0.35);
  overflow: visible;
  fill: none;
}
.c-ring { stroke: var(--accent); stroke-width: 21; }
.c-orbit { transform-box: view-box; transform-origin: 100px 100px; }
.c-orbit rect { fill: var(--paper); }
.c-circle, .c-pixel { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -22px); }
.c-pixel { translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px); }
.c-pixel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--paper);
  opacity: 0;
}
.c-pixel {
  width: clamp(28px, 3vw, 44px);
  aspect-ratio: 1;
  right: clamp(32px, 8vw, 140px);
  top: clamp(40px, 7vw, 110px);
  background: var(--paper);
}
/* Mobiliuose žiedas nuleidžiamas po mygtukais, kad nepatektų po stikliniu mygtuku */
@media (max-width: 860px) {
  .contact-panel { padding-bottom: 210px; }
  .c-circle { bottom: calc(clamp(280px, 38vw, 520px) * -0.48); }
}

/* --- 404 ------------------------------------------------------------------ */

.nf { padding-block: var(--panel-inset); }
.nf-panel {
  min-height: calc(100svh - var(--panel-inset) * 2);
  display: flex;
  align-items: center;
  padding-block: 64px;
}
.nf-inner { position: relative; width: 100%; }
.nf-logo { display: block; width: fit-content; margin-bottom: clamp(48px, 9vh, 96px); color: var(--paper); }
.nf-logo svg { width: 88px; height: 40px; }
.nf h1 { margin-bottom: 20px; }
.nf h1 em { color: var(--paper); }
.nf .lead { color: rgb(243 241 234 / .74); margin-bottom: 36px; max-width: 26em; }
.nf-circle {
  width: clamp(240px, 34vw, 480px);
  aspect-ratio: 1;
  right: calc(clamp(240px, 34vw, 480px) * -0.28);
  top: calc(clamp(240px, 34vw, 480px) * -0.3);
  border-radius: 50%;
  background: var(--accent);
}
.nf-pixel {
  width: clamp(24px, 2.6vw, 40px);
  aspect-ratio: 1;
  right: clamp(40px, 12vw, 200px);
  bottom: clamp(48px, 10vw, 140px);
  background: var(--paper);
}

/* --- Poraštė -------------------------------------------------------------- */

.footer { padding-block: 40px 48px; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-logo { color: var(--fg); margin-right: auto; }
.footer-logo svg { width: 72px; height: 32px; }
.footer-top { text-decoration: none; }
.footer-top:hover { color: var(--fg); text-decoration: underline; }

