:root {
  --bg: #f8f3e7;
  --surface: #ffffff;
  --text: #202124;
  --muted: #65665f;
  --primary: #15803d;
  --primary-dark: #0f5f2e;
  --accent: #f4b400;
  --saffron: #d97706;
  --line: #e3dac8;
  --danger: #b91c1c;
  --shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app {
  min-height: 100vh;
  padding-bottom: 82px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 243, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 900;
  padding: 0;
}

.csc-link {
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 11px;
}

.csc-link.active {
  background: var(--primary);
  color: white;
}

.lang-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fffaf0;
}

.lang-toggle button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.lang-toggle .active {
  background: var(--primary);
  color: white;
}

.screen {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px 14px 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 0;
  letter-spacing: 0;
}

h2 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 0;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: 0;
}

p {
  line-height: 1.5;
}

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

.eyebrow {
  color: #fff3c4;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero-card {
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #137a3a 0%, #0f5f2e 100%);
  color: white;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.help-pill {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  background: var(--accent);
  color: #2b1f00;
  font-weight: 900;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}

.quick-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  box-shadow: var(--shadow);
}

.quick-card span {
  font-size: 27px;
}

.quick-card strong {
  font-size: 18px;
}

.quick-card.accent {
  border-color: #f3cf77;
  background: #fff7db;
}

.founder-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.founder-photo {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9f7ee;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  justify-self: center;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card .eyebrow {
  margin-bottom: 4px;
}

.eyebrow.dark {
  color: var(--saffron);
}

.founder-card strong {
  display: block;
  margin: 6px 0;
  color: var(--primary-dark);
}

.founder-copy {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.founder-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}

.section-header button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 900;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar h2 {
  flex: 1;
}

.back-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 900;
}

.card-list {
  display: grid;
  gap: 12px;
}

.card-list.compact {
  gap: 10px;
}

.service-card,
.detail-card,
.form,
.success-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff3cf;
  font-size: 25px;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 12px;
}

.button-row,
.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-button,
.outline-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 900;
  text-align: center;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: white;
}

.outline-button {
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--primary-dark);
}

.full {
  width: 100%;
}

.inline-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.detail-card {
  padding: 16px;
}

.info-block {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-block h3 {
  color: var(--primary-dark);
}

.form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.selected-box {
  border-radius: 8px;
  padding: 13px;
  background: #e9f7ee;
  color: #14532d;
  display: grid;
  gap: 4px;
}

.selected-box span {
  font-size: 13px;
  font-weight: 800;
}

.selected-box strong {
  font-size: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 12px;
}

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

.success-card {
  padding: 20px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.success-icon {
  font-size: 42px;
}

.success-card strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.admin-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-summary div {
  display: grid;
  gap: 4px;
}

.admin-summary span {
  color: var(--muted);
  line-height: 1.45;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 4px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 900;
  padding: 9px 12px;
}

.filter-row button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.admin-list {
  margin-top: 12px;
}

.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.request-card p {
  margin-bottom: 0;
}

.request-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.request-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-badge {
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.status-NEW {
  background: #fff7db;
  color: #854d0e;
}

.status-IN_PROGRESS {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-DONE {
  background: #dcfce7;
  color: #166534;
}

.status-REJECTED {
  background: #fee2e2;
  color: #991b1b;
}

.error,
.empty {
  border-radius: 8px;
  padding: 14px;
  font-weight: 800;
}

.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

.empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.field-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 900;
}

button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav button {
  min-height: 64px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 6px 2px;
}

.bottom-nav span {
  font-size: 20px;
}

.bottom-nav strong {
  font-size: 12px;
  line-height: 1.1;
}

.bottom-nav .active {
  color: var(--primary-dark);
  background: #edf8ef;
}

@media (min-width: 620px) {
  .button-row,
  .form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
