/* Lynxeon. Оформление «Переписка» (вариант И2, 2026-10-19): главная и страницы услуг — диалог как в Telegram,
   вопросы кнопками, ответ после «печатает…». Остальные страницы — в той же гамме, обычным текстом.
   Шрифт текста — Onest, надпись логотипа — IBM Plex Mono 700. Светлая и тёмная тема: по системе или переключателем. */

/* ---------- Шрифты: наборы знаков по файлам (кириллица, латиница, знак рубля, стрелки) ---------- */
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+20AD-20C0; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-symbols-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+2190, U+2192, U+2194-2199; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-lat-700.woff2") format("woff2");
  font-weight: 700; font-display: swap; }

/* ---------- Цвета: светлая тема, тёмная по переключателю и тёмная по системе ---------- */
:root {
  --bg: #ece6db; --chat: #f2ece2; --paper: #ffffff; --ink: #1d1c1a; --text: #3a3833; --muted: #7a756b;
  --line: #e4ded3; --soft: #f5f1ea; --out: #ffe0cf; --out-ink: #1d1c1a; --accent: #ff5a1f; --accent-hover: #ff7442;
  --accent-text: #c2410c; --ok: #1f9d55; --mark: #ffd23f; --shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  --wallpaper: none;
}
:root[data-theme="dark"] {
  --bg: #0f0f0e; --chat: #161514; --paper: #23221f; --ink: #f5f2eb; --text: #d4cfc4; --muted: #9a958c;
  --line: rgba(255, 255, 255, 0.09); --soft: #2c2b28; --out: #6b2c12; --out-ink: #fff1ea; --accent-text: #ff8a5c;
  --ok: #3ccf72; --mark: #ff5a1f; --shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e; --chat: #161514; --paper: #23221f; --ink: #f5f2eb; --text: #d4cfc4; --muted: #9a958c;
    --line: rgba(255, 255, 255, 0.09); --soft: #2c2b28; --out: #6b2c12; --out-ink: #fff1ea; --accent-text: #ff8a5c;
    --ok: #3ccf72; --mark: #ff5a1f; --shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  }
}
/* Обои чата: маленькие рыси, как узор в Telegram (знак Lynxeon в SVG прямо в адресе картинки) */
:root { --wallpaper: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cg%20fill%3D%22rgba%2829%2C28%2C26%2C0.055%29%22%3E%3Cpath%20transform%3D%22translate%2814%2018%29%20scale%280.3%29%20rotate%28-12%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Cpath%20transform%3D%22translate%2896%2084%29%20scale%280.24%29%20rotate%2816%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%2230%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%22128%22%20r%3D%222.5%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="dark"] { --wallpaper: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cg%20fill%3D%22rgba%28255%2C255%2C255%2C0.04%29%22%3E%3Cpath%20transform%3D%22translate%2814%2018%29%20scale%280.3%29%20rotate%28-12%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Cpath%20transform%3D%22translate%2896%2084%29%20scale%280.24%29%20rotate%2816%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%2230%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%22128%22%20r%3D%222.5%22/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wallpaper: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cg%20fill%3D%22rgba%28255%2C255%2C255%2C0.04%29%22%3E%3Cpath%20transform%3D%22translate%2814%2018%29%20scale%280.3%29%20rotate%28-12%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Cpath%20transform%3D%22translate%2896%2084%29%20scale%280.24%29%20rotate%2816%2050%2050%29%22%20d%3D%22M16%2036%20L27%2017%20L41%2033%20L59%2033%20L73%2017%20L84%2036%20L86%2060%20L97%2076%20L74%2082%20Q50%2099%2026%2082%20L3%2076%20L14%2060%20Z%22/%3E%3Ccircle%20cx%3D%22118%22%20cy%3D%2230%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%22128%22%20r%3D%222.5%22/%3E%3C/g%3E%3C/svg%3E"); } }

/* Цвет ошибок в формах */
:root { --error: #b42318; }
:root[data-theme="dark"] { --error: #ff7a6b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --error: #ff7a6b; } }

/* ---------- Основа ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background 0.2s, color 0.2s; }
a { color: inherit; }
/* height: auto — пропорции картинки задаёт CSS, а не атрибуты width/height (они только резервируют место) */
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
button { font: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 30px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; color: var(--ink); }
.mark .eye { fill: var(--accent); }
.word { font: 700 22px/1 "Plex Mono", monospace; letter-spacing: -0.02em; }
.word .x { color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #1d1c1a; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn--small { padding: 9px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--soft); }

/* ---------- Раскладка с перепиской: чат слева, карточка справа ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-top: 34px; }
.intro { margin-bottom: 20px; }
.intro h1, .page-head h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; font-weight: 760; letter-spacing: -0.04em; }
.intro mark { padding: 0 0.12em; border-radius: 0.12em; background: var(--mark); color: #1d1c1a; white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.intro__sub { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Окно переписки ---------- */
.chat { overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background-color: var(--chat);
  background-image: var(--wallpaper); background-size: 160px 160px; box-shadow: 0 12px 32px rgba(40, 25, 10, 0.08); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #1d1c1a; }
.avatar .mark { width: 26px; height: 26px; color: #fff; }
.face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat__who { display: flex; flex-direction: column; line-height: 1.25; }
.chat__who b { font-size: 16px; }
.online { font-size: 13px; color: var(--ok); }
.online--busy { color: var(--muted); }
.theme { margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme .ico { width: 18px; height: 18px; }
.ico--sun { display: none; }
:root[data-theme="dark"] .ico--sun { display: block; }
:root[data-theme="dark"] .ico--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico--sun { display: block; }
  :root:not([data-theme="light"]) .ico--moon { display: none; }
}
.chat__tg { font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; }

/* Закреплённое сообщение */
.pinned { display: flex; gap: 12px; padding: 9px 18px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14px; }
.pinned__bar { flex: none; width: 3px; border-radius: 2px; background: var(--accent); }
.pinned div { display: flex; flex-direction: column; line-height: 1.35; }
.pinned b { font-size: 13px; color: var(--accent-text); }

.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.day { align-self: center; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; background: rgba(29, 28, 26, 0.1);
  font-size: 12px; color: var(--muted); }
:root[data-theme="dark"] .day { background: rgba(255, 255, 255, 0.08); }

/* ---------- Сообщения ---------- */
.msg { position: relative; max-width: 80%; padding: 11px 15px; border-radius: 18px; font-size: 16.5px; line-height: 1.5; box-shadow: var(--shadow); }
.msg p { margin: 0; }
.msg > * + * { margin-top: 8px !important; }
.msg--in { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; margin-top: 10px; background: var(--out); color: var(--out-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.msg--wide { max-width: 100%; width: 100%; }
.msg ul { margin: 0; padding-left: 20px; }
.msg li + li { margin-top: 4px; }
.msg a { color: var(--accent-text); }
.msg__note { font-size: 14px; color: var(--muted); }
.msg__status { display: flex; gap: 10px; align-items: baseline; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.15); }
.dot--busy { background: var(--muted); box-shadow: 0 0 0 4px rgba(122, 117, 107, 0.15); }
.qa { display: flex; flex-direction: column; gap: 8px; }

/* Нумерованные списки в сообщениях (этапы работы) — кружки с номерами */
.msg ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.msg ol li { position: relative; padding-left: 38px; counter-increment: s; margin: 0; }
.msg ol li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #1d1c1a; font-size: 13px; font-weight: 700; }

/* Ответ «почему доверять»: галочки вместо точек */
.msg--trust ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.msg--trust li { position: relative; padding-left: 30px; }
.msg--trust li + li { margin-top: 0; }
.msg--trust li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: rgba(31, 157, 85, 0.15); }
.msg--trust li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--ok);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.msg--trust p:last-child { font-size: 14px; color: var(--muted); }

/* Наклейка-рысь вместо первого сообщения */
.msg--sticker { padding: 0; background: none; box-shadow: none; display: flex; align-items: flex-end; }
.sticker__lynx { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.3); }
.sticker__lynx .mark { width: 84px; height: 84px; color: #1d1c1a; }
.sticker__lynx .mark .eye { fill: #fff; }
.sticker__label { margin: 0 0 6px -26px !important; padding: 6px 14px; border-radius: 999px; background: var(--mark); color: #1d1c1a;
  font-size: 18px; font-weight: 800; transform: rotate(-8deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); }

/* ---------- Смета ---------- */
.estimate { padding: 12px; border-radius: 14px; background: var(--soft); }
.estimate__step { margin: 2px 4px 8px !important; font-size: 13px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.picks + .estimate__step { margin-top: 14px !important; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.picks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; display: flex; flex-direction: column; padding: 10px 12px 10px 42px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); cursor: pointer; line-height: 1.3; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); }
.pick:has(input:checked) { border-color: var(--accent); }
.pick:has(input:checked)::before { background: var(--accent); border-color: var(--accent); }
.pick:has(input:checked)::after { content: ""; position: absolute; left: 19px; top: 15px; width: 5px; height: 10px;
  border: solid #1d1c1a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); }
/* Тип проекта выбирается один: круглая отметка вместо галочки */
.pick:has(input[type="radio"])::before { border-radius: 50%; }
.pick:has(input[type="radio"]:checked)::after { left: 18px; top: 18px; width: 8px; height: 8px; border: 0; border-radius: 50%;
  background: #1d1c1a; transform: none; }
.pick span { font-size: 15px; font-weight: 600; }
.pick b { font-size: 13px; font-weight: 500; color: var(--muted); }
.pick--base { grid-column: 1 / -1; cursor: default; }
.estimate__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 4px 0 !important; }
.estimate__total span { font-size: 14px; color: var(--muted); }
.estimate__total b { font-size: 28px; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.allprices summary { cursor: pointer; font-weight: 650; color: var(--accent-text); }
.allprices h4 { margin: 12px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.allprices ul { list-style: none; padding: 0; columns: 2; column-gap: 24px; }
.allprices li { break-inside: avoid; margin: 0; }
.allprices a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 15px; }
.allprices a:hover span { color: var(--accent-text); }
.allprices b { font-weight: 600; white-space: nowrap; }

/* ---------- Работа отдельным сообщением: картинка с подписью ---------- */
.msg--photo { width: min(560px, 86%); max-width: 86%; padding: 4px 4px 12px; }
.wcard { display: block; overflow: hidden; border-radius: 14px 14px 6px 6px; background: var(--soft); }
.wcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.msg--photo > p { padding: 0 10px; }
.wcard__name { margin-top: 10px !important; font-size: 17px; font-weight: 700; }
.wcard__name a { color: var(--ink); text-decoration: none; }
.wcard__name a:hover { color: var(--accent-text); }
.wcard__price { margin-top: 4px !important; font-size: 14px; color: var(--muted); }
.demo { font-size: 14px; font-weight: 650; color: var(--accent-text); }

/* Пересланный отзыв заказчика */
.msg--fwd { border-left: 3px solid var(--accent); }
.fwd__from { display: block; font-size: 13px; font-weight: 650; color: var(--accent-text); }
.fwd__text { margin-top: 4px !important; font-size: 15.5px; }
.fwd__sign { font-size: 13px; color: var(--muted); }

/* «Печатает…» */
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--paper); box-shadow: var(--shadow); }
.typing[hidden] { display: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Скрипт включён: ответы прячутся до вопроса. Без скрипта все ответы видны сразу */
.chat.is-js .qa { display: none; }
.chat.is-js .qa.is-open { display: flex; }
.chat.is-js .qa.is-open:not(.is-answered) > .msg--in { display: none; }
.chat:not(.is-js) .keyboard { display: none; }

/* Кнопки-вопросы, как клавиатура бота */
.keyboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 22px 14px; }
.keyboard button, .keyboard__final { padding: 11px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(6px); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  box-shadow: var(--shadow); text-decoration: none; }
.keyboard button:hover { background: var(--paper); color: var(--accent-text); }
.keyboard .is-primary, .keyboard .is-more, .keyboard__final { grid-column: 1 / -1; background: var(--accent); color: #1d1c1a; }
.keyboard .is-primary:hover, .keyboard .is-more:hover, .keyboard__final:hover { background: var(--accent-hover); color: #1d1c1a; }
/* Когда видна «А ещё что сделали?», оранжевая только она */
.keyboard .is-more:not([hidden]) ~ .is-primary { background: color-mix(in srgb, var(--paper) 72%, transparent); color: var(--ink); }
.keyboard button[hidden], .keyboard__final[hidden] { display: none; }

/* Поле ввода: текст копируется и открывается Telegram */
.composer { display: flex; gap: 10px; padding: 12px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--soft);
  color: var(--ink); font: inherit; font-size: 15px; }
.composer input::placeholder { color: var(--muted); }
.composer input:focus { outline: 2px solid var(--accent); }
.send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #1d1c1a;
  font-size: 20px; font-weight: 700; cursor: pointer; }
.chat__hint { margin: 0; padding: 0 18px 12px; background: var(--paper); font-size: 13px; color: var(--muted); text-align: center; }
.chat__hint b { color: var(--ok); font-weight: 600; }

/* ---------- Карточка справа: профиль на главной, цена на странице услуги ---------- */
.profile { position: sticky; top: 92px; display: grid; gap: 16px; }
.profile__card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 20px 18px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.photo { display: block; width: 120px; height: 120px; margin-bottom: 10px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--accent); }
.profile__name { font-size: 22px; letter-spacing: -0.02em; }
.profile__role { font-size: 14px; color: var(--muted); }
.profile__edu { font-size: 13px; color: var(--muted); }
.profile .online { margin-bottom: 14px; }
.checks { list-style: none; width: 100%; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: left;
  display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 5px; background: rgba(31, 157, 85, 0.15); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--ok);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plinks { width: 100%; display: grid; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); text-align: left; }
.plinks a { display: flex; justify-content: space-between; padding: 8px 4px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.plinks a:hover { background: var(--soft); }
.plinks span { color: var(--muted); }
.profile__card--svc { align-items: stretch; text-align: left; }
.profile__label { font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.profile__price { margin: 4px 0 0; font-size: 32px; letter-spacing: -0.03em; }
.profile__term { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.profile__card--svc .checks { margin-bottom: 18px; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Другие услуги раздела — под карточкой */
.side-list { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.side-list h2 { margin-bottom: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; text-decoration: none; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover span { color: var(--accent-text); }
.side-list b { font-weight: 600; white-space: nowrap; }

/* ---------- Обычные страницы: работы, статьи, «Обо мне», список услуг ---------- */
.page-head { padding: 34px 0 24px; }
.page-head .lead { max-width: 64ch; margin: 14px 0 0; font-size: 19px; color: var(--text); }
.card { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.prose { max-width: 72ch; font-size: 17px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 0.5em; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3 { margin: 1.4em 0 0.4em; font-size: 20px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--accent-text); }
.prose blockquote { padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }

/* Список услуг */
.groups { display: grid; gap: 18px; }
.group h2 { margin-bottom: 10px; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: baseline; padding: 14px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.rows li:last-child a { border-bottom: 0; }
.rows a:hover .rows__name { color: var(--accent-text); }
.rows__name { font-size: 18px; font-weight: 600; }
.rows__term { font-size: 14px; color: var(--muted); }
.rows__price { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Работы плитками */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; text-decoration: none; transition: border-color 0.15s; }
.case-card:hover { border-color: var(--accent); }
.case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--soft); }
.case-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.case-card h2 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.case-card p { margin: 0; color: var(--text); font-size: 15px; }
.case-card b { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Страница работы */
.shot { overflow: hidden; margin-bottom: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--soft); }
.shot img { width: 100%; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; }
.facts li { padding: 10px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.facts span { display: block; font-size: 12px; color: var(--muted); }
.facts b { font-weight: 650; }
.review { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--paper); }
.review p { margin: 6px 0 0; }

/* Статьи */
.articles { display: grid; gap: 14px; }
.article-card { display: block; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; }
.article-card:hover { border-color: var(--accent); }
.article-card h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.article-card p { margin: 8px 0 0; color: var(--text); }
.article-card time { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* «Обо мне» */
.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.about .photo { width: 200px; height: 200px; }

/* Призыв написать — в виде сообщения */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 24px 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; }
.cta h2 { font-size: 24px; letter-spacing: -0.02em; }
.cta p { margin: 4px 0 0; color: var(--text); }

/* Отступ между карточками в колонке */
.spaced { margin-top: 20px; }
.intro__sub p, .page-head .lead p { margin: 0; }

/* Страница «не найдено» */
.notfound { max-width: 640px; margin: 48px auto 0; }
.notfound h1 { font-size: 24px; letter-spacing: -0.02em; }
.notfound .chat__body { padding: 24px; }
.notfound__links { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 24px 24px; }

/* ---------- Заявка: поля формы (страница заявки и форма в переписке) ---------- */
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field > label { font-size: 14px; font-weight: 600; color: var(--text); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--soft); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field__error, .form-error { margin: 0; font-size: 14px; color: var(--error); }
.form-error { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--error) 12%, transparent); }
.field__error[hidden], .form-error[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--accent-text); }
/* Поле-ловушка для ботов: за пределами экрана, человек его не видит */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form--page .btn { justify-self: start; }
/* Политика и согласие: пунктов много, заголовки разделов скромнее, чем в статьях */
.legal h2 { margin-top: 1.3em; font-size: 20px; }

/* Форма в переписке — карточкой-сообщением; кнопки выбора под сообщением, как в Telegram */
.msg--form { align-self: flex-start; width: min(440px, 100%); max-width: 100%; padding: 16px; background: var(--paper);
  border-bottom-left-radius: 6px; }
.msg--form > * + * { margin-top: 0 !important; }
.inline-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inline-kb button { padding: 10px 12px; border: 0; border-radius: 12px; background: var(--soft); color: var(--accent-text);
  font-size: 15px; font-weight: 650; cursor: pointer; }
.inline-kb button:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, var(--soft)); }
.inline-kb button:disabled { cursor: default; opacity: 0.55; }
.inline-kb button.is-chosen { opacity: 1; background: var(--accent); color: #1d1c1a; }
.estimate__send { margin-top: 12px; }

/* Смета на странице заявки и на странице заявки для заказчика */
.estimate-sum ul { list-style: none; margin: 0; padding: 0; }
.estimate-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.estimate-sum li b { font-weight: 600; white-space: nowrap; }
.estimate-sum__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; }
.estimate-sum__total span { font-size: 14px; color: var(--muted); }
.estimate-sum__total b { font-size: 24px; font-weight: 780; letter-spacing: -0.03em; white-space: nowrap; }

/* Страница заявки для заказчика */
.narrow { max-width: 860px; }
.lead-card { display: grid; gap: 22px; }
.lead-card .estimate-sum { background: var(--soft); border: 0; }
.lead-status { display: flex; gap: 12px; align-items: baseline; margin: 0; font-size: 18px; font-weight: 600; }
.lead-facts { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.lead-facts dt { font-size: 14px; color: var(--muted); }
.lead-facts dd { margin: 0; overflow-wrap: anywhere; }

.spaced-sm { margin-top: 8px; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Подвал ---------- */
.foot { margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink); }

/* ---------- Планшет: карточка под чатом ---------- */
@media (max-width: 960px) {
  .layout, .two { grid-template-columns: 1fr; }
  .profile { position: static; }
  .nav { display: none; }
  .top .btn--small { margin-left: auto; }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .top__row { height: 60px; gap: 12px; padding: 0 4px; }
  .word { font-size: 19px; }
  .mark { width: 26px; height: 26px; }
  .layout { padding-top: 22px; gap: 18px; }
  .intro, .page-head { padding-left: 4px; padding-right: 4px; }
  .chat { border-radius: 18px; }
  .chat__tg { display: none; }
  .pinned { padding: 8px 14px; font-size: 13px; }
  .chat__body { padding: 16px 10px 20px; }
  .msg { max-width: 88%; font-size: 15.5px; }
  .msg--wide { max-width: 100%; }
  .msg--photo { width: 92%; max-width: 92%; }
  .sticker__lynx { width: 108px; height: 108px; }
  .sticker__lynx .mark { width: 68px; height: 68px; }
  .picks, .picks--3 { grid-template-columns: 1fr; }
  .allprices ul { columns: 1; }
  .keyboard { padding: 0 10px 12px; }
  .keyboard button { font-size: 14px; padding: 10px 8px; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .cases { grid-template-columns: 1fr; }
  .rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .rows__term { display: none; }
  .about { grid-template-columns: 1fr; }
  .about .photo { width: 140px; height: 140px; }
  .inline-kb { grid-template-columns: 1fr; }
  /* Узкий экран: меньше отступов у формы в переписке */
  .msg--form { padding: 14px 12px; }
  .field input[type="text"], .field textarea { padding: 12px; }
  .lead-facts { grid-template-columns: 1fr; gap: 2px; }
  .lead-facts dd + dt { margin-top: 10px; }
}

