:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-strong: #e9f2ec;
  --ink: #16211b;
  --muted: #5d6962;
  --line: #d8e2dc;
  --green: #176b4d;
  --shadow: 0 18px 48px rgba(22, 33, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 249, 246, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

.tool-hero,
.calculator-strip {
  padding-left: clamp(18px, 4vw, 64px);
  padding-right: clamp(18px, 4vw, 64px);
}

.tool-hero {
  align-items: stretch;
  display: grid;
  gap: clamp(22px, 4vw, 54px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 72vh;
  padding-bottom: clamp(28px, 5vw, 76px);
  padding-top: clamp(28px, 5vw, 76px);
}

.tool-hero__content {
  align-self: center;
}

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

h1,
h2 {
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.tool-hero p {
  color: var(--muted);
  max-width: 62ch;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
}

.calculator-strip {
  padding-bottom: clamp(36px, 6vw, 84px);
}

.section-heading {
  margin-bottom: 18px;
}

.calculator-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calculator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(22, 33, 27, 0.04);
  display: block;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.calculator-card span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.calculator-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.calculator-card p {
  color: var(--muted);
  margin: 0;
}

.calculator-card:hover,
.calculator-card:focus-visible {
  border-color: #b8cbc0;
  box-shadow: 0 14px 28px rgba(22, 33, 27, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 64px);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .tool-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure img {
    max-height: 380px;
  }
}
