:root {
  --ink: #0e1a14;
  --muted: #4a5c52;
  --line: rgba(14, 26, 20, 0.1);
  --paper: #f3f7f4;
  --panel: rgba(255, 255, 255, 0.78);
  --brand: #0b6b45;
  --brand-2: #148f5c;
  --accent: #c9851a;
  --accent-soft: rgba(201, 133, 26, 0.14);
  --good: #0b6b45;
  --warn: #9a4d0c;
  --shadow: 0 18px 50px rgba(14, 26, 20, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 143, 92, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 133, 26, 0.16), transparent 50%),
    linear-gradient(180deg, #eef6f1 0%, var(--paper) 40%, #e8f0eb 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 244, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--brand); }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--brand); }

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.4rem 0 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}
.pill:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
  padding-bottom: 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.calc {
  flex: 1 1 340px;
  padding: 1.25rem;
}

.results {
  flex: 1 1 280px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { margin-bottom: 1rem; }
.field label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--muted);
}
.field label strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.field input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.field input[type="number"],
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.stat {
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f5faf7);
  border: 1px solid var(--line);
}
.stat .label { font-size: 0.8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}
.stat.accent {
  background: linear-gradient(145deg, #0b6b45, #148f5c);
  color: #fff;
  border: none;
}
.stat.accent .label { color: rgba(255,255,255,0.78); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: #dfe8e2;
  overflow: hidden;
  display: flex;
}
.bar span:first-child { background: var(--brand); }
.bar span:last-child { background: var(--accent); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}
.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
}
.dot.p { background: var(--brand); }
.dot.i { background: var(--accent); }

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
.schedule th, .schedule td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.schedule th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

.adslot {
  min-height: 90px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-block {
  padding: 1.5rem 0 3rem;
}
.seo-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}
.seo-block p, .seo-block li { color: var(--muted); margin-bottom: 0.7rem; }
.seo-block ul { padding-left: 1.2rem; }
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.seo-card {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.seo-card:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.seo-card small { display: block; margin-top: 0.35rem; font-weight: 500; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}
.footer-grid h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  color: var(--ink);
}
.footer-grid a { display: block; color: var(--muted); margin-bottom: 0.3rem; text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 1.6rem; }
}
