/* ==========================================================================
   Civitta · Power Platform & AI — styles
   Struktūra: 1) šriftai  2) tokenai  3) bazė  4) layout  5) komponentai
              6) sekcijos  7) kontaktai  8) footer  9) animacijos  10) media
   ========================================================================== */

/* 1. Šriftai (Inter, SIL OFL 1.1 – žr. /assets/fonts/OFL-LICENSE.txt) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Dizaino tokenai */
:root {
  --color-bg: #F4F5F1;
  --color-surface: #FFFFFF;
  --color-tint: #EAECE4;
  --color-ink: #222222;
  --color-ink-soft: #4A4A46;
  --color-muted: #5F5F5A;
  --color-line: #D9DBD2;
  --color-dark: #222222;
  --color-dark-2: #2C2D2A;
  --color-dark-line: #3E3F3A;
  --color-on-dark: #F4F5F1;
  --color-on-dark-soft: #BDBFB6;
  --color-accent: #C7D82D;
  --color-accent-strong: #B5C61F;
  --color-link: #165DFF;
  --color-error: #B3261E;
  --color-error-on-dark: #FF8A80;
  --color-success-on-dark: #C7D82D;

  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --content-max: 1200px;
  --gutter: 24px;
  --space-section: 96px;
  --header-h: 72px;

  --font: "Inter", Arial, sans-serif;
  --fs-h1: clamp(2rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);

  --shadow-card: 0 1px 2px rgba(34, 34, 34, .04), 0 8px 24px rgba(34, 34, 34, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3. Bazė */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0; padding: 0; }

svg { display: block; }

:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-accent); }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--color-accent);
  color: var(--color-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 4. Layout */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--space-section) 0;
}
.section-tint { background: var(--color-tint); }
.section-dark {
  background: var(--color-dark);
  color: var(--color-on-dark);
  overflow: hidden;
}
.section-dark a { color: var(--color-accent); }

