:root {
  --ink: #14213d;
  --muted: #5f6b7a;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #f5b642;
  --danger: #b42318;
}

* {
  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", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.button,
button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  color: var(--accent-dark);
  background: white;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(20px, 5vw, 72px) 48px;
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 26% 24%, rgba(245, 182, 66, 0.34), transparent 19%),
    linear-gradient(135deg, #e9f5f3 0%, #ffffff 54%, #f5f8fb 100%);
  padding: 28px;
}

.learning-map {
  display: grid;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.map-node {
  min-height: 112px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
}

.map-node strong {
  display: block;
  margin-bottom: 8px;
}

.map-node span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px clamp(20px, 5vw, 72px);
}

.section.alt {
  background: var(--soft);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.section > p {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.form-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

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

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  min-height: 24px;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-message.ok {
  color: var(--accent-dark);
}

.voice-shell {
  min-height: calc(100vh - 72px);
  padding: 40px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.voice-panel {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 36px);
  background: white;
}

.transcript {
  min-height: 180px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfd;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hero,
  .form-band,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .visual {
    min-height: 320px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}


.admin-body {
  background: var(--soft);
}

.admin-topbar button {
  min-height: 36px;
  padding: 8px 12px;
}

.admin-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding: 18px;
  background: white;
}

.admin-nav {
  min-height: 38px;
  justify-content: flex-start;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.admin-nav.active,
.admin-nav:hover {
  color: var(--accent-dark);
  border-color: var(--line);
  background: var(--soft);
}

.admin-content {
  min-width: 0;
  padding: 24px clamp(16px, 3vw, 38px);
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: white;
}

.admin-card h1,
.admin-card h2 {
  margin: 0 0 10px;
}

.admin-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}

.admin-stat strong {
  display: block;
  font-size: 24px;
}

.admin-stat span {
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.admin-actions {
  margin-bottom: 14px;
}

.inline-admin-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-stats,
  .inline-admin-form {
    grid-template-columns: 1fr;
  }

  .admin-heading {
    display: grid;
  }
}
