@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');
:root {
  --primary: #101010;        /* основной текст / hero */
  --dark: #2A2A2A;
  --accent: #FF7A00;         /* бренд ТехноТемп/Sollers */
  --accent-d: #E56E00;
  --muted: #6B6B6B;
  --light: #9A9A9A;
  --bg: #F4F4F4;
  --card: #FFFFFF;
  --border: #E5E5E5;
  --radius: 16px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(255,122,0,.15); }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.btn, .scale .b, .opt .b, .chip .b, .chip-suggest, select { touch-action: manipulation; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--primary);
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(255,122,0,.06), transparent 70%),
    var(--bg);
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; color: var(--primary); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; }
.wrap { max-width: 760px; margin: 0 auto; padding: 22px 18px 72px; }

/* header / brand */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand .logo { height: 26px; width: auto; display: block; }
.brand .name { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: lowercase; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(16,16,16,.04), 0 12px 40px rgba(16,16,16,.06);
}
.lead { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,122,0,.10); color: var(--accent-d);
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* progress */
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.progress-head .step { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.bar { height: 8px; background: #ececec; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #FFB36B); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.left { color: var(--accent-d); font-weight: 700; margin: -8px 0 16px; font-size: .95rem; }

/* questions */
.q { padding: 18px 0; border-top: 1px solid var(--border); }
.q:first-child { border-top: 0; padding-top: 4px; }
.q .label { font-weight: 600; margin-bottom: 12px; display: block; font-size: 1.02rem; }
.q .req { color: var(--accent); }
.q .hint { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; line-height: 1.35; margin-top: 4px; }

.scale { display: flex; flex-wrap: wrap; gap: 7px; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale .b {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: .92rem; color: var(--dark);
  transition: transform .12s, background .15s, border-color .15s, color .15s;
}
.scale .b:hover { border-color: var(--accent); color: var(--accent-d); transform: translateY(-1px); }
.scale input:checked + .b { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 12px rgba(255,122,0,.35); }

/* десктоп: подпись слева, шкала справа (как в эталоне) */
.q-rating { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 10px; align-items: center; }
.q-rating .label { margin: 0; }
.q-rating .why-box { grid-column: 1 / -1; }
@media (max-width: 600px) { .q-rating { grid-template-columns: 1fr; } }

/* прогресс-строка */
.prog-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 2px 0 8px; flex-wrap: wrap; }
.prog-row .small { font-size: .88rem; }
.sec-title { font-size: 1.3rem; margin-bottom: 6px; }

.opts { display: flex; flex-direction: column; gap: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.opt, .chip { cursor: pointer; }
.opt input, .chip input { position: absolute; opacity: 0; }
.opt .b { display: block; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 11px; background: #fff; transition: all .15s; }
.opt .b:hover { border-color: var(--accent); }
.chip .b { display: inline-block; padding: 10px 15px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; transition: all .15s; }
.chip .b:hover { border-color: var(--accent); }
.opt input:checked + .b { border-color: var(--accent); background: rgba(255,122,0,.06); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.chip input:checked + .b { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

/* свой стиль форм: техно-подчёркивание, не «AI-коробочки» */
input[type=text], input[type=number], input[type=date], select {
  width: 100%; padding: 11px 2px; border: 0; border-bottom: 1.5px solid var(--border);
  border-radius: 0; font: inherit; color: var(--primary); background: transparent;
  transition: border-color .15s; -webkit-appearance: none; appearance: none;
}
input[type=text]::placeholder, input[type=number]::placeholder { color: var(--light); }
input[type=text]:focus, input[type=number]:focus, input[type=date]:focus, select:focus {
  outline: none; border-bottom-color: var(--accent); border-bottom-width: 2px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FF7A00' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 22px; cursor: pointer;
}
textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; min-height: 88px; resize: vertical; font: inherit; color: var(--primary); background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,122,0,.10); }
.other-row { margin-top: 9px; }
.suggest-help { font-size: .86rem; color: var(--muted); margin: 2px 0 9px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-suggest {
  font: inherit; font-size: .92rem; cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: 999px; background: #fff; color: var(--dark);
  transition: transform .14s ease, border-color .14s, color .14s, background .14s, box-shadow .14s;
}
.chip-suggest:hover { border-color: var(--accent); color: var(--accent-d); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,0,.14); }
.chip-suggest.on { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px rgba(255,122,0,.30); }
/* превью подробного варианта: плавно раскрывается */
.suggest-preview {
  max-height: 0; opacity: 0; overflow: hidden; color: var(--dark); font-size: .94rem;
  border-left: 3px solid var(--accent); padding: 0 0 0 0; margin: 0;
  transition: max-height .25s ease, opacity .2s ease, padding .2s ease, margin .2s ease;
}
.suggest-preview.show { max-height: 120px; opacity: 1; padding: 8px 0 8px 13px; margin: 0 0 11px; }
/* nudge: стимулирует дописать своими словами */
.nudge { max-height: 0; opacity: 0; overflow: hidden; color: var(--accent-d); font-size: .88rem; font-weight: 600;
  transition: max-height .25s ease, opacity .2s ease, margin .2s ease; }
.nudge.show { max-height: 60px; opacity: 1; margin-top: 9px; }
.nudge::before { content: "✎ "; }
.why-box { margin-top: 11px; padding-left: 13px; border-left: 3px solid var(--accent); }
.why-box input { padding-left: 4px; }

/* buttons */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.btn { border: 0; border-radius: 12px; padding: 14px 24px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255,122,0,.30); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,122,0,.38); }
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-big { width: 100%; display: block; text-align: center; text-decoration: none; margin-top: 12px; }

.field { margin-bottom: 16px; }
.field label { font-weight: 600; display: block; margin-bottom: 7px; font-size: .96rem; }
.center { text-align: center; }
.thanks { padding-top: 36px; }
.thanks-arc { width: 200px; max-width: 70%; height: auto; margin: 0 auto 10px; display: block; }
.thanks h1 { font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.big-emoji { font-size: 3rem; }
a.link { color: var(--accent-d); font-weight: 600; }
.note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .grid2 { grid-template-columns: 1fr; } .wrap { padding: 16px 14px 60px; } h1 { font-size: 1.6rem; } }

/* dashboard techno header */
.dash-hero { background: #101010; color: #fff; border: 0; position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 40px 40px; }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero h1 { color: #fff; }
.dash-hero .muted { color: #b6b6b6; }
.dash-logo { height: 24px; margin-bottom: 14px; display: block; }
.dash-kicker { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--accent); margin-bottom: 6px; }
.dash-hero .kpi .box { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.dash-hero .kpi .box .v { color: #fff; }
.dash-hero .kpi .box .l { color: #b6b6b6; }

/* dashboard */
.kpi { display: flex; gap: 16px; flex-wrap: wrap; margin: 18px 0 4px; }
.kpi .box { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; min-width: 130px; }
.kpi .box .v { font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--primary); }
.kpi .box .l { color: var(--muted); font-size: .82rem; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); font-size: .95rem; }
th { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; }
.bar-cell { background: #ececec; border-radius: 6px; height: 8px; width: 120px; display: inline-block; vertical-align: middle; overflow: hidden; }
.bar-cell > span { display: block; height: 100%; background: var(--accent); }
ul { padding-left: 18px; }
li { margin: 6px 0; }

/* ---- мобильная оптимизация: iOS / Android / ПК ---- */
body { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 600px) {
  /* 16px у полей, чтобы iOS не зумил при фокусе */
  input[type=text], input[type=number], input[type=date], select, textarea { font-size: 16px; }
  .scale .b { width: 40px; height: 40px; font-size: .95rem; }  /* крупный тап */
  .scale { gap: 6px; }
  .card { padding: 22px 16px; overflow-x: auto; }
  .kpi { gap: 10px; }
  .kpi .box { min-width: 0; flex: 1 1 42%; }
  table { font-size: .9rem; }
  th, td { padding: 8px 6px; }
  .bar-cell { width: 70px; }
  .actions .btn { padding: 13px 16px; }
}
@media (min-width: 1100px) {
  .wrap { max-width: 820px; }   /* комфортная ширина на ПК */
}
.bullets { list-style: none; padding: 0; margin: 14px 0 4px; }
.bullets li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--dark); }
.bullets li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* ---- distinctive techno styling ---- */
.mono { font-family: 'Space Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); }
.sec-kicker { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--accent-d); margin-bottom: 8px; }

/* split hero (start page) */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.hero__left, .hero__right { min-width: 0; }  /* не даём grid-колонкам распирать ширину */
.hero__bul li { overflow-wrap: anywhere; }
.hero__left {
  background: #101010; color: #fff; padding: 46px 50px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__left::after { /* тонкая техно-сетка */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px;
}
.wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; color: #fff; position: relative; z-index: 1; }
.wordmark .dotm { color: var(--accent); }
.hero__body { margin-top: auto; position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif; color: #fff; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: .96; letter-spacing: -.02em; margin: .15em 0 .25em;
}
.hero h1 .o { color: var(--accent); }
.hero__sub { color: #b6b6b6; font-size: 1.06rem; max-width: 36ch; }
.hero__bul { list-style: none; padding: 0; margin: 22px 0 0; }
.hero__bul li { position: relative; padding-left: 26px; margin: 11px 0; color: #ededed; font-size: .98rem; }
.hero__bul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pill-mono {
  display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 7px 14px; border-radius: 999px; font-family: 'Space Mono', monospace;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; width: max-content; position: relative; z-index: 1;
}
.hero__arc { position: absolute; right: -90px; bottom: -90px; width: 460px; height: 460px; pointer-events: none; z-index: 0; }

.hero__right { background: #fff; padding: 46px 50px; display: flex; flex-direction: column; justify-content: center; }
.hero__right h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; }
.hero__right .field label { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero__left { padding: 34px 24px 40px; }
  .hero__right { padding: 30px 24px 44px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero__sub { max-width: 100%; }
}
