/* nakodil.com — чистый нейтральный стиль «как ChatGPT» */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --ink: #0d0d0d;
  --muted: #8e8e93;
  --line: #e6e6e6;
  --green: #10a37f;
  --amber: #dfa100;
  --dot-empty: #d9d9de;
  --radius: 14px;
}
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.screen { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
button { font: inherit; cursor: pointer; }

/* ---------- главная ---------- */
.home { text-align: center; padding-top: 9vh; max-width: 680px; }
.iigor-hero { width: 110px; border-radius: 26px; margin-bottom: 30px; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.3px; margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 26px; }

.composer {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 24px; padding: 10px 10px 10px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  text-align: left;
}
.composer:focus-within { border-color: #bdbdc2; }
.composer textarea {
  flex: 1; border: none; outline: none; resize: none;
  font: inherit; background: transparent; max-height: 160px;
}
.send {
  width: 36px; height: 36px; flex: none;
  border: none; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 17px;
}
.send:hover { opacity: .85; }
.composer.big { padding: 14px 12px 14px 20px; }
.composer.big .send { width: 40px; height: 40px; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 26px; }
.tile {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink);
}
.tile.active:hover, .tile.sel { border-color: var(--ink); }
.tile.soon { color: var(--muted); cursor: default; }
.pricing-line { color: var(--muted); font-size: 14px; }
.pricing-line b { color: var(--ink); }
.foot { color: var(--muted); font-size: 13px; margin-top: 56px; }

/* ---------- допрос ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.ava-top { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.topbar-mid { flex: 1; }
.int-title { font-weight: 600; margin-bottom: 7px; }
.bar { height: 4px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: var(--green); border-radius: 99px; transition: width .6s ease; }
.bar-note { font-size: 13px; color: var(--muted); font-style: italic; margin: 4px 0 0 52px; }

.int-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-top: 14px; }
.chat { display: flex; flex-direction: column; gap: 16px; min-height: 280px; padding: 8px 0; }
.row { display: flex; gap: 10px; align-items: flex-start; }
.row .ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; margin-top: 2px; }
.row .bubble { white-space: pre-wrap; max-width: 92%; }
.row.user { justify-content: flex-end; }
.row.user .bubble { background: var(--bg2); border-radius: 18px; padding: 9px 15px; max-width: 80%; }
.row.typing .bubble { color: var(--muted); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.card-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); height: fit-content; position: sticky; top: 16px;
}
.card-panel summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 14px;
  padding: 12px 14px;
}
.card-panel summary::-webkit-details-marker { display: none; }
#card-fields { padding: 2px 14px 12px; }
.field { display: flex; align-items: baseline; gap: 8px; font-size: 13px; margin-bottom: 9px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dot-empty); position: relative; top: -1px; }
.field.filled .dot { background: var(--green); }
.field.default .dot { background: var(--amber); }
.f-label { color: var(--ink); }
.f-value { margin-left: auto; text-align: right; color: var(--muted); max-width: 55%; }

.answer-zone { margin-top: 18px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.opt {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 8px 16px; font-size: 14px;
}
.opt:hover { border-color: var(--ink); }
.ghost {
  border: none; background: none; color: var(--muted);
  font-size: 13px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px;
}
.ghost:hover { color: var(--ink); }
.banner {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: 14px; margin-bottom: 12px;
}

/* ---------- пейвол ---------- */
.pay-box { max-width: 560px; margin: 6vh auto 0; text-align: center; }
.pay-check {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.pay-box h2 { font-size: 24px; margin-bottom: 8px; }
.pay-summary { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 22px; }
.chip {
  background: var(--bg2); border-radius: 999px; padding: 6px 12px; font-size: 13px;
}
.chip.default { border: 1px dashed var(--amber); background: var(--bg); }
.preview {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-align: left; margin-bottom: 22px;
}
.preview-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.pv-h { font-weight: 600; font-size: 14px; margin-top: 10px; }
.pv-line { height: 9px; border-radius: 6px; background: var(--bg2); margin: 7px 0; filter: blur(3px); }
.pay-price { font-size: 26px; margin-bottom: 14px; }
.pay-price s { color: var(--muted); font-size: 18px; }
.pay-price span { display: block; font-size: 13px; color: var(--muted); }
.btn-primary {
  background: var(--ink); color: #fff; border: none;
  border-radius: var(--radius); padding: 14px 22px; font-size: 16px; font-weight: 600;
  width: 100%;
}
.btn-primary:hover { opacity: .87; }
.pay-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- результат ---------- */
.res-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.res-title { font-weight: 600; font-size: 18px; }
.res-actions { display: flex; gap: 14px; }
.res-actions .ghost { margin-top: 0; }
.doc {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; background: var(--bg);
}
.doc h2 { font-size: 22px; margin: 4px 0 12px; }
.doc h3 { font-size: 17px; margin: 20px 0 8px; }
.doc h4 { font-size: 15px; margin: 16px 0 6px; }
.doc p { margin-bottom: 10px; }
.doc ul, .doc ol { margin: 0 0 12px 22px; }
.doc li { margin-bottom: 4px; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.doc code { background: var(--bg2); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.tbl { overflow-x: auto; margin-bottom: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.doc th { background: var(--bg2); }
.edits-left { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- оверлей ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.93);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  z-index: 10; text-align: center; padding: 20px;
}
.ava-big { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
#overlay-text { color: var(--muted); }

/* ---------- мобильный ---------- */
@media (max-width: 760px) {
  h1 { font-size: 24px; }
  .home { padding-top: 5vh; }
  .int-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-panel { position: static; order: -1; }
  .bar-note { margin-left: 0; }
  .doc { padding: 18px 16px; }
}

/* ---------- микрофон ---------- */
.mic {
  width: 36px; height: 36px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); position: relative;
}
.mic::before {
  content: ''; position: absolute; left: 50%; top: 9px;
  width: 8px; height: 11px; margin-left: -4px;
  border-radius: 4px; background: var(--muted);
}
.mic::after {
  content: ''; position: absolute; left: 50%; top: 21px;
  width: 12px; height: 5px; margin-left: -6px;
  border: 1.5px solid var(--muted); border-top: none;
  border-radius: 0 0 7px 7px;
}
.mic:hover { border-color: var(--ink); }
.mic:hover::before, .mic:hover::after { background: var(--ink); border-color: var(--ink); }
.mic.rec { border-color: #d93025; background: #fff5f4; animation: recpulse 1.4s ease-in-out infinite; }
.mic.rec::before { background: #d93025; }
.mic.rec::after { border-color: #d93025; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 5px rgba(217, 48, 37, .12); } }
.mic[disabled] { opacity: .4; cursor: default; }
