﻿:root {
  --ink: #17211b;
  --muted: #5f6b63;
  --line: #d9e3dc;
  --panel: #ffffff;
  --paper: #f5f7f2;
  --accent: #0d7c66;
  --accent-dark: #075f51;
  --gold: #d59b2d;
  --warn: #b54708;
  --ok: #13795b;
  --shadow: 0 16px 50px rgba(23, 33, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 33, 27, 0.1);
  background: rgba(245, 247, 242, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.brand-logo {
  width: min(226px, 54vw);
  height: auto;
  max-height: 46px;
  display: block;
  flex: 0 0 auto;
}

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

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

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

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 22px 54px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-tile {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.metric-tile strong {
  display: block;
  font-size: 22px;
}

.metric-tile span {
  color: var(--muted);
  font-size: 13px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preset-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 0;
  font-size: 20px;
}

.preset {
  padding: 6px 9px;
  color: var(--accent-dark);
  background: #e7f4ef;
  border: 1px solid #bdddd2;
  font-size: 13px;
  font-weight: 750;
}

.platform-select {
  height: 34px;
  padding: 0 34px 0 10px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  font-weight: 750;
}

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

.field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #cdd8d0;
  border-radius: 6px;
  font-size: 16px;
}

.field input:focus {
  outline: 2px solid rgba(13, 124, 102, 0.24);
  border-color: var(--accent);
}

.hint {
  display: block;
  margin-top: 6px;
  color: #7b867f;
  font-size: 12px;
  line-height: 1.4;
}

.actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button,
.button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

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

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.results {
  position: sticky;
  top: 82px;
}

.result-main {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.08), rgba(213, 155, 45, 0.08));
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-label {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.result-value {
  margin: 6px 0 2px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.result-note {
  color: var(--muted);
  font-size: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.score {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 160ms ease, color 160ms ease;
}

.score:nth-child(2n) {
  border-right: 0;
}

.score:nth-last-child(-n+2) {
  border-bottom: 0;
}

.score span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.score em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.state-good {
  color: var(--ok);
}

.state-warn {
  color: var(--warn);
}

.state-bad {
  color: #b42318;
}

.status-pill.state-good {
  background: #e7f4ef;
  color: var(--ok);
}

.status-pill.state-warn {
  background: #fff7e5;
  color: var(--warn);
}

.status-pill.state-bad {
  background: #fff1f0;
  color: #b42318;
}

.score.state-good {
  background: linear-gradient(180deg, #ffffff, #f2fbf7);
}

.score.state-warn {
  background: linear-gradient(180deg, #ffffff, #fff8ea);
}

.score.state-bad {
  background: linear-gradient(180deg, #ffffff, #fff5f4);
}

.breakdown {
  padding: 18px 20px 20px;
}

.breakdown h3,
.content h2,
.tool-card h2 {
  margin: 0 0 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 78px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e6ede8;
  border-radius: 999px;
}

.bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 160ms ease;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.tool-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
  text-decoration: none;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tool-card span {
  color: var(--accent-dark);
  font-weight: 800;
}

.content {
  max-width: 850px;
  margin-top: 32px;
  color: var(--muted);
  line-height: 1.75;
}

.content ul,
.content ol {
  padding-left: 22px;
}

.content li {
  margin: 8px 0;
}

.content h2 {
  color: var(--ink);
  margin-top: 28px;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.cta-band {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid #bdddd2;
  background: #eaf6f1;
}

.cta-band h2 {
  margin-top: 0;
}

.cta-band form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-band input {
  min-width: min(100%, 320px);
  height: 44px;
  padding: 0 12px;
  border: 1px solid #aacfc2;
  border-radius: 6px;
  font-size: 15px;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 38px 22px 64px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-page h1,
.legal-page h2 {
  color: var(--ink);
}

.footer {
  padding: 28px 22px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 920px) {
  .intro,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .results {
    position: static;
  }

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

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .form-grid,
  .metric-strip,
  .tool-grid {
    grid-template-columns: 1fr;
  }

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

  .score,
  .score:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score:last-child {
    border-bottom: 0;
  }
}
