/* ============================================================
   ITEKS — itex.lt
   Spalvos perimtos iš senosios svetainės temos:
   žalia #73b61c, tamsi pilka #393939 / #38373b.
   Šriftas — Source Sans 3, artimiausias atvirasis Myriad Pro
   atitikmuo, kurį naudojo senoji tema.
   ============================================================ */

:root {
  --green:      #73b61c;
  --green-dk:   #5f9916;
  --green-tint: #f0f8e4;
  --ink:        #393939;
  --ink-2:      #38373b;
  --muted:      #6d6d70;
  --line:       #e0e0e0;
  --line-soft:  #efefef;
  --bg:         #ffffff;
  --bg-alt:     #f6f7f5;
  --focus:      #1f7fd0;

  --wrap: 1120px;
  --font: 'Source Sans 3', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

.inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--green-dk); }
a:hover { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Antraštė ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.topbar .inner {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: #fff; text-decoration: none; opacity: .88; }
.topbar a:hover { opacity: 1; color: #fff; text-decoration: underline; }

.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { color: var(--ink); display: inline-flex; }
.logo { height: 40px; width: auto; display: block; }
@media (max-width: 560px) { .logo { height: 34px; } }

.site-head nav { margin-left: auto; }
.site-head nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-head nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 3px;
}
.site-head nav a:hover { background: var(--green-tint); color: var(--green-dk); }
.site-head nav a.active {
  color: var(--green-dk);
  box-shadow: inset 0 -3px 0 var(--green);
}

/* meniu be JavaScript */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 54px 0 58px;
  border-bottom: 5px solid var(--green);
}
.hero.hero-sm { padding: 46px 0 50px; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
  max-width: 20ch;
}
.hero.hero-sm h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
.hero .sub {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: #d8d8d8;
  max-width: 58ch;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 3px;
}
.btn:hover { background: var(--green-dk); color: #fff; }

/* ---------- Juostos ---------- */
.band { padding: 60px 0; }
.band.alt { background: var(--bg-alt); }
.band h2 {
  margin: 0 0 26px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.band h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--green);
  margin-top: 12px;
}
.band p { max-width: 70ch; }
.band > .inner > p:last-child { margin-bottom: 0; }

.lead { font-size: 1.1rem; }

/* ---------- Kortelės ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.band.alt .card { background: var(--bg); }
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-2);
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .arrow {
  margin-top: 14px;
  color: var(--green-dk);
  font-weight: 600;
}
a.card-link { text-decoration: none; color: inherit; }
a.card-link:hover { border-color: var(--green); background: var(--green-tint); }
a.card-link:hover h3 { color: var(--green-dk); }

.contacts .card p { color: var(--ink); }

/* ---------- Sąrašai ---------- */
.ticks { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.ticks li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px solid var(--line-soft);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--green);
  transform: rotate(45deg);
}

/* ---------- Rekvizitai ---------- */
.req {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 0;
  margin: 0;
  max-width: 640px;
}
.req dt {
  padding: 10px 0;
  color: var(--muted);
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.req dd {
  padding: 10px 0;
  margin: 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* ---------- DUK ---------- */
.faq { max-width: 74ch; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { margin: 0 0 7px; font-size: 1.06rem; font-weight: 700; color: var(--ink-2); }
.faq-a { margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.band.cta {
  background: var(--green-tint);
  border-top: 1px solid #dcedc4;
  border-bottom: 1px solid #dcedc4;
}
.band.cta .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.band.cta p { margin: 0; font-size: 1.1rem; font-weight: 600; max-width: 52ch; }

/* ---------- Poraštė ---------- */
.site-foot {
  background: var(--ink-2);
  color: #cfcfd1;
  padding: 48px 0 24px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.foot-logo .logo { height: 40px; color: #fff; margin-bottom: 12px; }
.site-foot h4 {
  margin: 0 0 12px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8f8f92;
  font-weight: 600;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #e4e4e6; text-decoration: none; }
.site-foot a:hover { color: var(--green); }
.site-foot p { margin: 0; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #4a4950;
  font-size: 14px;
  color: #8f8f92;
}

/* ---------- Mobilus ---------- */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 800px) {
  .head-row { flex-wrap: wrap; gap: 12px; }

  .burger {
    display: block;
    margin-left: auto;
    width: 44px;
    height: 40px;
    padding: 10px 8px;
    cursor: pointer;
  }
  .burger span {
    display: block;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    margin: 4px 0;
    transition: transform .18s, opacity .18s;
  }
  .menu-toggle:focus-visible + .burger {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .site-head nav {
    flex-basis: 100%;
    margin-left: 0;
    display: none;
  }
  .menu-toggle:checked ~ nav { display: block; }
  .menu-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .site-head nav ul { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .site-head nav a {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .site-head nav a.active { box-shadow: inset 3px 0 0 var(--green); }

  .site-head { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 52px; }
  .band { padding: 44px 0; }
  .topbar .inner { justify-content: center; gap: 14px; font-size: 13px; }
  .req { grid-template-columns: 1fr; }
  .req dt { padding-bottom: 0; border-bottom: 0; }
  .req dd { padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Užmaskuoti kontaktai ---------- */
.cx { color: inherit; }
.cx:empty::before { content: "\2026"; opacity: .45; }
.topbar .cx a, .topbar a { color: #fff; }
.site-foot .cx a { color: #e4e4e6; text-decoration: none; }
.site-foot .cx a:hover { color: var(--green); }

/* ---------- Ikonos ---------- */
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  background: var(--green-tint);
  border-radius: 4px;
  color: var(--green-dk);
  flex: none;
}
.card-ico .ico { width: 24px; height: 24px; }
a.card-link:hover .card-ico { background: #fff; }

/* ---------- Hero raštas: kampas iš logotipo ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .inner { position: relative; z-index: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M18 14 L28 24 L18 34' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: .045;
  pointer-events: none;
}

/* ---------- Sąrašų ženkliukas — tas pats kampas ---------- */
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 11px;
  height: 11px;
  background: none;
  transform: none;
  border-right: 2.4px solid var(--green);
  border-bottom: 2.4px solid var(--green);
  rotate: -45deg;
}

/* ---------- Hero: tekstas + grafika ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 40px;
}
.hero-sm .hero-inner { grid-template-columns: 1fr; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }

.hero-art { min-width: 0; }
.hero-art svg,
.hero-art img { width: 100%; height: auto; display: block; margin-left: auto; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-art svg,
  .hero-art img { max-width: 560px; margin: 0 auto; }
}


/* ---------- Kampas hero dešinėje: nuoroda į VBAMS ---------- */
.hero-chevron {
  position: absolute;
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: .20;
  z-index: 3;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-chevron svg { width: 100%; height: 100%; display: block; }
.hero-chevron:hover,
.hero-chevron:focus-visible {
  opacity: .55;
  transform: translateY(-50%) translateX(-10px);
}
@media (max-width: 1000px) { .hero-chevron { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-chevron { transition: none; } }

/* ---------- Inkarai po lipnia antrašte ---------- */
/* Be šito naršyklė nuslenka tiksliai ant sekcijos, o antraštė ją uždengia. */
.band[id], section[id] { scroll-margin-top: 112px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 800px) { .band[id], section[id] { scroll-margin-top: 20px; } }
