/* Responsive layer (25.11.2026): sections-b. Only rules inside @media (max-width:1899px). The approved look at 1920+ must not change. */
/* Fixer C: #procesas, partners (.sx-g4-part), #darbai, #kontaktai, footer. Prefix "html.sx-page body" = wins over glue (0,3,1) by specificity, not by order. */

/* =========================================================================================
   1 · LAPTOPS AND BELOW (<=1899): type and spacing scale with the viewport (ref x vw/1920), with floors
   ========================================================================================= */
@media (max-width:1899px){
  /* type */
  html.sx-page body .sx-g4 .sx-g4-h2,
  html.sx-page body .sx-g5 .sx-g5-h2{ font-size:clamp(27px,2.19vw,42px) }
  html.sx-page body .sx-g5 .sx-g5-h2--cta{ font-size:clamp(30px,2.5vw,48px) }
  html.sx-page body .sx-g4 .sx-g4-lead,
  html.sx-page body .sx-g5 .sx-g5-lead{ font-size:clamp(14px,.84vw,16px) }
  html.sx-page body .sx-g4 .sx-g4-step h3{ font-size:clamp(18px,.99vw,19px) }
  html.sx-page body .sx-g4 .sx-g4-step p,
  html.sx-page body .sx-g4 .sx-g4-pt p{ font-size:14px }
  html.sx-page body .sx-g4 .sx-g4-finale h3{ font-size:clamp(24px,1.875vw,36px) }
  html.sx-page body .sx-g4 .sx-g4-finale p{ font-size:clamp(14px,.81vw,15.5px) }
  html.sx-page body .sx-g4 .sx-g4-pt h3{ font-size:clamp(20px,1.46vw,28px) }
  html.sx-page body .sx-g5 .sx-g5-cap-title{ font-size:clamp(18px,1.04vw,20px) }
  html.sx-page body .sx-g5 .sx-g5-cap-desc{ font-size:14px; max-width:none }
  html.sx-page body .sx-g5 .sx-g5-foot-h{ font-size:12px }
  /* no lone last word ("rinkose.", "grąžą.", "konfigūraciją."); pretty, not balance: balance made the right-aligned Intergrid text look centred */
  html.sx-page body .sx-g4 .sx-g4-pt p,
  html.sx-page body .sx-g4 .sx-g4-lead,
  html.sx-page body .sx-g5 .sx-g5-lead{ text-wrap:pretty }
  /* letter-spaced labels in the contact row and footer: 12 px */
  html.sx-page body .sx-g5 .sx-g5-facts dt{ font-size:12px }
  /* Procesas head: tops of the left (eyebrow + h2) and right (paragraph) columns line up */
  html.sx-page body .sx-g4 .sx-g4-head{ align-items:start }
  html.sx-page body .sx-g4 .sx-g4-head .sx-g4-lead{ padding-bottom:0 }

  /* section paddings and gaps (2056 values scaled by width, floor about 56) */
  html.sx-page body .sx-g4.sx-g4-proc{ padding-top:clamp(56px,calc(22.5vw - 304px),128px); padding-bottom:clamp(56px,5vw,96px) }
  html.sx-page body .sx-g4 .sx-g4-steps{ margin-top:clamp(40px,3.96vw,76px) }
  html.sx-page body .sx-g4.sx-g4-part{ --g4pb:clamp(56px,6.25vw,120px); padding-top:clamp(48px,4.58vw,88px); padding-bottom:var(--g4pb) }
  html.sx-page body .sx-g4 .sx-g4-panel{ margin-top:clamp(32px,3.33vw,64px) }
  html.sx-page body .sx-g4 .sx-g4-part-head .sx-g4-lead{ margin-top:clamp(16px,1.15vw,22px) }
  html.sx-page body .sx-g5.sx-g5-work{ padding-top:clamp(56px,5.4vw,104px); padding-bottom:clamp(48px,3.75vw,72px) }
  html.sx-page body .sx-g5 .sx-g5-head{ margin-bottom:clamp(28px,2.5vw,48px) }
  html.sx-page body .sx-g5.sx-g5-contact{ padding-top:clamp(56px,5vw,96px) }
  /* partners -> Darbai: glue colours, but measured from the bottom padding (--g4pb): blue beside the card (no lilac strips at the card sides),
     the fade to mist happens below the card and eases into the flat mist of Darbai (no visible step) */
  html.sx-page body .sx-g4.sx-g4-part{ background:linear-gradient(180deg,#133c76 0%,#1b4681 22%,#3f6199 calc(100% - var(--g4pb) - 160px),#56739f calc(100% - var(--g4pb)),#8fa6c7 calc(100% - var(--g4pb)*.62),#b4c3d8 calc(100% - var(--g4pb)*.36),#cdd7e6 calc(100% - var(--g4pb)*.14),#d6dfeb 100%) }
  /* WebKit showed a 1 px seam between these sections (fractional heights): each one overlaps the one above by 1 px */
  html.sx-page body .sx-g4.sx-g4-part, html.sx-page body .sx-g5.sx-g5-work, html.sx-page body .sx-g5.sx-g5-contact, html.sx-page body .sx-g5.sx-g5-foot{ margin-top:-1px }
  /* card shadows end inside the section padding (overflow:clip on the section would cut them into a hard line) */
  html.sx-page body .sx-g4 .sx-g4-card06{ box-shadow:0 28px 48px -32px rgba(3,14,34,.75) }
  /* the flow picture ends inside the content column (was 24/16 px over it, cut at the screen edge on narrow windows) */
  html.sx-page body .sx-g5 .sx-g5-nightpic{ margin-right:0 }
  /* footer partner row: Intergrid in the white rendering, like the white Jäspi beside it (pale blue on navy was too weak) */
  html.sx-page body .sx-g5 .sx-g5-p-intergrid{ -webkit-filter:brightness(0) invert(1); filter:brightness(0) invert(1); opacity:.94 }
}

/* 1280-1899: five step columns; the two-line title "Rangos darbai ir paleidimas" no longer pushes its text lower than the others */
@media (min-width:1280px) and (max-width:1899px){
  html.sx-page body .sx-g4 .sx-g4-step h3{ min-height:calc(2em * 1.28) }
}

/* =========================================================================================
   2 · BELOW 1280: the vertical journey (steps as rows)
   ========================================================================================= */
@media (max-width:1279px){
  /* the red end dot sits just above the 06 card, not on its rounded corner */
  html.sx-page body .sx-g4 .sx-g4-step--build::before,
  html.sx-page body .sx-g4 .sx-g4-step--build::after{ bottom:37px }
  html.sx-page body .sx-g4 .sx-g4-land{ top:-46px }
  /* stronger scrim on the text side of the 06 card */
  html.sx-page body .sx-g4 .sx-g4-card06::after{ background:
    linear-gradient(90deg, rgba(10,41,87,.96) 0, rgba(10,41,87,.82) 34%, rgba(10,41,87,.3) 52%, rgba(10,41,87,0) 66%),
    linear-gradient(0deg, rgba(10,41,87,.4), rgba(10,41,87,0) 45%) }
  /* partner card: lighter shadow on the pale mist below (no grey smudge) */
  html.sx-page body .sx-g4 .sx-g4-panel{ box-shadow:0 30px 56px -40px rgba(6,26,58,.6) }
}

/* 760-1279: tighter rows, no wide hole between title and text */
@media (min-width:760px) and (max-width:1279px){
  html.sx-page body .sx-g4 .sx-g4-step{ grid-template-columns:minmax(0,236px) minmax(0,1fr); column-gap:28px; padding-bottom:32px; min-height:80px }
  html.sx-page body .sx-g4 .sx-g4-step--build{ padding-bottom:70px }
  html.sx-page body .sx-g4 .sx-g4-step p{ max-width:60ch }
}

/* =========================================================================================
   3 · TABLETS 768-1199
   ========================================================================================= */
@media (max-width:1199px){
  html.sx-page body .sx-g4 .sx-g4-h2,
  html.sx-page body .sx-g5 .sx-g5-h2{ font-size:27px }
  html.sx-page body .sx-g5 .sx-g5-h2--cta{ font-size:30px }
  html.sx-page body .sx-g4 .sx-g4-lead,
  html.sx-page body .sx-g5 .sx-g5-lead{ font-size:15px }
  html.sx-page body .sx-g4 .sx-g4-step h3{ font-size:18px }
  html.sx-page body .sx-g4 .sx-g4-step p,
  html.sx-page body .sx-g4 .sx-g4-pt p,
  html.sx-page body .sx-g4 .sx-g4-finale p{ font-size:14.5px }
  html.sx-page body .sx-g4 .sx-g4-finale h3{ font-size:26px }
  html.sx-page body .sx-g4 .sx-g4-pt h3{ font-size:21px }
  html.sx-page body .sx-g5 .sx-g5-cap-title{ font-size:18px }
  html.sx-page body .sx-g5 .sx-g5-cap-desc{ font-size:14.5px }

  html.sx-page body .sx-g4.sx-g4-proc{ padding-top:56px; padding-bottom:48px }
  html.sx-page body .sx-g4 .sx-g4-steps{ margin-top:40px }
  html.sx-page body .sx-g4.sx-g4-part{ --g4pb:76px; padding-top:44px }
  html.sx-page body .sx-g4 .sx-g4-panel{ margin-top:32px }
  html.sx-page body .sx-g5.sx-g5-work{ padding-top:28px; padding-bottom:40px }
  html.sx-page body .sx-g5 .sx-g5-head{ margin-bottom:32px }
  html.sx-page body .sx-g5.sx-g5-contact{ padding-top:52px }
  html.sx-page body .sx-g4 .sx-g4-panel{ box-shadow:0 22px 40px -28px rgba(6,26,58,.6) }
  html.sx-page body .sx-g4 .sx-g4-card06{ box-shadow:0 22px 40px -28px rgba(3,14,34,.75) }
  html.sx-page body .sx-g5 .sx-g5-facts{ margin-top:40px }
  html.sx-page body .sx-g5 .sx-g5-flow{ margin-top:32px }
}

/* 760-1023: the 06 card stacks (photo on top, clearly visible; text below on the card colour) */
@media (min-width:760px) and (max-width:1023px){
  html.sx-page body .sx-g4 .sx-g4-card06{ display:block; min-height:0 }
  html.sx-page body .sx-g4 .sx-g4-night{ position:relative; inset:auto; height:auto; aspect-ratio:1400/865; object-position:50% 50% }
  html.sx-page body .sx-g4 .sx-g4-card06::after{ background:linear-gradient(180deg, rgba(10,41,87,0) 40%, #0a2957 calc((100vw - 72px) * .618)) }
  html.sx-page body .sx-g4 .sx-g4-finale-body{ padding:0 40px 40px; max-width:none }
  html.sx-page body .sx-g4 .sx-g4-finale p{ max-width:60ch }
  html.sx-page body .sx-g4 .sx-g4-orbit{ position:absolute; right:32px; top:-92px; width:100px; height:100px; margin:0 }
  html.sx-page body .sx-g4 .sx-g4-num06{ inset:23px }
}

/* below 900: partner card and footer details */
@media (max-width:899px){
  html.sx-page body .sx-g4 .sx-g4-head .sx-g4-lead{ max-width:62ch }
  /* white Solidum plate scaled with the card, centred, without the pale ring that read as a grey box */
  html.sx-page body .sx-g4 .sx-g4-hub{ padding:20px 28px 22px; box-shadow:0 22px 44px -22px rgba(3,14,34,.75) }
  html.sx-page body .sx-g4 .sx-g4-hub img{ width:clamp(132px,24vw,184px) }
  /* readable text on the lake photo: the existing scrim, stronger */
  html.sx-page body .sx-g4 .sx-g4-panel::before{ background:linear-gradient(180deg, rgba(7,28,62,.4) 0, rgba(7,28,62,.86) 26%, rgba(7,28,62,.94) 100%) }
  html.sx-page body .sx-g4 .sx-g4-pt p{ color:#fff; text-wrap:wrap }
  /* Darbai: photo + caption as one card, stacked, full width (right column was 235 px at 768) */
  html.sx-page body .sx-g5 .sx-g5-head{ flex-direction:column; align-items:flex-start; gap:14px }
  html.sx-page body .sx-g5 .sx-g5-head .sx-g5-lead{ max-width:60ch; padding-bottom:0 }
  html.sx-page body .sx-g5 .sx-g5-photos{ flex-direction:column; align-items:stretch; gap:18px }
  html.sx-page body .sx-g5 .sx-g5-photo{ flex:none; border-radius:18px; overflow:hidden; isolation:isolate; background:rgba(11,47,99,.92);
    box-shadow:0 18px 30px -20px rgba(6,26,58,.7), 0 0 0 1px rgba(255,255,255,.14) } /* shadow ends inside the section padding (was cut into a hard line by overflow:hidden) */
  html.sx-page body .sx-g5 .sx-g5-shot{ border-radius:0; box-shadow:none }
  html.sx-page body .sx-g5 .sx-g5-photo:hover .sx-g5-shot{ transform:none; box-shadow:none }
  html.sx-page body .sx-g5 .sx-g5-photo--tall .sx-g5-shot{ aspect-ratio:4/3 }
  html.sx-page body .sx-g5 .sx-g5-photo--tall .sx-g5-shot img{ object-position:50% 40% }
  html.sx-page body .sx-g5 .sx-g5-photo .sx-g5-shot{ max-height:70vh }
  html.sx-page body .sx-g5 .sx-g5-lead--light{ max-width:64ch }
  html.sx-page body .sx-g5 .sx-g5-pitch{ max-width:none }
  html.sx-page body .sx-g5 .sx-g5-photo figcaption{ padding:16px 20px 20px }
  /* Kontaktai: one column; the flow line is decoration, so it stays small (was a 280-400 px empty band) */
  html.sx-page body .sx-g5 .sx-g5-contact-grid{ grid-template-columns:1fr; gap:0 }
  html.sx-page body .sx-g5 .sx-g5-nightpic{ justify-self:center; width:clamp(180px,34vw,260px); max-width:none; margin:4px auto -14px }
  html.sx-page body .sx-g5 .sx-g5-btns{ flex-direction:row; flex-wrap:wrap; align-items:stretch }
  html.sx-page body .sx-g5 .sx-g5-btn{ flex:1 1 240px }
}

/* =========================================================================================
   4 · PHONES (<=759, also unfolded 600-717)
   ========================================================================================= */
@media (max-width:759px){
  html.sx-page body .sx-g4, html.sx-page body .sx-g5{ --sx-pad:20px }
  html.sx-page body .sx-g4 .sx-g4-h2,
  html.sx-page body .sx-g5 .sx-g5-h2,
  html.sx-page body .sx-g4.sx-g4-part .sx-g4-h2{ font-size:24px }
  html.sx-page body .sx-g5 .sx-g5-h2--cta{ font-size:26px }
  html.sx-page body .sx-g4 .sx-g4-lead,
  html.sx-page body .sx-g5 .sx-g5-lead{ font-size:15.5px; line-height:1.6 }
  html.sx-page body .sx-g4 .sx-g4-head .sx-g4-lead{ max-width:none }
  html.sx-page body .sx-g4 .sx-g4-step h3{ font-size:17.5px }
  html.sx-page body .sx-g4 .sx-g4-step p,
  html.sx-page body .sx-g4 .sx-g4-pt p,
  html.sx-page body .sx-g4 .sx-g4-finale p{ font-size:15px; line-height:1.55 }
  html.sx-page body .sx-g4 .sx-g4-step p{ max-width:none }
  html.sx-page body .sx-g4 .sx-g4-finale h3{ font-size:22px }
  html.sx-page body .sx-g4 .sx-g4-pt h3{ font-size:20px }
  html.sx-page body .sx-g5 .sx-g5-cap-title{ font-size:18px }
  html.sx-page body .sx-g5 .sx-g5-cap-desc{ font-size:15px; line-height:1.55 }

  /* joins: at most about 96 px of empty space between sections */
  html.sx-page body .sx-g4.sx-g4-proc{ padding-top:44px; padding-bottom:40px }
  html.sx-page body .sx-g4 .sx-g4-head{ row-gap:16px }
  html.sx-page body .sx-g4 .sx-g4-steps{ margin-top:32px }
  html.sx-page body .sx-g4 .sx-g4-step{ padding:0 0 28px 64px; min-height:72px }
  html.sx-page body .sx-g4 .sx-g4-step--build{ padding-bottom:68px }
  html.sx-page body .sx-g4.sx-g4-part{ --g4pb:66px; padding-top:44px }
  html.sx-page body .sx-g4 .sx-g4-panel{ margin-top:28px }
  html.sx-page body .sx-g5.sx-g5-work{ padding-top:20px; padding-bottom:40px }
  html.sx-page body .sx-g5 .sx-g5-head{ margin-bottom:24px }
  html.sx-page body .sx-g5.sx-g5-contact{ padding-top:44px }
  html.sx-page body .sx-g5 .sx-g5-btns{ margin-top:28px }
  html.sx-page body .sx-g5 .sx-g5-facts{ margin-top:32px }
  html.sx-page body .sx-g5 .sx-g5-flow{ margin-top:28px }

  /* 06 card: ring kept clear of the card edge */
  html.sx-page body .sx-g4 .sx-g4-finale-body{ padding:4px 22px 28px }
  html.sx-page body .sx-g4 .sx-g4-orbit{ right:28px }
  html.sx-page body .sx-g4 .sx-g4-card06::after{ background:linear-gradient(180deg, rgba(10,41,87,0) 40%, #0a2957 calc((100vw - 40px) * .618)) }

  /* partner card: plate in proportion, logos at least 112 px and the same visual size */
  html.sx-page body .sx-g4 .sx-g4-duo{ padding:0 20px 32px; row-gap:30px }
  html.sx-page body .sx-g4 .sx-g4-hub{ padding:16px 22px 18px; border-radius:0 0 18px 18px }
  html.sx-page body .sx-g4 .sx-g4-hub img{ width:clamp(124px,30vw,168px) }
  html.sx-page body .sx-g4 .sx-g4-plate{ width:160px; height:66px }
  html.sx-page body .sx-g4 .sx-g4-pt--heat .sx-g4-plate img{ width:120px; height:37.5px }
  html.sx-page body .sx-g4 .sx-g4-pt--power .sx-g4-plate img{ width:128px; height:45.9px }

  /* Darbai captions */
  html.sx-page body .sx-g5 .sx-g5-photo--tall .sx-g5-shot{ aspect-ratio:4/3.6 }
  html.sx-page body .sx-g5 .sx-g5-photo figcaption{ padding:16px 18px 20px }

  html.sx-page body .sx-g5 .sx-g5-nightpic{ width:clamp(170px,46vw,240px); margin:0 auto -18px }
  html.sx-page body .sx-g5 .sx-g5-btn{ min-height:58px; font-size:16px }
  html.sx-page body .sx-g5 .sx-g5-btn--mail{ font-size:18px }

  /* footer */
  html.sx-page body .sx-g5.sx-g5-foot{ padding-top:40px }
  html.sx-page body .sx-g5 .sx-g5-logo{ padding:12px 18px }
  html.sx-page body .sx-g5 .sx-g5-logo img{ width:150px }
  html.sx-page body .sx-g5 .sx-g5-brand p{ margin-top:14px }
  html.sx-page body .sx-g5 .sx-g5-plogos{ gap:28px; margin-top:8px }
  html.sx-page body .sx-g5 .sx-g5-copy{ margin-top:28px; padding-bottom:calc(22px + env(safe-area-inset-bottom,0px)) }
}

/* unfolded phones / small tablets 480-759: footer uses the right half (logo | partners, then pages | contacts) */
@media (min-width:480px) and (max-width:759px){
  html.sx-page body .sx-g5 .sx-g5-brand{ grid-column:1; grid-row:1 }
  html.sx-page body .sx-g5 .sx-g5-partners{ grid-column:2; grid-row:1; align-self:start }
  html.sx-page body .sx-g5 .sx-g5-plogos{ flex-direction:column; align-items:flex-start; gap:18px }
}

/* narrow phones (<=360) */
@media (max-width:360px){
  html.sx-page body .sx-g4, html.sx-page body .sx-g5{ --sx-pad:18px }
  html.sx-page body .sx-g4 .sx-g4-duo{ padding:0 18px 30px }
  html.sx-page body .sx-g4 .sx-g4-finale-body{ padding:4px 18px 26px }
}
