:root {
  --bg: #f2f3f5;
  --text: #2f3236;
  --muted: #5f656c;
  --card: #ffffff;
  --line: rgba(47, 50, 54, 0.14);
  --accent: #2f3236;
  --on: #f4f5f7;
  --ok: #1f8a52;
  --ok-bg: #e7f6ee;
  --danger: #a12828;
  --danger-bg: #fdecec;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --max: 1080px;
  --header: 76px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(138, 142, 147, 0.2), transparent 55%),
    var(--bg);
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }

h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

p { margin: 0 0 0.9rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 243, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  width: 52px;
  height: auto;
}

.logo strong {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 7px;
}

.nav, .header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav a {
  font-weight: 650;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.header-actions a:not(.btn) {
  font-weight: 650;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.hero { padding: 3.2rem 0 1.5rem; }

.hero .lead, .sub {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8e93;
  font-family: var(--display);
}

.hero-actions, .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
}

.section { padding: 1.2rem 0 2.6rem; }

.grid-3, .grid-2, .who {
  display: grid;
  gap: 0.9rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.grid-2, .who { grid-template-columns: 1fr 1fr; }

.card, .panel, .supply-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.steps strong { font-family: var(--display); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.site-footer a { color: var(--text); }

.narrow { max-width: 640px; }

form.panel { display: grid; gap: 0.85rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 650;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 50, 54, 0.22);
  background: #f7f8f9;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

textarea { min-height: 90px; resize: vertical; }

textarea.tall { min-height: 160px; }

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

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

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
}

.inline-form label { flex: 1; min-width: 12rem; }

.status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
}

.status.ok { background: var(--ok-bg); color: var(--ok); }

.status.err { background: var(--danger-bg); color: var(--danger); }

.supply-list { display: grid; gap: 0.8rem; margin-top: 1rem; }

.supply-card h3 { margin-bottom: 0.25rem; }

.supply-meta {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.supply-note { color: var(--muted); }

.quiet { color: var(--muted); font-size: 0.92rem; }

.page-intro { padding-top: 2.2rem; }

select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(47, 50, 54, 0.22);
  background: #f7f8f9;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

input[type="file"] { max-width: 100%; font-size: 16px; }

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

body.gate main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

body.gate h1 { font-size: 2rem; }

body.gate .site-footer { text-align: center; }

.gate-card { width: min(100%, 440px); margin-inline: auto; }

.stack-btns { display: grid; gap: 0.65rem; }

.stack-btns .btn { width: 100%; }

.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.4rem;
  margin-bottom: 1.8rem;
}

.profile h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 0.35rem; }

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(47, 50, 54, 0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.profile-photo img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

.profile-photo span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 0.4rem;
}

.profile-fields { flex: 1; min-width: min(100%, 240px); }

.yard-list, .kind-list { display: grid; gap: 0.8rem; }

.yard-card { display: block; text-decoration: none; color: inherit; }

.yard-card h3 { margin-bottom: 0.3rem; }

.yard-card:hover { border-color: rgba(47, 50, 54, 0.4); }

.address { white-space: pre-wrap; }

.kind-block { margin-top: 1.3rem; }

.kind-block h2 { font-size: 1.35rem; }

.back-link { display: inline-block; margin-bottom: 0.8rem; font-weight: 700; }

.stack { margin-top: 1rem; }

.break { overflow-wrap: anywhere; }

@media (max-width: 800px) {
  .grid-3, .grid-2, .who, .form-grid { grid-template-columns: 1fr; }
  .logo { margin-right: 0; }
  .profile { align-items: flex-start; }
}
