:root {
  --navy: #0c1f4d;
  --blue: #1e5fd6;
  --ink: #16192b;
  --muted: #5b6070;
  --border: #e6e8ef;
  --bg: #ffffff;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 24px);
}

a {
  color: var(--blue);
  text-decoration: none;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 9vw, 76px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  min-width: 0;
}

.brand-logo {
  height: 30px;
  width: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.site-nav a {
  color: var(--muted);
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: clamp(64px, 14vw, 120px) 24px clamp(56px, 11vw, 96px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw + 16px, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--navy);
}

.hero-sub {
  font-size: clamp(15px, 1.5vw + 10px, 18px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  background: var(--blue);
}

/* Sections */

.section {
  padding: clamp(44px, 8vw, 64px) 24px;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(22px, 1.5vw + 16px, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--navy);
}

.section p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
}

#services h2 {
  text-align: center;
}

.section-centered {
  text-align: center;
}

.section-centered p {
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 340px));
  justify-content: center;
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card p {
  margin: 0;
  font-size: 15px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(17px, 1.5vw + 12px, 22px);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
  word-break: break-word;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-email:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: #eaf0fd;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */

@media (min-width: 1400px) {
  :root {
    --max-width: 960px;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card h3 {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(12, 31, 77, 0.06);
    transition: max-height 0.25s ease;
  }

  .site-nav.open {
    max-height: 240px;
  }

  .site-nav a {
    width: 100%;
    padding: 14px clamp(16px, 5vw, 24px);
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .button {
    display: block;
    width: 100%;
    text-align: center;
  }
}
