/* =====================================================================
   GRIMM.LT — dizaino sistema: pagrindas, antraštė, hero
   Kryptis „Juoda scena“: juodas fonas, didelė Schibsted Grotesk tipografija,
   logotipo skydas ir „G“ brūkšnys kaip vieninteliai prekės ženklo elementai.
   Spalvos tik iš logotipo: #2D4A8A, #000, #FFF (+ išvestinis šviesesnis tonas).
   ===================================================================== */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.52c63824a8f6.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.c5e9a9901938.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; }

:root {
  /* Logotipo spalvos */
  --brand: #2D4A8A;          /* skydas */
  --brand-deep: #1E3363;     /* paspaudimo būsena ant mėlyno */
  --brand-tint: #5B82D6;     /* tas pats atspalvis, šviesesnis – smulkūs akcentai ant juodo */
  --brand-wash: #EEF2FA;     /* fonas pažymėtoms vietoms ant balto */
  --black: #000;
  --white: #FFF;

  /* Šviesus kontekstas */
  --ink: #000;
  --text: #2B2F37;
  --muted: #5A606B;
  --quiet: #8A8F99;          /* tik dideliam tekstui (≥24px) */
  --line: #E3E5EA;
  --line-strong: #C9CDD5;
  --bg: #FFF;
  --bg-alt: #F3F4F6;

  /* Tamsus kontekstas */
  --d-text: #B4BBCB;
  --d-muted: #8B93A5;
  --d-line: #2A2E36;
  --d-line-strong: #3A3F4A;
  --d-bg: #000;
  --d-raised: #0D0F13;

  /* Senų šablonų suderinamumas (inline stiliai) */
  --blue-600: var(--brand);
  --blue-500: var(--brand);
  --blue-50: var(--brand-wash);

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: var(--font);
  --font-body: var(--font);

  --container: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(80px, 10vw, 152px);
  --header-h: 88px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

/* ---------- Bazė ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Atributas hidden turi slėpti visada: kitaip jį perrašo bet kuri display taisyklė ir sąrašų filtrai nieko nepaslepia */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Perėjimas tarp puslapių: senas puslapis trumpai išblunka į naują, viršutinė juosta lieka vietoje.
   Naršyklės, kurios to nepalaiko (pvz., Firefox), tiesiog atidaro puslapį įprastai. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-header { view-transition-name: site-header; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
.ico { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.2em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem); line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong, b { font-weight: 600; color: var(--ink); }
em { font-style: normal; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: #fff; }
input, textarea, select { caret-color: var(--brand); }
html { scrollbar-color: var(--line-strong) transparent; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: #fff; color: var(--ink); padding: 12px 18px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.page-hero + .section--flush-top { padding-top: clamp(48px, 6vw, 88px); }

/* Tamsus kontekstas: viena klasė perjungia spalvas visiems vaikams */
.on-dark { background: var(--d-bg); color: var(--d-text); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong, .on-dark b { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.on-dark ::selection { background: #fff; color: var(--ink); }

/* ---------- Tipografiniai elementai ---------- */
/* Etiketės virš antraščių nenaudojamos: antraštė kalba pati. */
.eyebrow { display: none; }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--center { margin-inline: 0; text-align: left; } /* visos antraštės lygiuojamos kairėje */
.section-head h2 + p { margin-top: 20px; }
.section-head p { font-size: 1.1875rem; color: var(--muted); max-width: 62ch; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head--split > div { max-width: 760px; }
.section-head--light h2 { color: #fff; }
.section-head--light p, .on-dark .section-head p { color: var(--d-text); }
.lead { font-size: 1.1875rem; }
/* buvęs gradientinis akcentas – dabar paprastas tekstas */
.text-gradient { color: inherit; }

/* ---------- Mygtukai ---------- */
.btn {
  --btn-bg: var(--black); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 14px 28px; max-width: 100%;
  font-family: var(--font); font-weight: 600; font-size: 1rem; letter-spacing: -.005em; line-height: 1.25; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.on-dark .btn--primary { --btn-bg: #fff; --btn-fg: var(--ink); }
.on-dark .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.on-dark .btn--primary:hover, .on-dark .btn--white:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 16px 32px; font-size: 1.0625rem; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  padding-bottom: 4px; border-bottom: 2px solid var(--brand);
}
.link-arrow svg { width: 18px; height: 18px; color: var(--brand); transition: transform .35s var(--ease-out); }
.link-arrow:hover { color: var(--brand); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light, .on-dark .link-arrow, .hero .link-arrow, .page-hero .link-arrow { color: #fff; border-color: var(--brand-tint); }
.link-arrow--light svg, .on-dark .link-arrow svg, .hero .link-arrow svg, .page-hero .link-arrow svg { color: var(--brand-tint); }
.link-arrow--light:hover, .on-dark .link-arrow:hover, .hero .link-arrow:hover, .page-hero .link-arrow:hover { color: #fff; border-color: #fff; }

/* Atsiradimo animacijos išjungtos: turinys matomas iš karto (vienintelis judesys – hero). */
.reveal { opacity: 1; transform: none; }

/* =====================================================================
   ANTRAŠTĖ
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 300; background: var(--d-bg); color: #fff; border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--d-line); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }
.header-right { display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; }
.topbar { display: none; }
.nav-row { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 2vw, 28px); flex: 1; height: 100%; }
.nav { display: flex; align-items: center; height: 100%; gap: clamp(4px, 1vw, 12px); }
.nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.nav__item.has-mega { position: static; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; height: 100%;
  padding-inline: clamp(6px, .8vw, 12px); font-weight: 500; font-size: .9375rem; color: #fff; white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: clamp(6px, .8vw, 12px); right: clamp(6px, .8vw, 12px); bottom: calc(50% - 1.1em); height: 2px; background: var(--brand-tint); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; color: var(--d-text); transition: transform .3s var(--ease-out), color .2s; }
.nav__toggle svg { width: 14px; height: 14px; }
.nav__toggle:hover { color: #fff; }
.nav__item.is-open .nav__toggle { transform: rotate(180deg); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-lang { display: flex; gap: 2px; margin-right: 6px; }
.nav-lang a { display: grid; place-items: center; min-width: 32px; height: 32px; font-size: .8125rem; font-weight: 500; color: var(--d-muted); letter-spacing: .02em; }
.nav-lang a:hover { color: #fff; }
.nav-lang a.is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--brand-tint); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; transition: color .2s, background-color .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: #fff; color: var(--ink); }
.nav-cta { margin-left: 10px; min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.site-header .nav-cta { --btn-bg: #fff; --btn-fg: var(--ink); }
.burger { display: none; }

/* Mega meniu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--d-bg); border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line);
  padding-top: 40px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-out), visibility 0s linear .25s;
}
.mega__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.nav__item.is-open > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mega__group h4 { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--d-line-strong); min-height: calc(2.6em + 14px); }
.mega__group h4 a { color: #fff; }
.mega__group h4 a:hover { color: var(--brand-tint); }
.mega__group h4 svg { display: none; }
.mega__group li a { display: block; padding: 7px 0; font-size: .9375rem; color: var(--d-text); transition: color .2s; }
.mega__group li a:hover { color: #fff; }
.mega__promo { margin-top: 36px; background: var(--brand); color: #fff; }
.mega__promo-inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding-block: 22px; }
.mega__promo h4 { color: #fff; font-size: 1.125rem; font-weight: 600; }
.mega__promo p { flex: 1 1 320px; font-size: .9375rem; color: #DCE4F5; }
.mega__promo .btn { margin-left: auto; }

/* =====================================================================
   PRADŽIOS HERO
   ===================================================================== */
.hero { background: var(--d-bg); color: #fff; position: relative; overflow: hidden; padding-top: clamp(48px, 6.5vw, 96px); }
.hero__inner { position: relative; }
.hero__title {
  position: relative; z-index: 2; color: #fff; max-width: 15ch;
  font-size: clamp(3rem, 8.6vw, 7.75rem); line-height: .94; letter-spacing: -.04em; font-weight: 600;
}
.hero__title em { display: block; }
.hero__bar { position: relative; z-index: 2; display: block; width: 86%; height: clamp(12px, 1.5vw, 22px); margin-top: clamp(28px, 3vw, 44px); background: #fff; transform-origin: right center; }
.hero__lead { position: relative; z-index: 2; margin-top: clamp(28px, 3vw, 40px); max-width: 560px; font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: var(--d-text); }
.hero__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
.hero__shield { position: absolute; z-index: 1; right: calc(var(--gutter) * -0.2); top: clamp(-72px, -5vw, -24px); width: clamp(280px, 39vw, 560px); margin: 0; }
.hero__shield svg { width: 100%; height: auto; }
.hero__needs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(72px, 10vw, 168px); padding-bottom: clamp(48px, 5vw, 72px); }
.hero__need { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--d-line-strong); padding-top: 22px; color: #fff; transition: border-color .25s; }
.hero__need-q { font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; color: #fff; }
.hero__need-link { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--d-text); transition: color .25s; }
.hero__need svg { width: 18px; height: 18px; flex: none; color: var(--brand-tint); transition: transform .35s var(--ease-out); }
.hero__need:hover { color: #fff; border-color: #fff; }
.hero__need:hover .hero__need-link { color: #fff; }
.hero__need:hover svg { transform: translateX(6px); color: #fff; }

/* Hero judesys aprašytas components.css bloke „JUDESYS“. */

/* =====================================================================
   VIDINIŲ PUSLAPIŲ ANTRAŠTĖ
   ===================================================================== */
.page-hero { background: var(--d-bg); color: var(--d-text); position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 7vw, 112px); }
.page-hero::after { content: ""; position: absolute; left: max(var(--gutter), (100% - var(--container)) / 2); bottom: 0; width: min(38%, 480px); height: 10px; background: #fff; }
.page-hero h1, .page-hero .profile__name { color: #fff; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.page-hero__inner--single { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.page-hero h1 { margin-top: 8px; max-width: 16ch; }
.page-hero__lead { font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: var(--d-text); max-width: 54ch; }
.page-hero__text > .page-hero__lead { margin-top: 24px; }
.page-hero__side { padding-bottom: 6px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.page-hero .btn--primary { --btn-bg: #fff; --btn-fg: var(--ink); }
.page-hero .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.page-hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-hero__art { display: none; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 clamp(32px, 4vw, 56px); padding: 0; list-style: none; font-size: .875rem; color: var(--d-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--d-line-strong); }
.breadcrumbs a { color: var(--d-muted); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li:last-child { color: var(--d-text); }

/* =====================================================================
   RESPONSYVUMAS — antraštė ir hero
   ===================================================================== */
@media (max-width: 1240px) {
  .nav-lang { display: none; }
  .mega__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .nav, .nav-actions .nav-cta { display: none; }
  .burger { display: grid; }
  .brand img { width: 128px; }
  .page-hero__inner, .page-hero__inner--single { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-hero__side { padding-bottom: 0; }
}
@media (max-width: 860px) {
  .hero__shield { position: relative; right: auto; top: auto; width: min(62%, 340px); margin: 40px 0 0 auto; }
  .hero__bar { width: 100%; }
  .hero__needs { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 48px; }
  .hero__need { padding-block: 20px; }
}
@media (max-width: 640px) {
  .hero__actions .btn, .page-hero__actions .btn { width: 100%; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
