/* ==== kodavimas.lt — one-page design system ================================
   Author: Hermes Agent · 2026
   Palette: deep teal + warm neutrals. No external fonts, no frameworks.
   ========================================================================= */

:root {
  --ink: #0c1b1d;
  --body: #3d5257;
  --muted: #6f858a;
  --brand: #0e6b63;
  --brand-dark: #0a4f49;
  --brand-soft: #e6f2f0;
  --accent: #c1782f;
  --bg: #f6faf9;
  --sand: #f8f5f0;
  --card: #ffffff;
  --line: #e2ecea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 29, .05), 0 6px 18px rgba(12, 27, 29, .04);
  --shadow-md: 0 4px 12px rgba(12, 27, 29, .07), 0 18px 40px rgba(12, 27, 29, .07);
  --container: 1160px;
  --pad: clamp(18px, 4vw, 32px);
  --sect: clamp(56px, 7vw, 104px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body.kod-one {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.kod-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 600;
}
.kod-skip:focus { left: 0; color: #fff; }

body.kod-one img { max-width: 100%; height: auto; display: block; }
body.kod-one a { color: var(--brand); text-decoration: none; }
body.kod-one a:hover { color: var(--brand-dark); }
body.kod-one p { margin: 0 0 1.05em; }
body.kod-one ul { margin: 0 0 1em; padding-left: 1.15em; }
body.kod-one h1, body.kod-one h2, body.kod-one h3, body.kod-one h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
}
body.kod-one h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
body.kod-one h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
body.kod-one h3 { font-size: clamp(1.15rem, 1.9vw, 1.42rem); }
body.kod-one h4 { font-size: 1.06rem; }

/* ---------- layout ---------- */
.kod-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.kod-section { padding: var(--sect) 0; }
.kod-section--soft { background: var(--bg); }
.kod-section--sand { background: var(--sand); }
.kod-section--ink { background: var(--ink); color: #cfe0de; }
.kod-section--ink h2, .kod-section--ink h3 { color: #fff; }
.kod-anchor { display: block; position: relative; top: -92px; visibility: hidden; }

.kod-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.kod-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kod-lead { font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--body); max-width: 62ch; }
.kod-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }

/* ---------- header ---------- */
.kod-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kod-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px rgba(12, 27, 29, .06); }
.kod-header__inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.kod-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.kod-brand img { width: 34px; height: 34px; }
.kod-brand__name { font-weight: 700; color: var(--ink); letter-spacing: -.01em; font-size: 1.06rem; line-height: 1.1; }
.kod-brand__tag { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.kod-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.kod-nav a {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: 9px 12px; border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.kod-nav a:hover, .kod-nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.kod-header .kod-btn { margin-left: 10px; }
.kod-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.kod-burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.kod-burger span::before, .kod-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease;
}
.kod-burger span::before { top: -6px; }
.kod-burger span::after { top: 6px; }
.kod-burger[aria-expanded="true"] span { background: transparent; }
.kod-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.kod-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.kod-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.kod-btn svg { width: 18px; height: 18px; }
body.kod-one .kod-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(14, 107, 99, .22); }
body.kod-one .kod-btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
body.kod-one .kod-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
body.kod-one .kod-btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
body.kod-one .kod-btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); }
body.kod-one .kod-btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- hero ---------- */
.kod-hero { position: relative; padding: clamp(38px, 6vw, 76px) 0 clamp(46px, 6vw, 84px); background:
  radial-gradient(1100px 520px at 82% -10%, #e8f5f2 0%, rgba(232, 245, 242, 0) 62%),
  linear-gradient(180deg, #fbfdfc 0%, #ffffff 100%); overflow: hidden; }
.kod-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.kod-hero h1 { margin-bottom: 18px; }
.kod-hero__intro { font-size: clamp(1.02rem, 1.5vw, 1.13rem); max-width: 54ch; }
.kod-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.kod-hero__note { font-size: .9rem; color: var(--muted); }
.kod-hero__photo { position: relative; }
.kod-hero__photo img {
  border-radius: 24px; box-shadow: var(--shadow-md); width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%;
}
.kod-hero__badge {
  position: absolute; left: -14px; bottom: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); max-width: 250px;
}
.kod-hero__badge strong { display: block; color: var(--ink); font-size: .95rem; }
.kod-hero__badge span { font-size: .8rem; color: var(--muted); }

.kod-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.kod-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 500;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 9px 14px; border-radius: 999px;
}
.kod-chip svg { width: 16px; height: 16px; color: var(--brand); flex: 0 0 auto; }

/* ---------- cards ---------- */
.kod-grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.kod-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kod-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kod-card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3e3e0; }
.kod-card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.kod-card__icon svg { width: 24px; height: 24px; }
.kod-card h3 { margin-bottom: 10px; }
.kod-card--step { position: relative; padding-top: 30px; }
.kod-card__num {
  position: absolute; top: -16px; left: clamp(22px, 2.6vw, 32px);
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  box-shadow: 0 6px 14px rgba(14, 107, 99, .25);
}

/* ---------- quote / method ---------- */
.kod-quote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; margin: 26px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--ink); font-weight: 500;
}
.kod-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.kod-facts { display: grid; gap: 14px; }
.kod-fact { display: flex; gap: 12px; align-items: flex-start; }
.kod-fact svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 4px; }

