@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #1c1914;
  --muted: #6b6458;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #d9d0c0;
  --accent: #2f5d50;
  --accent-hover: #264a40;
  --danger: #9b2c2c;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  background-color: #f2ece4;
  background-image:
    radial-gradient(circle 240px at 94% 6%, rgba(255, 196, 110, 0.55), rgba(255, 196, 110, 0.15) 45%, transparent 68%),
    radial-gradient(ellipse 900px 420px at 50% -5%, rgba(186, 212, 228, 0.55), transparent 58%),
    linear-gradient(175deg, #dce8ef 0%, #ebe4d8 38%, var(--paper) 72%, #efe8dc 100%);
  background-attachment: fixed;
  position: relative;
}

/* мягкая сетка «солнечных панелей» */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(47, 93, 80, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 93, 80, 0.07) 1px, transparent 1px);
  background-size: 52px 34px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 55%, #000 15%, transparent 72%);
}

/* лёгкие «лучи» от солнца */
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    rgba(255, 200, 100, 0.06) 18deg,
    transparent 36deg,
    rgba(255, 200, 100, 0.05) 54deg,
    transparent 72deg,
    rgba(255, 200, 100, 0.04) 90deg,
    transparent 108deg,
    rgba(255, 200, 100, 0.05) 126deg,
    transparent 144deg,
    rgba(255, 200, 100, 0.04) 162deg,
    transparent 180deg
  );
  mask-image: radial-gradient(circle, #000 8%, transparent 62%);
}

.page,
.admin-body > * {
  position: relative;
  z-index: 1;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.intro h1 {
  margin: 10px 0 14px;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
}
.lead {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.steps-legend {
  padding-left: 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.steps-legend li { margin-bottom: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(40, 28, 10, 0.08);
}

.progress {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
#bar {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.step-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 10px;
}
h2 {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

label, legend {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 18px 0 6px;
  color: var(--ink);
}
input, textarea {
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder {
  color: #a8ada8;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #a8b8ae;
  box-shadow: 0 0 0 3px rgba(77, 107, 95, 0.12);
}
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.choice {
  font-weight: 400;
  font-size: 0.9375rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  color: var(--ink);
  line-height: 1.45;
}
.choice input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
}
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}

.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: var(--accent-hover); }
button.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.ghost:hover { background: #faf9f7; }
.error { color: var(--danger); font-size: 0.875rem; }
.hidden { display: none !important; }
.done h2 { color: var(--accent); font-size: 1.25rem; }
.done p { color: var(--muted); font-size: 0.9375rem; }

.admin-body { padding-bottom: 60px; min-height: 100vh; }
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  color: var(--ink);
}
.admin-bar strong {
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}
.login-card { max-width: 400px; margin: 48px auto; }
.login-card h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 0 24px;
}
.list-pane { min-height: 60vh; }
.item {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 8px;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.item:hover { background: #faf9f7; }
.item strong {
  font-weight: 500;
  font-size: 0.875rem;
}
.item.active {
  border-color: var(--accent);
  background: #f7f9f8;
}
.muted { color: var(--muted); font-size: 0.8125rem; }
.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 20px;
  font-size: 0.9375rem;
}
.kv dt {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8125rem;
}
.kv dd { margin: 0; line-height: 1.5; }

@media (max-width: 860px) {
  .page, .layout { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .intro h1 { font-size: 1.5rem; }
  .page { padding-top: 32px; gap: 32px; }
  .card { padding: 24px; }
}
