/* Protika layer on top of the reference styles: type, the ◉ mark motif, new home sections and a small, calm motion set.
   Hidden start states are keyed to html.m-on, which the head boot script sets only when motion is allowed
   (and drops again after 4 s if motion.js never ran), so the page is always readable without it. */
@font-face { font-family: "Archivo X"; src: url(/fonts/archivo-x-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --black: #000; --ink: #222; --warm: #fbfaf9; --sand: #f6f3f0; --line: #e8e5e1; --mist: #e8edf3; --grey: rgba(0,0,0,.62);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --disp: "Archivo X", "Geist", system-ui, sans-serif;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.4' fill='none' stroke='black' stroke-width='4.2'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/svg%3E");
}

/* ---------- type: Archivo Expanded only for the hero H1, the stat numbers, the step numbers and the footer slogan ---------- */
.hero h1 {
  font-family: var(--disp); font-weight: 600; text-transform: none; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(44px, 6.2vw, 84px); width: auto; max-width: 100%;
}
@media (max-width: 759.98px) { .hero h1 { font-size: clamp(36px, 10vw, 44px); } }
.stat strong { font-family: var(--disp); font-weight: 600; font-size: clamp(52px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; }
.stat strong > span + span { font-family: var(--sans); font-weight: 400; font-size: .5em; letter-spacing: -.02em; margin-left: .12em; }
/* the base rule ".stat strong span + span" (the unit) must not reach the odometer digits */
.stat strong .m-odo span { margin: 0; font: inherit; letter-spacing: inherit; }
.f-brand h3 { font-family: var(--disp); font-weight: 600; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; }

.h2, body.inner .pg .h2 {
  font-family: var(--sans); font-weight: 400; letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; max-width: 18ch;
  font-size: clamp(34px, 5.2vw, 56px); text-transform: none;
}
.clients .h2, .cta-title, .center-head .h2 { margin-left: auto; margin-right: auto; }
@media (max-width: 759.98px) { .h2, body.inner .pg .h2 { font-size: clamp(30px, 8.7vw, 34px); } }
/* long article / example titles: max 3 lines at every width */
body.inner .pg .ph-title .post-h1 { font-size: clamp(25px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.04em; max-width: 1000px; text-wrap: balance; }
@media (max-width: 759.98px) { body.inner .pg .post-body h2 { font-size: 21px; line-height: 1.2; } }
.post h3, .kd-steps h3, .cs-card h3 { font-family: var(--sans); font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.mono15 { text-transform: none; letter-spacing: 0; }
.stat p { font-size: 15px; opacity: .7; }

/* the wordmark is wider than the old one */
.header .logo { width: 140px; height: 17px; }
.f-brand .logo { width: 240px; height: 30px; }
.case-img .logo { width: 150px; height: 19px; }
@media (max-width: 759.98px) { .header .logo { width: 124px; height: 15px; } .f-brand .logo { width: 200px; height: 25px; } }

/* ---------- pills and sections ---------- */
.hero .btn, .m-sticky .btn { height: 50px; padding: 0 32px; font-size: 17px; }

/* ---------- the ◉ mark motif ---------- */
.m-mark { display: block; width: 100%; height: 100%; }
/* feature nav: the active item gets a small mark instead of the arrow */
.feat-nav button::before {
  -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
  width: 8px; height: 8px; left: -18px; top: calc(.7em - 4px); opacity: 1; transform: scale(0); transition: transform .3s var(--ease);
}
.feat-nav button.on::before { opacity: 1; transform: scale(1); }
/* tag pills on article cards */
.post-cat { display: inline-flex; align-items: center; gap: 6px; }
.post-cat::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
/* section divider: a hairline with the mark in the middle */
.m-div { position: relative; height: 1px; background: var(--line); }
.m-div > span { position: absolute; display: block; left: 50%; top: 50%; width: 14px; height: 14px; padding: 0 10px; box-sizing: content-box; transform: translate(-50%, -50%); background: var(--div-bg, #fff); color: var(--black); }
.clients .m-div { --div-bg: var(--warm); margin: 32px 0; }

/* ---------- hover: plain opacity on links; letters roll only on the two primary CTAs ---------- */
.menu > a, .menu .dd > a, .f-col a, .f-contact a, .f-bot a, .f-btn { transition: opacity .2s; }
:is(.menu > a, .menu .dd > a, .f-col a, .f-contact a, .f-bot a, .f-btn):hover { opacity: .6; }
.m-roll .m-rw { white-space: nowrap; }
.m-roll .m-l { display: inline-block; overflow: hidden; vertical-align: top; padding: .15em 0; margin: -.15em 0; }
.m-roll .m-l > span { display: block; text-shadow: 0 1.6em currentColor; transition: transform .4s var(--ease) calc(var(--i) * 30ms); }
.m-roll:hover .m-l > span, .m-roll:focus-visible .m-l > span { transform: translateY(-1.6em); }

/* ---------- clients card and tools grid ---------- */
.intro-clients .marquee-track li { transition: opacity .3s var(--ease); }
.intro-clients .marquee-track li img { transition: filter .3s var(--ease); }
.intro-clients .marquee-track li:hover { opacity: 1; }
.intro-clients .marquee-track li:hover img { filter: none; }
.client { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.client:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.25); }

/* ---------- "Kaip dirbame": four steps on a line ---------- */
/* The line is drawn by each node to the next one (a flex item in the node's own row), so it always runs through the
   middle of the 12px marks, whatever the number size. --kd-gap is the column gap it has to cross. */
.kd { --kd-gap: 32px; }
.kd-track { position: relative; }
.kd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--kd-gap); }
.kd-steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.kd-num { font: 600 56px/1 var(--disp); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kd-node { display: flex; align-items: center; align-self: stretch; height: 12px; margin: 24px 0; color: var(--black); }
.kd-node svg { flex: none; display: block; width: 12px; height: 12px; }
.kd-steps li:not(:last-child) .kd-node::after { content: ""; flex: 1; height: 1px; margin: 0 calc(10px - var(--kd-gap)) 0 10px; background: rgba(0,0,0,.15); transform-origin: 0 50%; }
/* draw: four segments one after another (≈1 s in all); each mark turns black when its segment arrives */
html.m-on .kd-steps li .kd-node::after { transform: scaleX(0); transition: transform .3s linear calc(.2s + var(--k, 0) * .3s); }
html.m-on .kd-track.m-drawn .kd-node::after { transform: none; }
html.m-on .kd-node { color: rgba(0,0,0,.22); transition: color .3s var(--ease) calc(.2s + var(--k, 0) * .3s); }
html.m-on .kd-track.m-drawn .kd-node { color: var(--black); }
.kd-steps h3, .kd-steps p { max-width: 28ch; }
.kd-steps p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--grey); }
.kd-when { margin-top: 16px; font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 99px; background: var(--sand); color: rgba(0,0,0,.65); }
.bg-s .kd-when { background: #fff; }
@media (max-width: 1023.98px) {
  .kd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-steps li .kd-node::after { display: none; }
}
@media (max-width: 759.98px) {
  /* one column: a vertical line from mark to mark */
  .kd-steps { grid-template-columns: 1fr; row-gap: 40px; padding-left: 32px; }
  .kd-node { position: absolute; left: -32px; top: 14px; margin: 0; }
  .kd-steps li:not(:last-child)::before { content: ""; position: absolute; left: -26.5px; top: 34px; width: 1px; height: calc(100% + 40px - 28px); background: rgba(0,0,0,.15); transform-origin: 50% 0; }
  html.m-on .kd-steps li::before { transform: scaleY(0); transition: transform .3s linear calc(.2s + var(--k, 0) * .3s); }
  html.m-on .kd-track.m-drawn li::before { transform: none; }
  .kd-num { font-size: 40px; margin-bottom: 8px; }
}

.book-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- sticky "Nemokamas pokalbis" after the hero ---------- */
.m-sticky { position: fixed; z-index: 59; right: var(--m-sticky-r, 102px); bottom: calc(32px + env(safe-area-inset-bottom)); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.m-sticky.on { opacity: 1; transform: none; pointer-events: auto; }
.m-sticky .btn { box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
body:has(.cookies:not([hidden]), .chat.open) .m-sticky, body.menu-open .m-sticky { opacity: 0; pointer-events: none; }
@media (max-width: 759.98px) {
  .m-sticky { left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); }
  .m-sticky .btn { width: 100%; box-shadow: none; }
  html.m-bar .chat { bottom: calc(84px + env(safe-area-inset-bottom)); transition: bottom .3s var(--ease); }
}

/* ---------- loader: one mark draws itself, only while the hero video is late (max 900 ms) ---------- */
.m-load { display: none; }
.m-load.on { display: grid; place-items: center; position: fixed; inset: 0; z-index: 2147483000; background: var(--warm); color: var(--black); transition: opacity .3s var(--ease); }
.m-load.off { opacity: 0; pointer-events: none; }
.m-load svg { width: 44px; height: 44px; }
.m-load .ring { stroke-dasharray: 53; stroke-dashoffset: 53; transform: rotate(-90deg); transform-origin: 50% 50%; animation: m-draw .6s var(--ease) forwards; }
.m-load .dot { transform: scale(0); transform-origin: 50% 50%; animation: m-pop .3s var(--ease) .4s forwards; }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-pop { to { transform: scale(1); } }
html.m-wait :is(.hero-media video, .hero-overlay, .hero-copy h1, .hero-copy > p, .hero-ctas) { animation-play-state: paused; }

/* ---------- hero: video zooms in, then the copy rises ---------- */
@keyframes m-rise { from { opacity: .001; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes m-lift { from { transform: translateY(40px); } to { transform: none; } }
/* the H1 is the LCP element: it only rises (always painted), the lead and CTAs also fade in */
.hero-copy { animation: none; opacity: 1; }
.hero-copy h1 { animation: m-lift 1.2s var(--ease) .9s both; }
.hero-copy > p, .hero-ctas { opacity: .001; animation: m-rise 1.2s var(--ease) .9s forwards; }

/* ---------- one reveal for everything else ---------- */
html.m-on .m-r { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
html.m-on .m-r.m-in { opacity: 1; transform: none; }

/* ---------- stat numbers roll once ---------- */
.m-odo { display: inline-flex; overflow: hidden; vertical-align: top; }
.m-dg { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.33, 1, .68, 1) var(--d, 0s); }
.m-dg > span { display: block; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .m-load { display: none !important; }
  .hero-copy, .hero-copy h1, .hero-copy > p, .hero-ctas { animation: none; opacity: 1; transform: none; }
  .m-roll .m-l > span { transition: none; }
  .client, .client:hover { transform: none; }
}
@media (max-width: 399.98px) {
  body.inner .pg .ph-title .post-h1 { font-size: 23px; }
  body.inner .pg .post-body h2 { font-size: 19px; }
}

/* contrast (WCAG AA) for small grey text */
.post-foot { color: rgba(0,0,0,.62); }
.book-who small { color: rgba(0,0,0,.62); }
.bc-dow span { color: rgba(0,0,0,.62); text-transform: none; letter-spacing: 0; }

/* ================= spec 2: trust, proof, clarity, conversion (sections from /content, see sections.mjs) ================= */
/* keyboard focus: one ring everywhere, white on dark surfaces */
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
:is(.cs-card, .footer, .sec.dark, .page-cta-box, .hero, .chat-launcher, .btn-black) :focus-visible, .btn-black:focus-visible { outline-color: #fff; }
.btn-black:focus-visible { box-shadow: 0 0 0 5px #000; }

/* header phone (wide screens) and footer company facts */
.h-tel { margin-left: auto; margin-right: 20px; font-size: 15px; white-space: nowrap; color: inherit; transition: opacity .2s; }
.h-tel:hover { opacity: .6; }
@media (max-width: 1279.98px) { .h-tel { display: none; } }
.f-company { margin-top: 12px; font-size: 13px; line-height: 1.5; opacity: .6; }

/* ---------- founder ---------- */
.fd { position: relative; z-index: 2; background: var(--white); padding: 96px max(var(--gutter), calc((100% - 1600px) / 2)) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.fd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: grayscale(.15); background: var(--sand); }
.fd-label { font-size: 15px; color: var(--grey); }
.fd .h2 { margin-top: 20px; max-width: 20ch; }
.fd-facts { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fd-facts li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.fd-mark svg { display: block; width: 8px; height: 8px; }
.fd-link { display: inline-block; margin-top: 32px; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0,0,0,.25); transition: opacity .2s; }
.fd-link:hover { opacity: .6; }
@media (max-width: 899.98px) { .fd { grid-template-columns: 1fr; padding-top: 72px; } .fd-photo { max-width: 420px; } }

/* ---------- case studies ---------- */
.cs { position: relative; z-index: 2; background: var(--white); padding: 96px max(var(--gutter), calc((100% - 1600px) / 2)) 0; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.cs-nav { display: flex; gap: 8px; flex: none; }
.cs-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: grid; place-items: center; transition: opacity .2s, background-color .2s; }
.cs-btn:hover { background: var(--warm); }
.cs-btn[disabled] { opacity: .35; cursor: default; }
.cs-btn svg { width: 20px; height: 20px; }
.cs-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cs-slider::-webkit-scrollbar { display: none; }
.cs-slider > .cs-card { scroll-snap-align: start; }
.cs-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 48px; border-radius: 16px; background: #0b0b0b; color: #fff; }
.cs-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.cs-client { font-size: 19px; font-weight: 500; }
.cs-pill { font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.cs-blocks > div { margin-top: 28px; }
.cs-card h3 { color: #fff; }
.cs-blocks p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-metrics { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 40px; }
.cs-metric strong { display: block; font: 600 56px/1 var(--disp); letter-spacing: -.035em; white-space: nowrap; }
.cs-metric .cs-u { font-family: var(--sans); font-weight: 400; font-size: .4em; letter-spacing: -.02em; }
.cs-l { display: block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.62); }
.cs-right .shot { width: 100%; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.cs-quote { grid-column: 1 / -1; margin: 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.cs-quote p { font-size: 21px; line-height: 1.45; letter-spacing: -.01em; max-width: 60ch; }
.cs-quote footer { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.62); }
.tq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.tq-item { margin: 0; padding: 28px; border-radius: 16px; background: var(--warm); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.tq-item p { font-size: 19px; line-height: 1.45; }
.tq-item footer { margin-top: 12px; font-size: 14px; color: var(--grey); }
@media (max-width: 899.98px) {
  .cs-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .cs-metric strong { font-size: 44px; }
}
@media (max-width: 759.98px) { .cs { padding-top: 72px; } .cs-head { margin-bottom: 32px; } .cs-quote p { font-size: 19px; } }

/* ---------- industries ---------- */
.ind { position: relative; z-index: 2; background: var(--white); padding: 96px max(var(--gutter), calc((100% - 1600px) / 2)) 0; }
.ind-head { margin-bottom: 48px; }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 16px; background: var(--warm); box-shadow: 0 0 0 1px rgba(0,0,0,.05); color: var(--black); transition: background-color .2s; }
.ind-card:hover { background: var(--sand); }
.ind-ic { width: 24px; height: 24px; }
.ind-card h3 { margin-top: 40px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.ind-card p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--grey); flex: 1; }
.ind-more { margin-top: 24px; font-size: 15px; }
.ind-card:hover .ind-more { opacity: .6; }
@media (max-width: 1023.98px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .ind-grid { grid-template-columns: 1fr; } .ind-card h3 { margin-top: 24px; } }
@media (max-width: 759.98px) { .ind { padding-top: 72px; } .ind-head { margin-bottom: 32px; } }

/* ---------- calculator teaser ---------- */
.calc { position: relative; z-index: 2; background: var(--white); padding: 96px max(var(--gutter), calc((100% - 1600px) / 2)); }
.calc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); padding: clamp(28px, 4vw, 64px); border-radius: 16px; background: var(--sand); }
.calc-text .p21 { margin-top: 20px; color: var(--grey); max-width: 34ch; }
.calc-text .p21 a, .calc-price a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25); white-space: nowrap; }
.calc-price { margin-top: 28px; font-size: 16px; line-height: 1.5; }
.calc-form { display: grid; gap: 24px; align-content: start; }
.calc-field { display: grid; gap: 12px; }
.calc-field > span { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.calc-field output { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-field input[type=number] { height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); font: inherit; font-size: 17px; width: 100%; }
.calc-field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; }
.calc-field input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #000; }
.calc-field input[type=range]::-moz-range-track { height: 2px; background: #000; }
.calc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: #000; border: 0; }
.calc-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #000; border: 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 8px; }
.calc-out strong { display: block; font: 600 56px/1 var(--disp); letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-out div > span { display: block; margin-top: 8px; font-size: 15px; color: var(--grey); }
.calc-n { display: inline-block; }
.calc-n.roll { animation: m-roll-n .2s var(--ease); }
@keyframes m-roll-n { from { transform: translateY(.25em); opacity: .3; } to { transform: none; opacity: 1; } }
.calc-note { font-size: 13px; line-height: 1.5; color: var(--grey); }
.calc-form .btn { justify-self: start; }
@media (max-width: 1279.98px) { .calc-out strong { font-size: clamp(34px, 4vw, 56px); } }
@media (max-width: 899.98px) { .calc-card { grid-template-columns: 1fr; } .calc-out strong { font-size: clamp(30px, 9vw, 44px); } }
@media (max-width: 759.98px) { .calc { padding-top: 72px; padding-bottom: 72px; } }

/* ---------- FAQ ---------- */
.fq { position: relative; z-index: 2; background: var(--white); padding: 96px max(var(--gutter), calc((100% - 1600px) / 2)); }
.fq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.fq-all { font-size: 17px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0,0,0,.25); }
.fq-list { border-top: 1px solid var(--line); }
.fq-item { border-bottom: 1px solid var(--line); }
.fq-item h3 { margin: 0; font: inherit; }
.fq-q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; padding: 24px 0; text-align: left; font-family: var(--sans); font-size: 21px; line-height: 1.35; letter-spacing: -.01em; color: var(--black); background: none; cursor: pointer; }
.fq-plus { flex: none; display: grid; place-items: center; width: 24px; height: 24px; transition: transform .3s var(--ease); }
.fq-plus svg { width: 22px; height: 22px; }
.fq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.fq-a > div { overflow: hidden; }
.fq-a p { padding: 0 48px 28px 0; max-width: 72ch; font-size: 17px; line-height: 1.55; color: var(--grey); }
html.js .fq-item:not(.open) .fq-a { grid-template-rows: 0fr; }
html.js .fq-item:not(.open) .fq-a > div { visibility: hidden; transition: visibility 0s .3s; }
.fq-item.open .fq-plus { transform: rotate(45deg); }
@media (max-width: 759.98px) { .fq { padding-top: 72px; padding-bottom: 72px; } .fq-q { font-size: 18px; } .fq-head { flex-direction: column; align-items: flex-start; } }

/* ---------- /sritys pages ---------- */
body.page-sritys .ind-grid, body.page-sritis .ex-grid { margin-top: 0; }
.sr-list { display: grid; gap: 16px; margin-top: 40px; }
.sr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px; border-radius: 16px; background: var(--warm); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.sr-label { display: block; font-size: 13px; color: var(--grey); margin-bottom: 8px; }
.sr-row p { font-size: 17px; line-height: 1.5; }
.sr-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 40px; }
.sr-tools .client { height: 72px; display: grid; place-items: center; }
@media (max-width: 759.98px) { .sr-row { grid-template-columns: 1fr; gap: 16px; } }


/* ---------- booking: success mark ---------- */
.bd-mark { width: 44px; height: 44px; }
.bd-mark .ring { stroke-dasharray: 53; stroke-dashoffset: 53; transform: rotate(-90deg); transform-origin: 50% 50%; animation: m-draw .6s var(--ease) forwards; }
.bd-mark .dot { transform: scale(0); transform-origin: 50% 50%; animation: m-pop .3s var(--ease) .45s forwards; }

@media (prefers-reduced-motion: reduce) {
  .kd-node, .fq-a, .fq-plus, .calc-n.roll { transition: none !important; animation: none !important; }
  .bd-mark .ring, .bd-mark .dot { animation: none; stroke-dashoffset: 0; transform: none; }
  .cs-slider { scroll-behavior: auto; }
}
/* "DI automatizacija … įmonėms": long words, max 3 lines on phones */
@media (max-width: 479.98px) { body.page-sritis.inner .pg .ph-title .h1 { font-size: clamp(26px, 7.6vw, 34px); text-wrap: balance; } }
body.inner .pg .sec-head.sr-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* article side panel labels (H2 for the outline, same look as before) */
body.inner .pg .post-side .side-h { font-family: var(--sans); font-size: 10px; line-height: 12.5px; font-weight: 500; letter-spacing: 1px; text-transform: none; color: #000; margin: 0 0 10px; max-width: none; }
body.inner .pg .post-side .side-h ~ .side-h { margin-top: 26px; }
/* contrast on white: kicker and card meta at .62 */
body.inner .pg .ph-kicker, body.inner .pg .ex-meta { color: rgba(0,0,0,.62); }
/* tool logos on the industry pages keep their own proportions */
.sr-tools img { width: auto; }

/* ================= final pass: one spacing scale, one header, one card, one icon set ================= */
:root {
  color-scheme: light;
  --sans: "Geist", "Geist Fallback", system-ui, sans-serif;
  --disp: "Archivo X", "Archivo X Fallback", "Geist", system-ui, sans-serif;
  --sec-pad: 120px; --head-gap: 48px; --card-pad: 28px;
}
@media (max-width: 1023.98px) { :root { --sec-pad: 80px; } }
@media (max-width: 759.98px) { :root { --sec-pad: 64px; --card-pad: 20px; } }

/* sections: 8px grid, same padding everywhere; backgrounds come from the rendered order (build: sectionRhythm) */
.pg main > section:is(.clients, .features, .cs, .ind, .fd, .kd, .calc, .blog, .fq, .cta) { position: relative; z-index: 2; padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.pg main > section:is(.cs, .ind, .fd, .kd, .calc, .fq) { padding-left: max(var(--gutter), calc((100% - 1600px) / 2)); padding-right: max(var(--gutter), calc((100% - 1600px) / 2)); }
.pg main > section.bg-w { background: #fff; --sec-bg: #fff; --card-bg: var(--warm); }
.pg main > section.bg-a { background: var(--warm); --sec-bg: var(--warm); --card-bg: #fff; }
.pg main > section.bg-s { background: var(--sand); --sec-bg: var(--sand); --card-bg: #fff; }
.clients .m-div { --div-bg: var(--sec-bg, var(--warm)); }

/* section headers: left H2 (+ intro) and a link on the right; 48px to the content */
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: var(--head-gap); }
.m-head .h2 { margin: 0; }
.m-intro { margin-top: 16px; }
.sec-link { flex: none; font-size: 17px; line-height: 1.4; color: var(--black); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sec-link:hover { text-decoration-thickness: 2px; }
.blog .posts, .kd-track { margin-top: 0; }
@media (max-width: 759.98px) { .m-head { flex-direction: column; align-items: flex-start; } }

/* type: one H2, one intro paragraph, tabular numbers */
.pg main .p21 { font-size: 21px; line-height: 1.45; color: rgba(0,0,0,.62); max-width: min(60ch, 100%); }
.pg main .p21 a { color: var(--black); }
@media (max-width: 759.98px) { .pg main .p21 { font-size: 18px; } }
.fd .h2 { max-width: 18ch; }
.stat strong, .kd-num, .cs-metric strong, .calc-out strong, .calc-field output, .post-foot, .ex-meta, .bc-days, .bs-list, time { font-variant-numeric: tabular-nums; }

/* body links */
:is(.post-body, .ph-lede, .calc-price, .fq-a, .page-cta-actions p, .duk-a, .legal) a:not(.btn), .pg main .p21 a {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:is(.post-body, .ph-lede, .calc-price, .fq-a, .page-cta-actions p, .duk-a, .legal) a:not(.btn):hover, .pg main .p21 a:hover { text-decoration-thickness: 2px; }

/* one card: warm / white / sand / dark variants, same radius, ring and hover */
:is(.ind-card, .blog .post, body.inner .pg .ex.post-card, .clients .client, .sr-tools .client, .tq-item, .sr-row) {
  border-radius: 16px; background: var(--card-bg, var(--warm)); box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.clients .client { --card-bg: #fff; }
:is(.ind-card, .blog .post, .tq-item, .sr-row) { padding: var(--card-pad); }
:is(.ind-card, .blog .post, body.inner .pg .ex.post-card, .clients .client, .sr-tools .client):hover {
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 40px -24px rgba(0,0,0,.28); transform: translateY(-2px); }
.ind-more > span { display: inline-block; transition: transform .3s var(--ease-out); }
.ind-card:hover .ind-more > span { transform: translateX(4px); }
.ind-card:hover .ind-more { opacity: 1; }

/* icons: lucide, 1.5 stroke; 24px in cards, 16px inline, black at .85 */
.ind-ic { width: 24px; height: 24px; color: rgba(0,0,0,.85); }
.f-contact svg, .h-tel svg { width: 16px; height: 16px; flex: none; opacity: .85; }

/* states */
.btn, .cs-btn { transition: transform .15s var(--ease-out), background-color .2s, color .2s, opacity .2s, box-shadow .2s; }
.btn:active, .cs-btn:active { transform: scale(.97); }
:is(.btn, .cs-btn, button, input, select, textarea):disabled, [aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.cs-btn[disabled] { opacity: .4; }

/* ---------- articles row: 3 columns from 1200 px, 2 down to 760 px, then 1; no sideways rail ---------- */
.blog .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
.blog .post { flex: none; min-height: 0; }
.blog .posts > .post:nth-child(n+4) { display: none; }
@media (max-width: 1199.98px) { .blog .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .blog .posts > .post:nth-child(4) { display: flex; } }
@media (max-width: 759.98px) { .blog .posts { grid-template-columns: 1fr; } .blog .posts > .post:nth-child(4) { display: none; } }

/* ---------- calculator: text column ends where the results end; results in rows (they never run out of room) ---------- */
.calc-card { grid-template-areas: "text form" ". foot"; row-gap: 32px; }
.calc-text { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; }
.calc-form { grid-area: form; }
.calc-foot { grid-area: foot; display: grid; gap: 24px; justify-items: start; }
.calc-first { margin-top: auto; padding-top: 40px; }
.calc-first p { font-size: 15px; color: var(--grey); }
.calc-first ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.calc-first li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; }
.calc-mark svg { display: block; width: 8px; height: 8px; }
.calc-field small { font-size: 13px; color: var(--grey); font-weight: 400; }
.calc-out { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 8px; }
.calc-out > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.calc-out strong { font-size: clamp(36px, 10vw, 56px); line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-out div > span { margin-top: 0; }
.calc-u { font-family: var(--sans); font-weight: 400; font-size: .5em; letter-spacing: -.02em; }
@media (max-width: 899.98px) {
  .calc-card { grid-template-columns: 1fr; grid-template-areas: "text" "form" "foot"; }
  .calc-first { margin-top: 0; padding-top: 32px; }
}
@media (max-width: 639.98px) { .calc-out > div { flex-direction: column; align-items: flex-start; } }
@media (max-width: 759.98px) { .calc-card { padding: 24px var(--card-pad); } }

/* ---------- cookie sheet: compact, never over the hero copy; nothing else fixed while it is open ---------- */
.cookies h2 { font-size: 17px; }
.cookies p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 760px) {
  .cookies { left: 24px; right: auto; margin: 0; bottom: calc(24px + env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 48px)); padding: 20px; border-radius: 16px; }
  .cookies h2 { font-size: 15px; }
  .cookies > p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
  .cookie-actions { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; margin-top: 14px; }
  .cookies .cookie-actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .cookie-link { margin: 0 0 0 auto; font-size: 13px; }
  .cookies:has(#cookie-prefs:not([hidden])) .cookie-actions { display: flex; flex-wrap: wrap; }
}
@media (max-width: 759.98px) {
  .cookies { left: 0; right: 0; bottom: 0; width: auto; margin: 0; max-height: 30vh; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0; border-width: 1px 0 0; box-shadow: 0 -12px 32px rgba(0,0,0,.14); }
  .cookies h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cookies > p { margin: 0; font-size: 14px; line-height: 1.45; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; margin-top: 12px; }
  .cookies .cookie-actions .btn { height: 40px; padding: 0 10px; font-size: 14px; }
  .cookie-link { margin: 0 0 0 4px; font-size: 14px; }
  .cookies:has(#cookie-prefs:not([hidden])) { max-height: 85vh; }
  .cookies:has(#cookie-prefs:not([hidden])) .cookie-actions { display: flex; flex-wrap: wrap; }
}
body:has(#cookies:not([hidden])) :is(.m-sticky, .chat), body.menu-open .chat { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* ---------- hero on phones: the copy sits higher, the bottom is darker for white text on light frames ---------- */
@media (max-width: 759.98px) {
  .hero-text { padding-top: 88px; padding-bottom: 32px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.9) 100%), radial-gradient(139% 111% at 50.8% 0, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 99%); }
}

/* ---------- footer: one contact column ---------- */
.f-contact { display: grid; justify-items: start; gap: 16px; }
.f-contact a, .f-contact span { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; line-height: 1.4; letter-spacing: -.01em; }
@media (max-width: 759.98px) { .f-contact a, .f-contact span { font-size: 17px; } }
@media (min-width: 760px) { .hero-text { transform: translateY(calc(-1 * var(--hero-lift, 0px))); transition: transform .4s var(--ease-out); } }
@media (prefers-reduced-motion: reduce) { .hero-text { transition: none; } }

/* the client logo strip above the stats was removed (honest.mjs): no gap above the first row */
.intro-card > .stats:first-child { margin-top: 0; }

/* article text: the base ".post p" rule clamps card excerpts to 3 lines, but articles also sit in a .post wrapper – never cut article paragraphs */
.post .post-body p, .post .post-side p, .post .post-faq p { -webkit-line-clamp: none; line-clamp: none; overflow: visible; }

/* /kainos: four price cards (2 × 2) */
body.inner .pg .plans.plans-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 759.98px) { body.inner .pg .plans.plans-4 { grid-template-columns: 1fr; } }

/* free website demo dialog (motion.js) */
dialog.dm { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; color: #000; overflow: auto; }
dialog.dm::backdrop { background: rgba(0,0,0,.55); }
dialog.dm[open] { animation: m-rise .35s var(--ease, ease) both; }
.dm-form { position: relative; display: grid; gap: 14px; padding: 36px; }
.dm-form [hidden] { display: none !important; }
.dm-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f2f2; font-size: 22px; line-height: 1; cursor: pointer; color: #000; }
.dm-form h2 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; padding-right: 40px; }
.dm-lede { color: #555; font-size: 15px; line-height: 1.5; }
.dm-note { padding: 12px 14px; border-radius: 12px; background: #f4f4f1; font-size: 14px; line-height: 1.5; color: #333; }
.dm-note b { font-weight: 500; color: #000; }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-f { display: grid; gap: 6px; min-width: 0; }
.dm-f > span { font-size: 13px; font-weight: 500; }
.dm-f input, .dm-f textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #e3e3e3; background: #f7f7f7; font: 400 15px/1.4 inherit; font-family: inherit; color: #000; resize: vertical; outline: none; }
.dm-f input:focus, .dm-f textarea:focus { border-color: #000; background: #fff; }
.dm-c { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #555; cursor: pointer; }
.dm-c input { margin-top: 3px; accent-color: #000; }
.dm-c a { color: #000; text-decoration: underline; }
.dm-err { font-size: 13px; font-weight: 500; color: #c62828; }
.dm-form .btn { justify-self: start; }
.dm-done h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.dm-done p { margin-top: .4rem; color: #555; }
@media (max-width: 759.98px) { .dm-form { padding: 26px 20px; } .dm-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { dialog.dm[open] { animation: none; } }

/* home: free website demo section (prices.mjs), right under the hero numbers */
.dm-sec { position: relative; z-index: 2; background: var(--white); padding: 24px 24px 0; }
.dm-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(32px, 5.5vw, 88px); border-radius: var(--r, 16px); background: var(--black); color: var(--white); }
.dm-kicker { display: block; margin-bottom: 20px; font-size: 14px; color: rgba(255,255,255,.6); }
.dm-h { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.15; font-weight: 400; letter-spacing: -.04em; max-width: 15ch; }
.dm-p { margin: 20px 0 32px; max-width: 46ch; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.78); }
.dm-small { margin-top: 16px; max-width: 46ch; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.5); }
.dm-steps { list-style: none; display: grid; }
.dm-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); }
.dm-steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.dm-steps span { font-family: var(--mono, monospace); font-size: 13px; color: rgba(255,255,255,.5); padding-top: 3px; }
.dm-steps b { font-size: 18px; font-weight: 500; }
.dm-steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.65); }
@media (max-width: 1023.98px) { .dm-card { grid-template-columns: 1fr; } }
@media (max-width: 759.98px) { .dm-sec { padding: 12px 12px 0; } .dm-p { font-size: 16px; } .dm-sec .btn { width: 100%; justify-content: center; } }

/* phone: the top bar is see-through (made for the hero video); below the hero text ran under the logo – white bar there */
@media (max-width: 759.98px) {
  .header-bg { transition: background-color .3s; }
  .header:not(.on-hero) .header-bg { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
}