.section-head { max-width: 820px; margin-bottom: 48px; }
.section-intro { font-size: var(--fs-lead); color: var(--color-ink-soft); }
.section-dark .section-intro { color: var(--color-on-dark-soft); }
.section-cta { margin-top: 48px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.section-dark .eyebrow { color: var(--color-on-dark-soft); }

.card-grid { display: grid; gap: 20px; list-style: none; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid + .card-grid { margin-top: 20px; }

/* 5. Komponentai */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; white-space: nowrap; }

.btn-accent,
.section-dark .btn-accent { background: var(--color-accent); color: var(--color-ink); }
.btn-accent:hover { background: var(--color-accent-strong); }

.btn-dark { background: var(--color-ink); color: var(--color-on-dark); }
.btn-dark:hover { background: #000; }

.btn-ghost,
.section-dark .btn-ghost { border-color: rgba(244, 245, 241, .35); color: var(--color-on-dark); }
.btn-ghost:hover { border-color: var(--color-on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.card {
  position: relative;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: #C4C7BA; box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-ink-soft); }

.card-dark {
  background: var(--color-dark-2);
  border-color: var(--color-dark-line);
}
.card-dark:hover { border-color: #5A5B54; box-shadow: none; }
.card-dark p { color: var(--color-on-dark-soft); }
.card-dark h3 { color: var(--color-on-dark); }

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  padding: 6px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--color-accent);
  border-radius: 10px;
}
.card-dark .card-icon { stroke: var(--color-ink); }

.card-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  font-size: .9375rem;
}
.card-dark .card-note { border-top-color: var(--color-dark-line); color: var(--color-on-dark); }

.tick-list { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.tick-list li {
  position: relative;
  padding-left: 26px;
  font-size: .9375rem;
  font-weight: 500;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: rotate(-45deg);
}

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-list li {
  padding: 6px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-size: .875rem;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(34, 34, 34, .96);
  color: var(--color-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(34, 34, 34, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--color-dark-line); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--color-on-dark);
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 24px; }
.brand-logo-footer { margin-bottom: 10px; }
.brand-mark {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}
.brand-sub {
  padding-left: 12px;
  border-left: 2px solid var(--color-accent);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-on-dark-soft);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(244, 245, 241, .22);
  border-radius: var(--radius-pill);
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: var(--color-on-dark-soft);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-switch a:hover { color: var(--color-on-dark); background: rgba(244, 245, 241, .08); }
.lang-switch a[aria-current="page"] { background: var(--color-on-dark); color: var(--color-ink); }
.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { background: rgba(244, 245, 241, .08); }
.nav-list a[aria-current="true"] { color: var(--color-accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 245, 241, .3);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-on-dark);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. Sekcijos */

/* Hero */
.hero {
  padding: 104px 0 56px;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 245, 241, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 241, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 75% 30%, #000 20%, transparent 75%);
}
.hero-pattern::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(199, 216, 45, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(199, 216, 45, .025), 0 0 0 140px rgba(199, 216, 45, .02);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy { max-width: 900px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead {
  max-width: 620px;
  margin-bottom: 36px;
  font-size: var(--fs-lead);
  color: var(--color-on-dark-soft);
}


.tech-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--color-dark-line);
  list-style: none;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-on-dark-soft);
}
.tech-strip li { white-space: nowrap; }
.tech-strip li + li::before {
  content: "·";
  margin: 0 14px;
  color: var(--color-accent);
  font-weight: 700;
}

/* Sprendimų kortelės su iliustracijomis */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.solution-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.solution-card:nth-child(n+4) { grid-column: span 3; }
.solution-body { padding: 24px 28px 28px; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  list-style: none;
}
.product-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
}
.product-tags li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(199, 216, 45, .3);
}

.card-visual {
  display: grid;
  place-items: center;
  height: 200px;
  padding: 10px 12px;
  background: var(--color-dark);
  background-image: radial-gradient(circle at 85% 0%, rgba(199, 216, 45, .12), transparent 55%);
}
.ill {
  width: 100%;
  height: 100%;
  max-width: 380px;
  transition: transform .4s var(--ease);
}
.solution-card:hover .ill { transform: scale(1.03); }

/* Iliustracijų spalvos (be inline stilių – suderinama su CSP) */
.ill text { font-family: var(--font); font-size: 10.5px; font-weight: 500; }
.ill .t { fill: var(--color-on-dark); }
.ill .t-s { fill: var(--color-on-dark-soft); font-size: 9px; }
.ill .t-ink { fill: var(--color-ink); font-weight: 700; font-size: 10px; }
.ill .t-tiny { font-size: 8px; }
.ill .t-xl { fill: var(--color-on-dark); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ill .t-accent { fill: var(--color-accent); }
.ill .f-bg { fill: var(--color-dark); }
.ill .f-dark { fill: #1B1B1A; }
.ill .f-panel { fill: var(--color-dark-2); }
.ill .f-line { fill: var(--color-dark-line); }
.ill .f-soft { fill: #6D6F67; }
.ill .f-accent { fill: var(--color-accent); }
.ill .f-none { fill: none; }
.ill .s-line { stroke: #4A4B45; stroke-width: 1; }
.ill .s-accent { stroke: var(--color-accent); stroke-width: 1.25; }
.ill .s-ink { stroke: var(--color-ink); }
.ill .w2 { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .dash { stroke-dasharray: 4 4; }
.ill .blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
}
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px); }

/* Problemų kortelės */
.problem-card { display: flex; gap: 18px; align-items: flex-start; }
.problem-card p { margin: 0; font-size: 1.0625rem; font-weight: 500; color: var(--color-ink); }
.card-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-accent);
  font-size: .875rem;
  font-weight: 700;
}

/* Duomenų sekcija */
.lines-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(244, 245, 241, .035) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.lines-pattern + .container { position: relative; }
.compare .card { border-top: 3px solid var(--color-accent); }

/* AI */
.positioning {
  max-width: 900px;
  margin: 0 0 48px;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--color-accent);
}
.positioning p {
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ai-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.ai-step { padding: 24px; }
.ai-step h3 { font-size: 1.0625rem; }
.ai-step p { font-size: .9375rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--color-accent);
  font-weight: 700;
}

.governance {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.governance h3 { margin-bottom: 20px; }
.governance-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  color: var(--color-on-dark-soft);
}
.governance-list li { position: relative; padding-left: 22px; }
.governance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-accent);
}
.governance-list strong { color: var(--color-on-dark); font-weight: 600; }

/* Procesai */
.process-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-card h3::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(199, 216, 45, .25);
}
.process-card-wide { grid-column: span 2; }

/* Įgyvendinimo eiga */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  counter-reset: none;
}
.timeline li {
  position: relative;
  padding-top: 64px;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: -24px;
  height: 2px;
  background: var(--color-line);
}
.timeline li:last-child::before { right: 0; }
.timeline-num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-accent);
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--color-bg);
}
.timeline h3 { font-size: 1.125rem; }
.timeline p { color: var(--color-ink-soft); font-size: .9375rem; }

