:root{
  --sky:#e9eff7; --ink:#0d1a3a; --ink2:#2a3654; --muted:#5a6682; --line:#d9e1ec;
  --accent:#f5821f; --accent-ink:#a95208; --tint:#fef0e4;
  --ease-out:cubic-bezier(.23,1,.32,1); --ease-io:cubic-bezier(.77,0,.175,1);
  --gutter:max(28px,calc((100vw - 1320px) / 2));
  --shadow:0 22px 46px -26px rgba(13,26,58,.42);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font:400 16px/1.6 "Archivo",system-ui,sans-serif;color:var(--ink2);background:#fff;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:32px;height:76px;padding:0 var(--gutter);background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(13,26,58,.08)}
.brand-logo{display:block;width:auto;height:40px}
.menu{display:flex;gap:24px;margin-left:auto;font-weight:500;font-size:15px;color:var(--ink)}
.menu a{transition:color .2s ease}
@media (hover:hover) and (pointer:fine){.menu a:hover{color:var(--accent-ink)}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;border:1.5px solid transparent;font-weight:600;font-size:15px;font-stretch:108%;white-space:nowrap;transition:background-color .2s ease,color .2s ease}
.btn.dark{background:var(--ink);color:#fff}
.btn.line{border-color:rgba(13,26,58,.75);color:var(--ink);background:rgba(255,255,255,.55)}
@media (hover:hover) and (pointer:fine){.btn.dark:hover{background:var(--accent-ink)}.btn.line:hover{background:#fff}}
.mnav{display:none;position:relative;margin-left:auto}
.mnav summary{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;cursor:pointer;list-style:none}
.mnav summary::-webkit-details-marker{display:none}
.mnav-ico,.mnav-ico::before,.mnav-ico::after{display:block;width:20px;height:2px;border-radius:2px;background:var(--ink)}
.mnav-ico{position:relative}
.mnav-ico::before,.mnav-ico::after{content:"";position:absolute;left:0}
.mnav-ico::before{top:-6px}.mnav-ico::after{top:6px}
.mnav[open] .mnav-ico{background:transparent}
.mnav[open] .mnav-ico::before{top:0;transform:rotate(45deg)}
.mnav[open] .mnav-ico::after{top:0;transform:rotate(-45deg)}
.mnav nav{position:absolute;right:0;top:52px;display:grid;min-width:230px;padding:8px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.mnav nav a{padding:12px 14px;border-radius:10px;font-weight:500;color:var(--ink)}
@media (max-width:1180px){.menu,.top>.btn{display:none}.mnav{display:block}}


/* ---------- header: "Produktai" opens the panel of js/te-menu.js, as "Funkcionalumas" on the product sites (2026-11-07) ---------- */
.menu{align-items:center}
.menu a{position:relative}
/* the Produktai chevron, in the HTML from the start; js/te-menu.js turns it when the panel opens */
.mm-chev{display:inline-block;width:5px;height:5px;margin:0 1px 3px 7px;border-right:1.6px solid;border-bottom:1.6px solid;transform:rotate(45deg);transition:transform .2s ease}
.menu a[aria-current="page"]{color:var(--accent-ink)}
.mnav nav{max-height:calc(100svh - 96px);overflow:auto}
.mnav nav h2{padding:10px 14px 2px;font-size:12px;font-weight:600;color:var(--muted)}

/* ---------- inner pages ---------- */
.page-top{padding:28px var(--gutter) 40px;background:var(--sky)}
.crumbs{display:flex;flex-wrap:wrap;gap:4px 10px;list-style:none;font-size:14px;color:var(--muted)}
.crumbs li+li::before{content:"/";margin-right:10px;color:#9aa6b8}
.crumbs a{text-decoration:underline;text-decoration-color:rgba(90,102,130,.4);text-underline-offset:3px}
.page-top h1{margin-top:18px;max-width:24ch;font-size:clamp(30px,3.4vw,50px);line-height:1.08;font-weight:700;font-stretch:112%;letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
.page-top .lead{margin-top:14px;max-width:62ch;font-size:18px;line-height:1.6}
.page-top time{display:block;margin-top:12px;font-size:14px;color:var(--muted)}
.page-main{padding:56px var(--gutter) 72px;display:grid;grid-template-columns:minmax(0,760px) minmax(0,1fr);gap:48px}
.prose{min-width:0;font-size:17px;line-height:1.7}
.prose>*+*{margin-top:1.05em}
.prose h2{margin-top:2em;font-size:clamp(23px,2.2vw,29px);line-height:1.2;font-weight:700;font-stretch:108%;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.prose h3{margin-top:1.6em;font-size:20px;line-height:1.3;font-weight:700;color:var(--ink)}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.35em}
.prose a{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose strong{color:var(--ink)}
.prose img{max-width:100%;max-height:480px;width:auto;height:auto;border-radius:12px}
.prose img.eu{max-height:140px;border-radius:0}
.prose .icon-img{max-height:64px}
.prose figure{margin:1.4em 0}
.prose .table-wrap{overflow-x:auto}
.prose table{border-collapse:collapse;width:100%;font-size:15px}
.prose th,.prose td{padding:8px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}
.cards,.prose .cards{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:2em;padding:0}
.cards li,.prose .cards li+li{margin:0}
.cards a{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px 20px;border-radius:14px;background:var(--sky);color:var(--ink);font-weight:600;font-size:17px;line-height:1.35;text-decoration:none;border:1px solid transparent;transition:border-color .2s ease,background-color .2s ease}
.cards a small{font-size:14px;font-weight:400;color:var(--ink2)}
@media (hover:hover) and (pointer:fine){.cards a:hover{border-color:var(--accent);background:#fff}}
/* the side of a product page (2026-11-07, the client's choice B): the Terra product's card, under it the group's pages */
.side{align-self:start;position:sticky;top:100px;display:grid;gap:14px}
.pcard{padding:22px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px -32px rgba(13,26,58,.45)}
.pcard img{display:block;width:auto;height:46px;max-width:100%}
.pcard p{margin-top:12px;font-size:15px;line-height:1.5;color:var(--ink2)}
.pcard-q{display:block;font-size:17px;color:var(--ink)}
.pcard-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.pcard .btn{height:42px;padding:0 18px;font-size:14px}
.also-here{padding:18px 16px 14px;border-radius:16px;background:var(--sky)}
.also-here h2{padding:0 6px;font-size:14px;font-weight:700;color:var(--ink)}
.also-here ul{margin-top:8px;list-style:none;display:grid;gap:2px}
.also-here a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;font-size:15px;line-height:1.35;color:var(--ink);transition:background-color .15s ease,color .15s ease}
.also-here svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.also-here svg .a{stroke:var(--accent)}
.also-here .ico-gap{flex:none;width:20px}
@media (hover:hover) and (pointer:fine){.also-here a:hover{background:#fff}}
.also-here a[aria-current="page"]{background:var(--tint);color:var(--accent-ink);font-weight:600;box-shadow:inset 3px 0 0 var(--accent)}
.faq-list{margin-top:1.6em;display:grid;gap:10px}
.faq-list details{border-radius:14px;background:var(--sky)}
.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;cursor:pointer;list-style:none;font-weight:600;color:var(--ink)}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";flex:none;font-size:24px;line-height:1;color:var(--accent-ink);transition:transform .2s var(--ease-out)}
.faq-list details[open] summary::after{transform:rotate(45deg)}
.faq-list .ans{padding:0 20px 18px}
.faq-list .ans p+p{margin-top:.8em}
.news-list{list-style:none;display:grid;gap:0;max-width:820px;padding:0}
.news-list li{padding:20px 0;border-top:1px solid var(--line)}
.news-list li:last-child{border-bottom:1px solid var(--line)}
.es-list{margin-top:28px}
.news-list time{display:block;font-size:14px;color:var(--muted)}
.news-list a{display:block;margin-top:2px;font-size:20px;font-weight:700;line-height:1.3;color:var(--ink);text-wrap:balance}
.news-list p{margin-top:6px;font-size:16px;color:var(--ink2)}
@media (hover:hover) and (pointer:fine){.news-list a:hover{color:var(--accent-ink)}}
.pager{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px}
.pager a,.pager span{display:grid;place-items:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);font-weight:600;color:var(--ink)}
.pager span{background:var(--ink);border-color:var(--ink);color:#fff}
.client-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:0}
.client-grid li{display:grid;place-items:center;padding:20px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.client-grid img{max-width:100%;max-height:96px;width:auto;height:auto;border-radius:0}
.eu-logos{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:1.6em}
.eu-logos img{max-height:72px;width:auto;border-radius:0}
@media (max-width:1000px){.page-main{grid-template-columns:minmax(0,1fr);gap:32px}.side{position:static}}
@media (max-width:640px){.cards,.client-grid{grid-template-columns:1fr}.prose{font-size:16px}.page-main{padding:36px var(--gutter) 48px}}

/* ---------- contact and footer ---------- */
.where{padding:56px var(--gutter);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px;align-items:center}
.where img{width:100%;height:auto;border-radius:16px}
@media (max-width:900px){.where{grid-template-columns:minmax(0,1fr);padding:40px var(--gutter)}}
.contact{padding:104px var(--gutter);display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;background:var(--ink);color:#c7cede}
.contact h2{font-size:clamp(28px,2.8vw,40px);font-weight:700;font-stretch:112%;color:#fff}
.contact p{margin-top:16px;max-width:46ch}
.contact dl{margin-top:32px;display:grid;gap:4px}
.contact dt{font-size:12px;color:#f9c393}
.contact dd{margin-bottom:12px;color:#fff;font-weight:500}
.contact dd a{text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:3px}
.inq{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:start}
.inq label{display:grid;gap:6px;font-size:13px}
.inq .full{grid-column:1/-1}
.inq input,.inq textarea{width:100%;padding:12px 14px;border:1px solid #2b3858;border-radius:12px;background:#0f1d3d;color:#fff;font:inherit;font-size:15px}
.inq textarea{min-height:120px;resize:vertical}
.inq .consent{display:flex;align-items:flex-start;gap:10px}
.inq .consent input{width:18px;height:18px;margin-top:2px;flex:none}
.inq .consent a{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.inq .btn{justify-self:start;background:#fff;color:var(--ink)}
.form-msg{padding:12px 14px;border-radius:12px;background:#e2f5ea;color:#0d7e48;font-weight:600;max-width:none}
.form-msg.is-error{background:#fde7e7;color:#a32020}
.inq .btn:disabled{opacity:.6;cursor:progress}
.inq [aria-invalid="true"]{border-color:#ff9b9b;outline:1px solid #ff9b9b}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* footer as on the product sites (2026-11-07) */
.foot{padding:48px var(--gutter) 96px;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px;background:#fff;font-size:14px}
.foot .tlogo{display:block;height:34px;width:auto;margin-bottom:16px}
.foot-h{font-size:13px;font-weight:600;color:var(--ink);margin-bottom:12px}
.family{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px}
.family a{color:var(--ink2);transition:color .2s ease}
.family a b{font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:rgba(13,26,58,.25);text-underline-offset:3px;transition:text-decoration-color .2s ease}
@media (hover:hover) and (pointer:fine){.family a:hover,.family a:hover b{color:var(--accent-ink);text-decoration-color:currentColor}}
.legal{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px;font-size:13px;color:var(--muted)}
.legal a{color:inherit}
@media (hover:hover) and (pointer:fine){.legal a:hover{color:var(--accent-ink)}}
@media (max-width:900px){.foot{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.family{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){.contact{grid-template-columns:minmax(0,1fr);padding:56px var(--gutter);gap:36px}}
@media (max-width:560px){.inq{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.cards a,.faq-list summary::after{transition:none}}

/* ---------- contacts: the map (a schematic map in the site's colours; the card over the pin is HTML) ---------- */
.site-map{padding:56px var(--gutter) 24px}
.site-map h2{font:700 clamp(26px,3vw,34px)/1.15 "Archivo",system-ui,sans-serif;font-stretch:112%;color:var(--ink);letter-spacing:-.02em;margin-bottom:22px}
.site-map figure{position:relative;border-radius:20px;overflow:hidden;background:var(--sky);box-shadow:0 18px 44px -26px rgba(13,26,58,.45)}
.site-map .office-photo{margin-bottom:24px;background:#0d1a3a}
.office-photo img{display:block;width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;object-position:50% 45%}
.office-photo figcaption{padding:12px 18px;background:#fff;color:var(--muted);font-size:14px}
.site-map svg{display:block;width:100%;height:auto}
.map-card{position:absolute;left:calc(36.2% + 34px);top:45.5%;transform:translateY(-50%);display:grid;gap:3px;max-width:310px;padding:14px 18px;border-radius:14px;background:#fff;box-shadow:0 10px 28px -12px rgba(13,26,58,.5);color:var(--ink2);font-size:15px;line-height:1.35}
.map-card b{font-size:17px;color:var(--ink)}
.map-card a{margin-top:6px;font-weight:600;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.map-card a:hover{color:var(--accent-ink)}
@media (max-width:720px){
  .site-map{padding:40px var(--gutter) 16px}
  .office-photo img{aspect-ratio:4/3;object-position:35% 50%}
  .map-card{position:static;transform:none;max-width:none;border-radius:0;box-shadow:none;padding:14px 18px 18px}
}
/* ---------- the home page's logo intro (js/te-intro.js), as on the product sites: the logo draws itself, fills, then flies into the header ---------- */
.logo-intro{--intro-bg:#fff;position:fixed;inset:0;z-index:100;pointer-events:none;animation:introFailsafe .4s 9s forwards}
.logo-intro .intro-bg{position:absolute;inset:0;background:var(--intro-bg)}
.logo-intro .intro-stage{position:absolute;inset:0;display:grid;place-items:center}
.intro-logo{display:block;overflow:visible;will-change:transform}
@keyframes introFailsafe{to{opacity:0;visibility:hidden}}
.is-intro .brand-logo{visibility:hidden}
/* ---------- the products hub (2026-11-07): the two groups as cards, then every Terra product with its logo (as on the home page) ---------- */
.prod-page{padding:56px var(--gutter) 72px;display:grid;gap:28px}
.prod-page h2{margin-top:20px;font-size:28px;line-height:1.15;font-weight:700;font-stretch:112%;letter-spacing:-.02em;color:var(--ink)}
.gcards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gcard{display:flex;flex-direction:column;gap:8px;padding:26px;border-radius:18px;background:var(--sky);border:1px solid var(--line);color:var(--ink2);transition:border-color .2s ease,background-color .2s ease}
.gcard b{font-size:22px;font-weight:700;font-stretch:108%;color:var(--ink)}
.gcard span{font-size:16px;line-height:1.5}
.gcard small{margin-top:4px;font-size:15px;font-weight:600;color:var(--accent-ink)}
@media (hover:hover) and (pointer:fine){.gcard:hover{background:#fff;border-color:#c9d3e3}}
.why-ico{display:grid;place-items:center;width:44px;height:44px;margin-bottom:6px;border-radius:12px;background:var(--tint)}
.why-ico svg{width:24px;height:24px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.why-ico svg .a{stroke:var(--accent)}
.prod-page .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.prod-page .grid a{display:flex;flex-direction:column;gap:12px;padding:22px;border-radius:16px;background:#fff;border:1px solid var(--line);color:var(--ink2);transition:border-color .2s ease,box-shadow .2s ease}
.prod-page .grid img{display:block;align-self:flex-start;width:auto;height:44px;max-width:100%}
.prod-page .grid span{font-size:15px;line-height:1.45}
@media (hover:hover) and (pointer:fine){.prod-page .grid a:hover{border-color:#c9d3e3;box-shadow:0 14px 30px -22px rgba(13,26,58,.45)}}
@media (max-width:760px){.gcards{grid-template-columns:minmax(0,1fr)}.prod-page{padding:36px var(--gutter) 48px}}
/* long titles (news, EU projects, old product pages): a smaller heading; the breadcrumbs' last item stays on one line */
.page-top h1.long{max-width:34ch;font-size:clamp(26px,2.5vw,38px);line-height:1.15;letter-spacing:-.02em}
.crumbs li[aria-current]{max-width:46ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.crumbs li[aria-current]{max-width:100%}}
/* ---------- the AI page: where Terra IT uses AI (2026-11-07) ---------- */
.di-cases{margin:2em 0 1em}
.prose .di-common{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.di-common li{margin:0;padding:16px 18px;border-radius:14px;background:var(--tint)}
.di-common b{display:block;color:var(--ink)}
.di-common span{display:block;margin-top:4px;font-size:15px;line-height:1.5}
.di-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.di-card{display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:16px;background:#fff;border:1px solid var(--line)}
.di-card img{display:block;width:auto;height:40px;align-self:flex-start}
.prose .di-card ul{margin:0;padding-left:1.1em;font-size:15px;line-height:1.5}
.prose .di-card li+li{margin-top:.3em}
.di-more{margin-top:auto;font-size:14px;font-weight:600;color:var(--accent-ink);text-decoration:none}
@media (hover:hover) and (pointer:fine){.di-more:hover{text-decoration:underline}}
.di-research{display:grid;gap:12px;margin-top:14px}
.prose .di-res{display:block;padding:18px 20px;border-radius:14px;background:var(--sky);border:1px solid var(--line);color:var(--ink2);text-decoration:none;transition:border-color .2s ease}
.di-res b{display:block;color:var(--ink)}
.di-res span{display:block;margin-top:4px;font-size:15px;line-height:1.5}
@media (hover:hover) and (pointer:fine){.prose .di-res:hover{border-color:#c9d3e3;background:#fff}}
@media (max-width:760px){.prose .di-common,.di-grid{grid-template-columns:minmax(0,1fr)}}

/* the footer's "Draugaukime" block: Terra IT's LinkedIn and Facebook under the link line (variantai/add_social.py) */
.social{margin-top:24px}
.social .foot-h{margin-bottom:10px}
.social p{display:flex;flex-wrap:wrap;gap:8px 20px}
.social a{display:inline-flex;align-items:center;gap:8px;min-height:32px;color:inherit;text-decoration:none}
.social svg{width:18px;height:18px;fill:currentColor;flex:none}
@media (hover:hover) and (pointer:fine){.social a{transition:color .15s ease}.social a:hover{color:var(--accent-ink,#0d1a3a)}}