.kod-diplomas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kod-diplomas a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.kod-diplomas img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.kod-diplomas a:hover img { transform: scale(1.04); }

/* ---------- articles ---------- */
.kod-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.kod-article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kod-article:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kod-article__media { display: block; background: var(--brand-soft); }
.kod-article__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kod-article__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.kod-article__date { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kod-article__title { font-size: 1.1rem; margin-bottom: 10px; }
.kod-article__title a { color: var(--ink); }
.kod-article__title a:hover { color: var(--brand); }
.kod-article__excerpt { font-size: .94rem; color: var(--body); margin-bottom: 16px; }
.kod-article__more { margin-top: auto; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; padding: 11px 0 3px; min-height: 44px; }

.kod-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.kod-quicklinks a {
  font-size: .9rem; font-weight: 500; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
}
.kod-quicklinks a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- video ---------- */
.kod-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }
.kod-video {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #0b1f22; aspect-ratio: 16 / 9; cursor: pointer;
}
.kod-video iframe, .kod-video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.kod-video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(6, 22, 24, .12) 0%, rgba(6, 22, 24, .58) 100%);
  transition: background .2s ease;
}
.kod-video:hover .kod-video__play { background: linear-gradient(180deg, rgba(6, 22, 24, .05) 0%, rgba(6, 22, 24, .52) 100%); }
.kod-video__play span {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .94);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.kod-video__play svg { width: 22px; height: 22px; color: var(--brand-dark); margin-left: 3px; }
.kod-video__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  color: #fff; font-weight: 600; font-size: .96rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.kod-video__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.kod-video-grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }

/* ---------- contact ---------- */
.kod-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.4vw, 48px); align-items: start; }
.kod-contact__row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.kod-contact__row svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 5px; }
.kod-contact__row a { color: var(--ink); font-weight: 600; }
.kod-contact__rows { margin: 24px 0 26px; }
.kod-offices { display: grid; gap: 12px; }
.kod-office {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px;
}
.kod-office__city {
  flex: 0 0 auto; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft); border-radius: 8px; padding: 5px 9px; margin-top: 2px;
}
.kod-office__addr { font-size: .95rem; color: var(--ink); }
.kod-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.kod-socials a {
  display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px;
}
.kod-socials a:hover { border-color: var(--brand); color: var(--brand-dark); }
.kod-socials svg { width: 18px; height: 18px; }
.kod-map-link { font-size: .88rem; color: var(--muted); }

/* ---------- footer ---------- */
.kod-footer { background: var(--ink); color: #a9bfbd; padding: clamp(34px, 4vw, 54px) 0 30px; font-size: .92rem; }
body.kod-one .kod-footer a { color: #d7e9e6; }
body.kod-one .kod-footer a:hover { color: #fff; }
body.kod-one .kod-footer__brand strong { color: #fff; }
.kod-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.kod-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kod-footer__brand img { width: 34px; height: 34px; filter: invert(1) brightness(1.6); }
.kod-footer__brand strong { color: #fff; font-size: 1.06rem; }
.kod-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.kod-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kod-footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .86rem;
}

/* ---------- mobile CTA bar ---------- */
.kod-mobilebar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.kod-mobilebar .kod-btn { flex: 1 1 0; padding: 12px 14px; font-size: .92rem; }

/* ---------- reveal animation ---------- */
.kod-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.kod-reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .kod-hero__grid { grid-template-columns: 1fr; }
  .kod-hero__photo { order: -1; max-width: 460px; }
  .kod-hero__photo img { aspect-ratio: 4 / 5; }
  .kod-hero__badge { left: 12px; }
  .kod-grid--3, .kod-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kod-diplomas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kod-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body.kod-one { font-size: 16.5px; }
  .kod-burger { display: inline-flex; }
  .kod-header .kod-btn { display: none; }
  .kod-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--pad) 20px;
    box-shadow: 0 18px 30px rgba(12, 27, 29, .08);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .kod-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .kod-nav a { padding: 13px 12px; font-size: 1rem; border-radius: 12px; }
  .kod-split, .kod-contact { grid-template-columns: 1fr; }
  .kod-diplomas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kod-mobilebar { display: flex; }
  body.kod-one { padding-bottom: 74px; }
}

@media (max-width: 640px) {
  .kod-eyebrow { font-size: .72rem; letter-spacing: .1em; padding: 6px 12px; }
  .kod-eyebrow::before { display: none; }
  .kod-hero__photo { order: 0; max-width: none; }
  .kod-hero__photo img { aspect-ratio: 4 / 5; }
  .kod-hero__badge { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .kod-grid--2, .kod-grid--3, .kod-articles, .kod-videos { grid-template-columns: 1fr; }
  .kod-hero__cta .kod-btn { width: 100%; }
  .kod-footer__grid { grid-template-columns: 1fr; }
  .kod-card { border-radius: 16px; }
  .kod-quote { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kod-reveal { opacity: 1; transform: none; transition: none; }
  .kod-card--hover:hover, .kod-article:hover, .kod-btn--primary:hover { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .kod-header, .kod-mobilebar, .kod-video__play { display: none; }
  body.kod-one { font-size: 12pt; }
  .kod-section { padding: 18px 0; }
}