/* 7. Kontaktai */
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro > p { color: var(--color-on-dark-soft); font-size: 1.0625rem; }

.contact-person {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--color-dark-line);
  border-radius: var(--radius-card);
  background: var(--color-dark-2);
}
.contact-name { margin: 0; font-size: 1.125rem; font-weight: 700; }
.contact-links { list-style: none; display: grid; gap: 6px; }
.contact-links a { font-weight: 500; overflow-wrap: anywhere; }

.contact-grid > .contact-person { margin-top: 0; padding: 32px; }
.contact-label {
  margin: 0 0 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
}
.contact-person .contact-name { margin-bottom: 14px; font-size: 1.5rem; }
.contact-person .contact-links { margin-bottom: 24px; }
.section-dark .contact-cta { color: var(--color-ink); }
/* 8. Footer */
.site-footer {
  padding: 48px 0;
  background: #1A1A1A;
  color: var(--color-on-dark-soft);
  font-size: .9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 48px;
  align-items: center;
}
.brand-mark-footer { margin: 0 0 6px; color: var(--color-on-dark); font-size: 1.125rem; }
.footer-text { margin: 0; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--color-on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-copy { margin: 0; }
.footer-legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-dark-line);
  font-size: .75rem;
  line-height: 1.55;
  color: #9A9C93;
}

/* Paprastas turinio puslapis (404, privatumas) */
.page-simple {
  min-height: calc(100vh - var(--header-h) - 150px);
  padding: 120px 0 96px;
}
.page-simple .container { max-width: 820px; }
.page-simple .lead { font-size: var(--fs-lead); color: var(--color-on-dark-soft); margin-bottom: 32px; }
.page-code {
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.todo-note {
  padding: 16px 20px;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
}

/* 9. Animacijos */
.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* 10. Media */
@media (max-width: 1239px) {
  .ai-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ai-step { grid-column: span 2; }
  .ai-step:nth-child(4) { grid-column: 2 / span 2; }
}

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .timeline li:nth-child(3)::before { right: 0; }
}

@media (max-width: 1023px) {
  .site-nav { gap: 16px; }
  .nav-list a { padding: 8px 8px; font-size: .875rem; }
  .brand-sub { display: none; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-card,
  .solution-card:nth-child(n+4) { grid-column: auto; }
  .solution-card:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  /* backdrop-filter sukuria konteinerį fixed meniu – mobiliai be jo */
  .site-header { background: var(--color-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; order: 2; }
  .lang-switch { order: 1; margin-left: auto; }
  .header-inner { gap: 12px; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--color-dark);
    border-top: 1px solid var(--color-dark-line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--color-dark-line); }
  .nav-list a { padding: 16px 4px; font-size: 1.125rem; border-radius: 0; }
  .nav-list a:hover { background: transparent; color: var(--color-accent); }
  .nav-cta { min-height: 52px; font-size: 1rem; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
  :root { --space-section: 64px; --gutter: 16px; }

  .hero { padding: 64px 0 40px; }
  .hero-pattern::after { width: 360px; height: 360px; right: -180px; top: -120px; }
  .btn-row .btn { flex: 1 1 100%; }
  .tech-strip { margin-top: 48px; font-size: .875rem; }
  .tech-strip li + li::before { margin: 0 10px; }

  .section-head { margin-bottom: 32px; }
  .solutions-grid { grid-template-columns: 1fr; gap: 14px; }
  .card.solution-card { padding: 0; }
  .solution-card:last-child { grid-column: auto; }
  .solution-body { padding: 20px 22px 24px; }
  .card-visual { height: 180px; }
  .card { padding: 22px; }
  .card-grid-2,
  .card-grid-3 { grid-template-columns: 1fr; }
  .process-card-wide { grid-column: auto; }
  .card-grid { gap: 14px; }
  .card-grid + .card-grid { margin-top: 14px; }

  .positioning { padding-left: 18px; }
  .ai-steps { grid-template-columns: 1fr; }
  .ai-step,
  .ai-step:nth-child(4) { grid-column: auto; }
  .governance { padding: 24px; }
  .governance-list { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 28px 64px; min-height: 64px; }
  .timeline li::before,
  .timeline li:nth-child(3)::before { top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline-num { top: 0; }

  .contact-grid > .contact-person { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  h1 { font-size: 1.75rem; }
  .brand-logo { height: 20px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 8px 12px; }
}
