:root {
  --page-background: #ffffff;
  --surface: #f7f9fb;
  --text: #1e2f3d;
  --muted: #60717f;
  --border: #dce4ea;
  --brand: #142f45;
  --brand-dark: #0f2638;
  --accent: #fed52d;
  --accent-text: #806900;
  --accent-soft: #fff4bd;
  --link: #126b8a;
  --link-hover: #0c4e66;
  --shadow: 0 10px 26px rgba(20, 47, 69, 0.06);
  --content-width: 1110px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.header-inner,
.main-content,
.footer-inner {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 7px;
  border-radius: 10px;
  background: var(--brand);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.main-content {
  flex: 1;
  padding-block: clamp(48px, 7vw, 84px) 96px;
}

.intro {
  max-width: 900px;
}

.intro-rule {
  display: block;
  width: 58px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.thanks {
  margin-bottom: 0;
  color: var(--muted);
}

.thanks strong {
  color: var(--brand-dark);
}

.available {
  margin-top: clamp(48px, 7vw, 68px);
}

h2 {
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.service-card h3 {
  margin: 12px 0 14px;
  color: var(--brand-dark);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service-card > p:not(.card-label) {
  max-width: 510px;
  margin-bottom: 28px;
  color: var(--muted);
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--link);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.card-link:focus-visible,
.brand:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .header-inner,
  .main-content,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    padding: 6px;
  }

  .main-content {
    padding-block: 40px 64px;
  }

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

  .service-card {
    min-height: 0;
    padding: 28px 26px;
  }

  .card-link {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
