:root {
  --bg: #f7f9fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5d6675;
  --line: #d9e1ea;
  --brand: #155e75;
  --brand-dark: #0f3f52;
  --accent: #d99a2b;
  --soft: #e9f3f6;
  --danger: #b42318;
  --success: #14743f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.lang-lv [data-lang="en"],
.lang-en [data-lang="lv"] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--soft);
  border: 1px solid #c6dce4;
  border-radius: 8px;
}

.lang-button {
  min-width: 42px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-button.active {
  background: var(--brand);
  color: #fff;
}

.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-lead,
.section-intro > p,
.credential-layout > p,
.contact-copy > p {
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--brand-dark);
}

.hero-panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  padding: 20px;
}

.hero-metrics div + div {
  border-left: 1px solid var(--line);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 265px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
}

.approach {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 6px;
  color: var(--muted);
}

.credential-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge-list li {
  padding: 10px 14px;
  background: var(--soft);
  border: 1px solid #c6dce4;
  border-radius: 6px;
  color: var(--brand-dark);
  font-weight: 700;
}

.clients {
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logo-grid img {
  width: 100%;
  height: 110px;
  padding: 24px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

address {
  margin-top: 28px;
  color: var(--muted);
  font-style: normal;
}

address a {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

label {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(21, 94, 117, 0.18);
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.consent-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.consent-row a {
  color: var(--brand);
  font-weight: 700;
}

.consent-row input:focus {
  outline: 3px solid rgba(21, 94, 117, 0.18);
  outline-offset: 2px;
}

.form-status {
  min-height: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.alert-success {
  background: #e8f6ee;
  color: var(--success);
}

.alert-danger {
  background: #fff0ee;
  color: var(--danger);
}

.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note a {
  color: var(--brand);
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.legal-page {
  padding-top: 56px;
}

.legal-section {
  padding: 64px 0 32px;
}

.legal-section h1 {
  max-width: 860px;
  font-size: clamp(38px, 5vw, 64px);
}

.legal-updated {
  color: var(--muted);
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 28px;
  padding-bottom: 72px;
}

.legal-content article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-content p,
.legal-content li {
  max-width: 900px;
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.legal-content a {
  color: var(--brand);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: inherit;
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .approach,
  .credential-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .card-grid,
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: grid;
  }

  .header-actions {
    align-items: flex-start;
    width: 100%;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .card-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
