/* Страница самопродажи и демо. Шрифт Manrope — свой (fonts/, лицензия OFL). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #0e3b30;
  --green-2: #155244;
  --sand: #c9a86a;
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #15201c;
  --ink-2: #3c4844;
  --muted: #55625d;
  --faint: #6b7773;
  --line: #e6e1d6;
  --line-2: #cfc8b8;
  --line-3: #efebe2;
  --on-green: #f7f5f0;
  --on-green-2: #d5dfdb;
  --ok: #2e7d5b;
  --ok-bg: #e9f3ee;
  --note-bg: #f3eee2;
  --note-ink: #4a3f25;
  --error: #b42318;
  --radius: 16px;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:hover { color: var(--green-2); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }

.page { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--paper); }
@media (min-width: 600px) {
  body { background: #ece8df; }
  .page { box-shadow: 0 0 0 1px var(--line); }
}

/* --- шапка --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter); background: var(--green); color: var(--on-green);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { flex: none; }
.brand span { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.back {
  display: flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(247, 245, 240, 0.1); color: var(--on-green);
}
.back:hover { color: var(--on-green); background: rgba(247, 245, 240, 0.18); }
.topbar-title { flex: 1; font-size: 17px; font-weight: 700; }
.lang {
  display: flex; gap: 4px; padding: 3px; border-radius: 999px;
  background: rgba(247, 245, 240, 0.1);
}
.lang button {
  border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600;
  background: transparent; color: #dde6e2;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--green); }

/* --- первый экран --- */
.hero {
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px var(--gutter) 40px; background: var(--green); color: var(--on-green);
}
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sand);
}
h1 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--on-green-2); }

.chat {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border-radius: 20px; background: var(--paper); color: var(--ink);
}
.bubble { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.bubble.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #e4eee9; }
.bubble.bot {
  align-self: flex-start; border-radius: 16px 16px 16px 4px;
  background: var(--card); border: 1px solid var(--line);
}
.file {
  align-self: flex-start; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line);
}
.file-icon {
  flex: none; width: 40px; height: 48px; border-radius: 8px; background: var(--green);
  color: var(--sand); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.file-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-text strong { font-size: 14px; overflow-wrap: anywhere; }
.file-text span { font-size: 12px; color: var(--muted); }

.actions { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: block; width: 100%; padding: 16px; border-radius: 14px; border: 0;
  text-align: center; font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-gold { background: var(--sand); color: var(--ink); }
.btn-gold:hover { color: var(--ink); background: #d3b47a; }
.btn-ghost { border: 1px solid rgba(247, 245, 240, 0.35); color: var(--on-green); font-weight: 600; }
.btn-ghost:hover { color: var(--on-green); background: rgba(247, 245, 240, 0.08); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { color: var(--on-green); background: var(--green-2); }
.btn-light {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 600;
}
.btn-light:hover { color: var(--ink); background: #fbfaf7; }

/* --- разделы --- */
.section { display: flex; flex-direction: column; gap: 16px; padding: 32px var(--gutter) 8px; }
h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.muted { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.small { margin: 0; font-size: 12px; line-height: 1.5; color: var(--faint); }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--green);
  color: var(--sand); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stack strong { font-size: 16px; }
.stack span { font-size: 14px; line-height: 1.45; color: var(--muted); }

.features { display: flex; flex-direction: column; gap: 10px; }
.feature {
  display: flex; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.feature svg { flex: none; color: var(--green-2); }
.feature strong { font-size: 15px; }

.card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line);
}
.status { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: #2e8b57; }
.card-body { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair span {
  padding: 12px; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--card);
}
.pair span:first-child { border-color: var(--green); background: var(--green); color: var(--on-green); font-weight: 700; }

.price-card {
  margin: 32px var(--gutter) 0; padding: 24px 20px; border-radius: 24px;
  background: var(--green); color: var(--on-green); display: flex; flex-direction: column; gap: 16px;
}
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-row strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price-row span { font-size: 15px; color: var(--on-green-2); }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: center; }
.check svg { flex: none; color: #7fc8a4; }
.offer { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sand); font-weight: 600; }

details {
  padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
summary {
  cursor: pointer; list-style: none; font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-weight: 600; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* --- форма заявки --- */
.form {
  margin: 32px var(--gutter) 0; padding: 24px 20px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper);
  font-size: 16px; font-weight: 500; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--card); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; font-size: 14px; color: var(--error); font-weight: 600; }
.done {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px;
  background: var(--ok-bg); border: 1px solid #bfdccb;
}
.done strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }

.footer {
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--faint);
}
.footer strong { color: var(--ink); }

/* --- демо --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 13px;
  font-size: 14px; font-weight: 600; background: var(--card); color: var(--ink);
}
.chip[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--on-green); }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.result { display: flex; flex-direction: column; gap: 14px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 32px; height: 32px; border-radius: 999px; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line-2); padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--sand); }
.sw-green { background: #0e3b30; }
.sw-blue { background: #1f3864; }
.sw-wine { background: #7a1f2b; }
.sw-graphite { background: #2f3a40; }

.kp { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.kp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff; background: var(--green); transition: background 0.2s ease;
}
.kp-head small { display: block; font-size: 12px; opacity: 0.8; }
.kp-head strong { font-size: 16px; }
.kp-logo {
  flex: none; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.kp-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.kp-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.kp-line small { display: block; color: var(--faint); font-size: 13px; }
.kp-line strong { white-space: nowrap; }
.rule { height: 1px; background: var(--line); }
.kp-sub { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.kp-total { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 800; }
.note {
  margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--note-bg);
  font-size: 13px; line-height: 1.45; color: var(--note-ink);
}
.reply { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }
.cta {
  margin-top: 6px; padding: 20px; border-radius: 20px; background: var(--green);
  color: var(--on-green); display: flex; flex-direction: column; gap: 12px;
}
.cta strong { font-size: 18px; line-height: 1.3; }
.field-demo textarea { background: var(--card); }
main.section { padding-bottom: 40px; }

.spinner {
  display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgba(247, 245, 240, 0.4); border-top-color: var(--on-green);
  border-radius: 999px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .btn, .kp-head { transition: none; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  h1 { font-size: 28px; }
}
