:root {
  --bg: #eff5f7;
  --surface: #ffffff;
  --ink: #102134;
  --muted: #5a6d80;
  --line: #d4e0ec;
  --teal: #0d9488;
  --blue: #0f3f73;
  --gold: #f8d46a;
  --shadow: 0 14px 38px rgba(18, 36, 56, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, #d8f3ef 0%, transparent 34%),
    radial-gradient(circle at 100% 0%, #dbe9fb 0%, transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Inter, sans-serif;
}

.container {
  width: min(1040px, 92vw);
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.2rem;
}

.logo-banner {
  width: min(460px, 100%);
  height: auto;
  display: block;
}

.hero-copy {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 72ch;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.7rem;
}

.metric-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-card strong {
  font-size: 1rem;
}

details {
  margin-top: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}

summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
}

.admin-row {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.calc form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select,
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  font: inherit;
}

button {
  border: none;
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.full {
  grid-column: 1 / -1;
}

.checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row input {
  width: auto;
}

.result-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: #f9fcff;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.6rem;
}

.result-grid div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 0.55rem;
}

.result-grid span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-grid strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1rem;
}

.result-grid .total strong,
.result-grid .save strong {
  color: #065f46;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

li a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

li small,
.small-note {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .metric-grid,
  .calc form,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }
}
