/* ЦенаВопроса — светлый деловой стиль. Крупный шрифт и высокий контраст: сайт рассчитан
   в том числе на людей старшего возраста. */

:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #0F2342;
  --ink-2: #3F5069;
  --muted: #62728A;
  --line: #DCE3EC;
  --line-2: #EAEFF5;
  --primary: #1D5BBF;
  --primary-dark: #154A9C;
  --primary-soft: #E7EFFB;
  --navy: #0F2342;
  --green: #137A5A;
  --green-soft: #E3F4EC;
  --amber: #8F5600;
  --amber-soft: #FFF1D6;
  --red: #B3261E;
  --red-soft: #FDEBE9;
  --gold: #C98500;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 35, 66, .06), 0 8px 24px -12px rgba(15, 35, 66, .14);
  --shadow-lg: 0 2px 4px rgba(15, 35, 66, .06), 0 24px 48px -20px rgba(15, 35, 66, .28);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-family: var(--serif); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid #7FA9EE; outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.wrap.mid { width: min(960px, 100% - 40px); }

/* ---------- шапка ---------- */
.demo-bar { background: var(--navy); color: #DCE6F7; font-size: .88rem; text-align: center; padding: 7px 16px; }
.demo-bar b { color: #fff; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo svg { display: block; }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.logo-text span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { white-space: nowrap;
  color: var(--ink-2); text-decoration: none; padding: 9px 13px; border-radius: 9px; font-weight: 500; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions form { margin: 0; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 4px 10px 4px 4px; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); }
.user-chip:hover { background: var(--bg); }
.dot-badge { background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 10px; padding: 0 6px; }
.burger { display: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 11px 22px; border-radius: 11px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 91, 191, .7); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: #C3CFDF; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0E6247; color: #fff; }
.btn-danger { background: var(--surface); color: var(--red); border-color: #E7B6B2; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; min-height: 54px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: .92rem; min-height: 38px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- карточки и сетка ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 18px 20px; }
.card h3 { margin-bottom: .35em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

main { min-height: 60vh; }
.layout-ask { grid-template-columns: 1fr 300px; align-items: start; }
.layout-cab { grid-template-columns: 2fr 1fr; align-items: start; }
.page { padding: 38px 0 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { font-size: .93rem; margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- уведомления ---------- */
.flashes { margin-top: 20px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 11px; margin-bottom: 12px; border: 1px solid; font-size: .98rem; }
.alert svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.alert.ok { background: var(--green-soft); border-color: #B6DFCD; color: #0B4F3A; }
.alert.error { background: var(--red-soft); border-color: #F0C2BE; color: #7C1A14; }
.alert.warn { background: var(--amber-soft); border-color: #F0D79B; color: #6B4000; }
.alert.info { background: var(--primary-soft); border-color: #C2D6F5; color: #153C78; }

/* ---------- формы ---------- */
.field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #BFCBDB; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 91, 191, .15); }
input:disabled { background: var(--bg); color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.price-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.price-input { position: relative; max-width: 220px; }
.price-input input { padding-right: 40px; font-weight: 600; font-size: 1.15rem; }
.price-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.chip { font: inherit; font-weight: 600; font-size: .95rem; border: 1.5px solid #BFCBDB; background: #fff; color: var(--ink-2); padding: 8px 16px; border-radius: 30px; cursor: pointer; min-height: 40px; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg a { padding: 9px 18px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.seg a.on { background: var(--primary); color: #fff; }

/* ---------- значки и статусы ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; padding: 4px 11px; border-radius: 30px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.open { background: var(--amber-soft); color: var(--amber); }
.pill.in_work { background: var(--primary-soft); color: var(--primary-dark); }
.pill.accepted { background: var(--green-soft); color: var(--green); }
.pill.paid { background: #E7EAF0; color: #3F4B5F; }
.pill.cancelled, .pill.rejected, .pill.inactive { background: #EEF0F3; color: #6C7787; }
.pill.pending { background: var(--amber-soft); color: var(--amber); }
.pill.approved { background: var(--green-soft); color: var(--green); }
.verified { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: .92rem; }
.verified svg { width: 18px; height: 18px; }
.tag { display: inline-block; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600; padding: 3px 11px; border-radius: 8px; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #D3DAE4; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.md { width: 48px; height: 48px; font-size: 1.05rem; }
.avatar.green { background: var(--green); }
.avatar.navy { background: var(--navy); }
.user-chip .avatar { width: 32px; height: 32px; }

/* ---------- главная страница ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, #EEF3FA 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; padding: 40px 0 76px; }
.hero-text { max-width: 760px; }
.hero-text .lead { margin-left: auto; margin-right: auto; }
.hero-cta, .hero-points { justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .88rem; padding: 6px 14px; border-radius: 30px; margin-bottom: 20px; }
.eyebrow svg { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 1.22rem; color: var(--ink-2); line-height: 1.55; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: var(--green); }

.section { padding: 76px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section.navy { background: var(--navy); color: #DCE6F7; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section.navy .section-head p { color: #B7C7E2; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -17px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; box-shadow: 0 0 0 5px var(--bg); }
.section.alt .step::before { box-shadow: 0 0 0 5px #fff; }
.step h3 { margin-top: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .98rem; }

.feature { padding: 4px 0; }
.ico { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ico svg { width: 28px; height: 28px; }
.ico.green { background: var(--green-soft); color: var(--green); }
.section.navy .ico { background: rgba(255, 255, 255, .1); color: #fff; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .99rem; }
.section.navy .feature p { color: #B7C7E2; }

.topic { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.topic:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.topic .ico { margin: 0; flex-shrink: 0; width: 48px; height: 48px; }
.topic h3 { margin: 0 0 3px; font-size: 1.05rem; }
.topic p { margin: 0; font-size: .93rem; color: var(--muted); }

.price-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 1.05rem; }
.calc-line:last-child { border-bottom: none; font-weight: 700; font-size: 1.15rem; }
.calc-line b { font-family: var(--serif); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--primary); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

.cta-band { background: linear-gradient(135deg, var(--primary) 0%, #123F86 100%); color: #fff; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #CFE0FA; font-size: 1.08rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #E7EFFB; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- эксперты ---------- */
.expert-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.expert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #B5C7E3; color: inherit; }
.expert-top { display: flex; gap: 14px; align-items: center; }
.expert-top h3 { margin: 0; font-size: 1.08rem; }
.expert-card .spec { color: var(--ink-2); font-size: .97rem; margin: 0; }
.demo-flag { background: var(--amber-soft); color: var(--amber); font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- кабинет ---------- */
.stat { padding: 20px 22px; }
.stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.stat .cap { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.stat.accent { background: var(--navy); border-color: var(--navy); }
.stat.accent .num { color: #fff; }
.stat.accent .cap { color: #B7C7E2; }
.qlist { display: flex; flex-direction: column; }
.qrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 18px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; align-items: center; }
.qrow:last-child { border-bottom: none; }
.qrow:hover { background: #F8FAFD; color: inherit; }
.qrow .t { font-weight: 600; font-size: 1.05rem; margin-bottom: 3px; color: var(--ink); }
.qrow .m { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.qrow .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qrow .price { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: #B5C3D8; margin-bottom: 10px; }
.empty h3 { color: var(--ink); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { padding: 12px 18px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--primary); }
.tabs a.on { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tabs .count { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: .8rem; padding: 0 8px; min-width: 24px; text-align: center; }
.tabs a.on .count { background: var(--primary-soft); border-color: transparent; }
.action-card { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.action-card:hover { color: inherit; border-color: var(--primary); }
.action-card .ico { margin: 0; flex-shrink: 0; }
.action-card h3 { margin: 0; font-size: 1.05rem; }
.action-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- страница вопроса ---------- */
.q-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.q-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.q-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.q-text p { margin-bottom: .8em; }
.progress { display: flex; align-items: center; margin: 4px 0 6px; }
.pstep { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pstep .pt { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #C3CFDF; display: flex; align-items: center; justify-content: center; z-index: 1; color: transparent; }
.pstep .pt svg { width: 14px; height: 14px; }
.pstep::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #C3CFDF; }
.pstep:first-child::before { display: none; }
.pstep.done .pt { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.done::before, .pstep.now::before { background: var(--green); }
.pstep.now .pt { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(29, 91, 191, .16); }
.pstep.done, .pstep.now { color: var(--ink); }

.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #FAFBFD; }
.chat-head h2 { font-family: var(--font); font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.chat-head h2 svg { width: 22px; height: 22px; color: var(--primary); }
.chat-log { padding: 22px; display: flex; flex-direction: column; gap: 12px; max-height: 520px; min-height: 220px; overflow-y: auto; background: #F7F9FC; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.msg .bubble { padding: 11px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .who { font-size: .8rem; color: var(--muted); padding: 0 6px; }
.msg.theirs { align-self: flex-start; }
.msg.theirs .bubble { border-bottom-left-radius: 5px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 5px; }
.msg.system { align-self: center; max-width: 92%; }
.msg.system .bubble { background: transparent; border: none; color: var(--muted); font-size: .88rem; text-align: center; padding: 2px 8px; }
.chat-form { padding: 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.chat-form .row { align-items: flex-end; flex-wrap: nowrap; }
.chat-form textarea { min-height: 52px; max-height: 160px; flex: 1; }
.chat-error { color: var(--red); font-size: .92rem; margin-top: 8px; display: none; }
.chat-error.on { display: block; }
.chat-note { padding: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); background: #FAFBFD; display: flex; gap: 12px; align-items: center; }
.chat-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.side-list li:last-child { border-bottom: none; }
.side-list li span:first-child { color: var(--muted); }
.side-list li b { text-align: right; }
.side-list li.total { font-size: 1.05rem; }
.rate-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; }
.rate-stars label { font-size: 2.1rem; color: #CBD4E1; cursor: pointer; line-height: 1; margin: 0; padding: 2px; }
.rate-stars input:checked ~ label, .rate-stars label:hover, .rate-stars label:hover ~ label { color: var(--gold); }
.rate-stars input:focus-visible + label { outline: 3px solid #7FA9EE; border-radius: 6px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: none; }

/* ---------- вход / регистрация ---------- */
.auth { max-width: 520px; margin: 0 auto; }
.auth .card { padding: 34px; }
.auth h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-alt { text-align: center; margin-top: 20px; color: var(--muted); }
.expert-fields { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 22px; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--primary-soft); border-radius: 12px; padding: 16px 18px; color: #153C78; font-size: .96rem; }
.tip svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; background: var(--bg); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; user-select: all; }

/* ---------- таблица (админ) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .84rem; padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.inline-form { display: inline; margin: 0; }

/* ---------- подвал ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 34px; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-in h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-family: var(--font); }
.footer-in ul { list-style: none; padding: 0; margin: 0; }
.footer-in li { margin-bottom: 8px; }
.footer-in a { color: var(--ink-2); text-decoration: none; }
.footer-in a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.draft-note { background: var(--amber-soft); border: 1px solid #F0D79B; color: #6B4000; border-radius: 11px; padding: 14px 18px; margin-bottom: 26px; font-size: .96rem; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-in { padding: 44px 0 56px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .q-layout, .layout-ask, .layout-cab { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  }
@media (max-width: 820px) {
  .burger { display: inline-flex; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
  .burger svg { width: 24px; height: 24px; }
  .header-in { flex-wrap: wrap; gap: 0 12px; padding: 10px 0; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; padding: 10px 0 4px; order: 3; }
  .site-header.open .header-actions { display: flex; order: 4; padding: 8px 0 12px; margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .card { padding: 20px; }
  .cta-band { padding: 30px 24px; }
  .qrow { grid-template-columns: 1fr; }
  .qrow .r { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; width: 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .chat-form .row { flex-wrap: wrap; }
  .chat-form .btn { width: 100%; }
  .auth .card { padding: 24px; }
  .page { padding: 26px 0 56px; }
  .pstep { font-size: .72rem; }
}
@media print { .site-header, .site-footer, .demo-bar, .chat-form { display: none; } }

/* ---------- админ: цифры, графики, лента ---------- */
.sec-title { font-size: 1.25rem; margin: 34px 0 14px; font-family: var(--serif); }
.sec-title:first-child { margin-top: 0; }
.stat .sub { font-size: .88rem; color: var(--ink-2); margin-top: 8px; font-weight: 600; }
.stat .hintline { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.stat.accent .sub { color: #DCE6F7; }
.stat.accent .hintline { color: #9FB4D6; }
.chart-card { padding: 20px 22px; }
.chart-total { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: #B5C3D8; stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--primary); }
.chart .hit { fill: transparent; }
.chart .col:hover .hit { fill: rgba(29, 91, 191, .08); }
.chart .col:hover .bar { fill: var(--primary-dark); }
.tview { margin-top: 10px; font-size: .9rem; }
.tview summary { cursor: pointer; color: var(--primary-dark); font-weight: 600; }
.tview .table { margin-top: 8px; }
.ev { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.ev:last-child { border-bottom: none; }
.ev-i { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .95rem; }
.ev-t { font-size: .96rem; overflow-wrap: anywhere; }
.ev-t a { color: var(--ink); text-decoration: none; }
.ev-t a:hover { color: var(--primary); text-decoration: underline; }
.tabs { overflow-x: auto; flex-wrap: nowrap; }
.tabs a { white-space: nowrap; }

/* ---------- кнопка «Показать пароль» ---------- */
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: .9rem; font-weight: 600; color: var(--primary-dark); background: transparent; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 38px; }
.pw-toggle:hover { background: var(--primary-soft); }


/* ---------- меняющиеся плашки на главной ---------- */
.ticker-wrap { width: 100%; max-width: 1040px; }
.ticker { position: relative; width: 100%; height: 104px; border-radius: 20px; overflow: hidden; background: linear-gradient(110deg, #0F2342 0%, #17408F 55%, #1D5BBF 100%); box-shadow: 0 18px 40px -16px rgba(21, 74, 156, .65); }
.ticker::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); background-size: 250% 100%; animation: ticker-shine 5s linear infinite; pointer-events: none; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 28px; color: #fff; font-weight: 700; font-size: 1.32rem; line-height: 1.3; letter-spacing: -.005em; opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; text-align: left; }
.ticker-item.on { opacity: 1; transform: none; }
.ticker-item.out { transform: translateX(-40px); }
.ticker-item svg { width: 46px; height: 46px; padding: 10px; flex-shrink: 0; color: #fff; background: #19A57A; border-radius: 50%; box-shadow: 0 0 0 6px rgba(25,165,122,.28); }
.ticker-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ticker-dots i { width: 9px; height: 9px; border-radius: 50%; background: #BFCBDB; transition: all .3s; }
.ticker-dots i.on { width: 26px; border-radius: 6px; background: var(--primary); }
@keyframes ticker-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@media (max-width: 640px) { .ticker { height: 150px; border-radius: 16px; } .ticker-item { font-size: 1.02rem; gap: 12px; padding: 0 16px; } .ticker-item svg { width: 38px; height: 38px; padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .ticker::before { animation: none; } .ticker-item { transition: none; } }

/* ---------- новые элементы ---------- */
.footer-req { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 18px 0; margin-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-req b { font-weight: 700; color: var(--ink); }
.req-list { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 0; }
.req-list dt { color: var(--muted); font-weight: 600; }
.req-list dd { margin: 0; }
@media (max-width: 640px) { .req-list { grid-template-columns: 1fr; gap: 2px; } .req-list dd { margin-bottom: 12px; } }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { margin-top: 4px; }
.choice small { display: block; color: var(--muted); margin-top: 2px; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.example .ex-q, .example .ex-a { border-radius: 12px; padding: 14px 18px; margin-top: 14px; }
.example .ex-q { background: var(--bg); }
.example .ex-a { background: var(--green-soft); }
.example .ex-q b, .example .ex-a b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.example-card { display: block; text-decoration: none; color: inherit; }
.example-card h3 { margin: 8px 0; }
.review-card p { margin: 8px 0; }
.q-price { margin: 14px 0 0; color: var(--ink-2); }
.accent-card { border-color: #C2D6F5; background: var(--primary-soft); }
.dispute-card blockquote { margin: 0; padding: 12px 16px; background: var(--bg); border-left: 3px solid var(--amber); border-radius: 8px; }
.dispute-card blockquote.mine { border-left-color: var(--primary); }
.decline-box summary { list-style: none; cursor: pointer; text-align: center; }
.decline-box summary::-webkit-details-marker { display: none; }
.decline-box form { margin-top: 12px; }
.price-box-det summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }

/* ---------- вложения в чате ---------- */
.attach { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(15,35,66,.07); color: inherit; text-decoration: none; word-break: break-word; }
.msg.mine .attach { background: rgba(255,255,255,.18); }
.bubble > .attach:first-child { margin-top: 0; }
.attach-img { flex-direction: column; align-items: flex-start; }
.attach-img img { max-width: 100%; max-height: 260px; border-radius: 8px; display: block; }
.attach-name small { opacity: .7; }
.attach-ic { font-size: 1.3rem; }
.attach-btn { cursor: pointer; padding-left: 14px; padding-right: 14px; }
.attach-chosen { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }

/* ---------- админка: чаты ---------- */
.chat-rows { display: flex; flex-direction: column; }
.chat-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.chat-row:last-child { border-bottom: 0; }
.chat-row:hover { background: var(--bg); }
.cr-main { min-width: 0; flex: 1; }
.cr-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.cr-last { margin-top: 4px; color: var(--ink-2); }
.cr-side { text-align: right; flex-shrink: 0; }
.flag-tag { background: var(--red-soft); color: #7C1A14; }
.chat-filters .field label { font-size: .85rem; }
.tabs { flex-wrap: wrap; }
