:root {
  --ink: #06122f;
  --muted: #536176;
  --line: #dbe3ef;
  --surface: #ffffff;
  --soft: #f4f8fc;
  --blue: #0967f2;
  --cyan: #19a8f7;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 176px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(6, 18, 47, 0.9), rgba(9, 103, 242, 0.58)),
    url("../assets/images/kwart-logo.png") center right 8% / min(46vw, 520px) auto no-repeat,
    #06122f;
}

.hero-content {
  width: min(680px, 100%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.site-footer h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #004dc2;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 32px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section h2,
.site-footer h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.service-card p,
.process span,
.site-footer p {
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 24px 24px 72px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 50%;
  content: counter(step);
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 5vw, 64px);
  color: #ffffff;
  background: var(--ink);
}

.site-footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.button-light {
  flex: 0 0 auto;
  color: var(--ink);
  background: #ffffff;
  border-color: #ffffff;
}

.button-light:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 136px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(6, 18, 47, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 72vh;
    background:
      linear-gradient(110deg, rgba(6, 18, 47, 0.94), rgba(9, 103, 242, 0.68)),
      url("../assets/images/kwart-logo.png") center bottom 8% / min(76vw, 420px) auto no-repeat,
      #06122f;
  }

  .service-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
