:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #0b2239;
  --muted: #5f6c7d;
  --line: #d8e2ef;
  --soft: #eaf2fb;
  --accent: #2f73ff;
  --radius: 10px;
  --shadow: 0 12px 34px rgba(11, 34, 57, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 226, 239, 0.75);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 20px;
  padding: 0;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-text {
  padding: clamp(28px, 4vw, 48px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero .eyebrow {
  color: #bcd5ff;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 15px;
}

.tagline {
  font-weight: 700;
  color: #dce9ff;
  font-size: 16px;
  max-width: 680px;
}

.lead {
  max-width: 650px;
  color: #d1dce8;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.button.primary {
  background: #ffffff;
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.hero-image-wrap {
  min-height: 320px;
  background: #102d48;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 22px 0 0;
}

.facts article {
  background: var(--soft);
  padding: 22px;
  border: 1px solid var(--line);
}

.facts span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.facts strong {
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
}

.text-block {
  font-size: 16px;
  color: #1e3148;
}

.text-block p {
  margin-bottom: 15px;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin: 24px 0 42px;
}

.tag-grid span {
  padding: 14px;
  background: #d9e9fb;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: #ffffff;
}

.competence-grid article {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.competence-grid ul {
  margin: 0;
  padding-left: 20px;
}

.subheading {
  margin-top: 42px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tags span {
  background: #d9e9fb;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.tools span {
  background: #ffffff;
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(11, 34, 57, 0.06);
}

.project-meta {
  background: var(--ink);
  color: #ffffff;
  padding: 24px;
}

.project-meta strong {
  display: block;
  font-size: 17px;
  margin-bottom: 22px;
}

.project-meta span {
  color: #c7d5e6;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin-bottom: 8px;
}

.tech {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}

.work-grid article {
  background: var(--soft);
  padding: 24px;
  border-right: 1px solid var(--line);
}

.work-grid article.dark {
  background: var(--ink);
  color: #ffffff;
}

.narrow {
  max-width: 820px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 34px;
  align-items: center;
}

.contact-card {
  background: #ffffff;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .hero,
  .split,
  .project-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .facts,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .competence-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 520px) {
  .section {
    width: min(100% - 28px, 1080px);
    padding: 42px 0;
  }

  .tag-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    padding: 24px;
  }
}