:root {
  --primary: #1F4E79;
  --secondary: #2E75B6;
  --ink: #1c2733;
  --muted: #657282;
  --line: #dce6ef;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 78, 121, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

a {
  color: inherit;
}

.hero {
  min-height: 620px;
  padding-top: 78px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 78, 121, 0.97), rgba(46, 117, 182, 0.9)),
    linear-gradient(45deg, #1F4E79, #2E75B6);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  padding: 16px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: rgba(23, 61, 96, 0.96);
  box-shadow: 0 10px 30px rgba(12, 38, 64, 0.16);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-label span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

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

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-name {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
}

.hero-location {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: var(--primary);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
}

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

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.profile-box,
.qualification-list article,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
}

.card p,
.profile-box p,
.qualification-list p,
.contact-card p {
  color: var(--muted);
}

.card p:last-child,
.profile-box p:last-child,
.qualification-list p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--primary);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.profile-box {
  padding: 34px;
}

.qualifications-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qualification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qualification-list article {
  padding: 24px;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
  padding: 38px;
  border-color: rgba(46, 117, 182, 0.28);
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-details {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--secondary);
  background: #f1f7fc;
  border-radius: 6px;
  font-style: normal;
}

.contact-details p {
  margin-bottom: 0;
}

.contact-details p:first-child {
  margin-bottom: 14px;
}

.contact-details a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.footer {
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: #173d60;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .topbar {
    padding-right: 20px;
    padding-left: 20px;
    flex-wrap: wrap;
  }

  .brand {
    max-width: calc(100% - 66px);
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 12px 0 4px;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero-content {
    padding: 70px 0 88px;
  }

  .services-grid,
  .split-section,
  .qualification-list,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .contact-section {
    padding-bottom: 72px;
  }

  .contact-card,
  .profile-box {
    padding: 28px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .topbar,
  .hero-content,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .nav-links {
    font-size: 0.92rem;
  }

  .hero-content {
    padding: 54px 0 70px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-name {
    font-size: 1.5rem;
  }

  .hero-location {
    font-size: 0.82rem;
  }

  .intro {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .card,
  .qualification-list article,
  .contact-card,
  .profile-box {
    padding: 22px;
  }

  .contact-details {
    padding: 18px;
  }
}
