:root {
  color-scheme: light;
  --paper: #e7e8e9;
  --on-dark: #f5f8fc;
  --ink: #142b46;
  --soft: #465e75;
  --line: #cdd9e5;
  --accent: #467f75;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) url("tinklo-fonas.svg") center top / max(100%, 480px) auto repeat-y;
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .7rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: clamp(.8rem, 2.5vw, 1.6rem); min-height: 80px; border-bottom: 1px solid var(--line); }
.brand img { display: block; width: clamp(9.75rem, 27vw, 12.25rem); height: auto; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: clamp(.65rem, 2.5vw, 1.5rem); font-size: .92rem; }
.top nav a, .footer a { display: inline-flex; gap: .55rem; align-items: center; padding-block: .65rem; }
.top nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top .language-switch { flex-wrap: nowrap; gap: .2rem; padding: .15rem; border: 1px solid var(--line); border-radius: 5px; }
.top .language-switch a { justify-content: center; min-width: 2.25rem; min-height: 2.25rem; padding: .2rem; border-radius: 3px; font-size: .8rem; font-weight: 700; }
.language-switch a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.5rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: .62rem; height: .62rem; background: var(--accent); border-radius: 50%; flex: none; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 1rem 0 1.15rem; font-size: clamp(3.65rem, 7.1vw, 7.15rem); line-height: .94; letter-spacing: -.084em; font-weight: 780; }
.lead { max-width: 39ch; margin: 0 0 1.65rem; color: var(--soft); font-size: clamp(1rem, 1.55vw, 1.23rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; gap: 1.35rem; padding: .85rem 1.1rem; background: #245789; color: var(--on-dark); font-weight: 650; font-size: .92rem; transition: background .2s, color .2s; }
.button:hover { background: var(--ink); }
.graphic { overflow: hidden; min-width: 0; aspect-ratio: 1.21; background: #1b426a; }
.graphic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.services { display: grid; grid-template-columns: 1fr 2.8fr; gap: clamp(1.5rem, 3.5vw, 4rem); padding-block: 2rem 2.5rem; border-block: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { margin: .65rem 0 0; font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.04; letter-spacing: -.06em; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2.5rem); }
.topics article { border-left: 1px solid var(--line); padding-left: clamp(.85rem, 1.6vw, 1.5rem); }
.number { color: #32675e; font: 700 .79rem ui-monospace, monospace; }
h3 { margin: .45rem 0; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.026em; }
.topics p { margin: 0; color: var(--soft); font-size: .93rem; line-height: 1.55; }
.details { display: grid; grid-template-columns: 1fr 2.8fr; gap: clamp(1.5rem, 3.5vw, 4rem); padding-block: 2rem 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.details h2, .details dl, .details dd { margin: 0; }
.details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.8vw, 2.5rem); }
.details dt { margin-bottom: .35rem; color: var(--soft); font-size: .84rem; }
.details dd { line-height: 1.5; }
.registration-address { grid-column: 1 / -1; }
.details a { text-decoration: underline; text-underline-offset: .2em; }
.section-copy { display: grid; justify-items: start; gap: .9rem; max-width: 66ch; }
.section-copy h3 { margin: 0 0 .35rem; }
.section-copy p { margin: 0; color: var(--soft); line-height: 1.65; }
.work-examples article + article { border-top: 1px solid var(--line); padding-top: 1rem; }
.work-examples p + p { margin-top: .5rem; }
.details .section-copy .button { text-decoration: none; }
.details .section-copy .button:hover { text-decoration: underline; }
.footer { min-height: 66px; color: var(--soft); font-size: .84rem; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 1.5rem; }
  .services, .details { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .top { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 1.7rem; }
  h1 { font-size: clamp(3.2rem, 12vw, 5.2rem); }
  .graphic { aspect-ratio: 1.55; }
  .topics, .details dl { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 510px) {
  .top { grid-template-columns: 1fr auto; padding-top: .65rem; }
  .top .language-switch { grid-column: 2; grid-row: 1; }
  .top nav:not(.language-switch) { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
