/* Сарафаныч: изумрудный основной, жёлтый для главных кнопок */
:root {
  --green: #0B7A53; --green-dark: #075239; --green-tint: #E3F3EC;
  --yellow: #FFD23F; --yellow-tint: #FFF3C4; --yellow-ink: #5C4400;
  --ink: #151A23; --muted: #5B6472; --line: #DCE0E6; --bg: #F4F5F7; --card: #FFFFFF;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #E9EBEF; color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; padding-bottom: 76px; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1 { margin: 0; font-size: 22px; line-height: 1.25; }
h2 { margin: 0 0 8px; font-size: 17px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.pad { padding: 16px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--green); color: #fff; }
.bar h1 { font-size: 20px; color: #fff; }
.bar p { margin: 2px 0 0; font-size: 13px; color: #E9F7F1; }
.bar .back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px; color: #fff; font-size: 24px; text-decoration: none; }
.bar .side { margin-left: auto; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.card.hot { border: 2px solid var(--green); }
.note { background: var(--yellow-tint); color: var(--yellow-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.flash { margin: 12px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--yellow-tint); color: var(--yellow-ink); font-weight: 600; font-size: 14px; }
.tag { font-size: 12px; font-weight: 600; color: var(--green-dark); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: #E7F4EC; color: #166534; }
.badge.wait { background: var(--green-tint); color: var(--green-dark); }
.badge.hot { background: var(--yellow); color: var(--ink); }
.badge.early { background: var(--yellow-tint); color: var(--yellow-ink); }
.avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font-weight: 700; }
.avatar.big { width: 72px; height: 72px; font-size: 24px; }
.price { font-size: 18px; font-weight: 700; white-space: nowrap; }
.phone { font-size: 24px; font-weight: 700; letter-spacing: .5px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); filter: brightness(.96); }
.btn.green { background: var(--green); color: #fff; }
.btn.soft { background: var(--green-tint); color: var(--green-dark); min-height: 44px; font-size: 14px; }
.btn.line { background: transparent; color: var(--green-dark); min-height: 44px; font-size: 14px; }
.btn.small { width: auto; min-height: 44px; font-size: 14px; border-radius: 12px; }
.btn.danger { background: transparent; color: #9B1C1C; border: 1px solid #9B1C1C; min-height: 44px; font-size: 14px; }

label, .label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
label span, .label span { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; color: var(--ink); cursor: pointer; }
.chips input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.stars input { position: absolute; opacity: 0; }
.stars label { margin: 0; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 28px; color: #B8BEC8; cursor: pointer; }
.stars input:checked ~ label { color: #B88A00; background: var(--yellow-tint); border-color: #B88A00; }
.stars input:focus-visible + label { outline: 3px solid var(--yellow); }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cats a { display: flex; align-items: center; min-height: 64px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.cats a.cat-other { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; border: 1.5px dashed #9FB8AC; background: #FAFCFB; }
.cats a.cat-other small { font-weight: 400; font-size: 14px; color: var(--muted, #5B6B63); }
.list > * + * { border-top: 1px solid var(--line); }
.list .item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.plus { color: #166534; font-weight: 700; white-space: nowrap; }
.minus { font-weight: 700; white-space: nowrap; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid var(--line); }
.tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--green); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.scroll { overflow-x: auto; }

/* Плашка «Установите приложение», над нижним меню */
.install { position: fixed; left: 0; right: 0; bottom: 60px; max-width: 480px; margin: 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(21,26,35,.08); font-size: 14px; }
.install[hidden] { display: none; }
.install img { border-radius: 10px; flex: 0 0 auto; }
.install .small { color: var(--muted); }
.install-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; }
body.has-install .app { padding-bottom: 150px; }
/* В установленном приложении нижнее меню не прячется под системную полоску iPhone */
.tabs { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Верхнее меню (только компьютер) ---------- */
.topnav { display: none; }
.only-desk { display: none !important; }
.how ol { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.split { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Компьютер: всё, что шире 900 пикселей ---------- */
@media (min-width: 900px) {
  body { background: var(--bg); }
  .only-desk { display: revert !important; }
  .how.only-desk { display: block !important; }
  .only-mob { display: none !important; }
  .tabs { display: none; }
  .app { max-width: 1200px; padding: 0 32px 48px; background: transparent; min-height: 0; }
  body.has-install .app { padding-bottom: 120px; }
  .install { bottom: 16px; border: 1px solid var(--line); border-radius: 14px; }

  .topnav { display: block; background: var(--green); color: #fff; }
  .topnav-in { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 28px; }
  .topnav .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
  .topnav .brand img { border-radius: 10px; }
  .topnav .brand span { display: flex; flex-direction: column; line-height: 1.15; }
  .topnav .brand b { font-size: 20px; }
  .topnav .brand small { font-size: 12px; color: #E9F7F1; }
  .topnav nav { display: flex; gap: 6px; flex: 1; }
  .topnav nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #fff; font-size: 15px; text-decoration: none; }
  .topnav nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
  .topnav nav a.on { background: rgba(255,255,255,.18); font-weight: 600; }
  .topnav .pill-master { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); padding: 0 18px; }
  .topnav .pill-master:hover { background: rgba(255,255,255,.24); color: #fff; }

  /* Зелёная полоса страницы превращается в обычный заголовок */
  .bar { background: transparent; color: var(--ink); padding: 32px 0 8px; }
  .bar h1 { color: var(--ink); font-size: 30px; }
  .bar p { color: var(--muted); font-size: 15px; }
  .bar .back { color: var(--green); margin-left: -12px; }
  .bar .pill { border: 1px solid var(--line); }
  .pad { padding: 16px 0; }
  .flash { margin: 20px 0 0; }

  /* Главная */
  .home { gap: 36px; padding-top: 48px; }
  .hero { display: flex; gap: 40px; align-items: center; }
  .hero-main { flex: 1 1 auto; }
  .hero h1 { font-size: 44px; line-height: 1.15; }
  .hero .muted { font-size: 18px; }
  .hero-btn { width: auto; align-self: flex-start; padding: 0 32px; min-height: 56px; font-size: 17px; }
  .how { flex: 0 0 360px; padding: 24px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cats a { min-height: 84px; font-size: 17px; padding: 20px; }

  /* Формы по центру, не во всю ширину */
  form.pad { max-width: 640px; }

  /* Заявка: слева описание, справа отклики */
  .split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
  .split > aside { position: sticky; top: 16px; }

  /* Списки карточек сеткой в две колонки */
  .cards { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .cards > p, .cards > .btn { grid-column: 1 / -1; }

}

/* ---------- Раздел управления (общие стили) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-size: 26px; }
.tile b small { font-size: 14px; color: #166534; font-weight: 600; }
.admin-cols { display: flex; flex-direction: column; gap: 20px; }
.todo { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.todo .todo-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.todo .todo-act { display: flex; gap: 8px; flex-wrap: wrap; }
.todo .todo-act form { margin: 0; }
.kind { align-self: flex-start; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.kind.anketa { background: var(--green-tint); color: var(--green-dark); }
.kind.zhaloba { background: #FDE8E8; color: #9B1C1C; }
.kind.tishina { background: var(--yellow-tint); color: var(--yellow-ink); }
.count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 9px; background: var(--yellow); font-size: 13px; text-align: center; }
.rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.rows .r b.low { color: #9B1C1C; }

@media (min-width: 900px) {
  .admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .settings { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
  .settings > .chips, .settings > button { grid-column: 1 / -1; }
  .settings > button { justify-self: start; width: auto; padding: 0 28px; }
}

/* ---------- Логотип ---------- */
.logo-img { display: block; height: 30px; width: auto; }
.logo-h1 { margin: 0; line-height: 0; }
.bar .logo-h1 + p { margin-top: 6px; }
@media (min-width: 900px) {
  .topnav .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .topnav .brand .logo-img { height: 30px; border-radius: 0; }
  .topnav .brand small { font-size: 12px; color: #E9F7F1; }
  .bar.logo-bar { background: var(--green); color: #fff; padding: 24px 32px; margin: 0 -32px; }
  .bar.logo-bar p { color: #E9F7F1; }
}

/* Пополнение баланса */
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; }
.amounts input:checked + span { border-color: var(--green); background: #E9F7F1; color: var(--green); }
.amounts input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Подвал и документы */
.foot { padding: 20px 16px 96px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--muted); }
.foot p { margin: 8px 0 0; }
.doc { max-width: 760px; line-height: 1.55; }
.doc h2 { margin: 12px 0 0; font-size: 18px; }
.doc p { margin: 0; }
@media (min-width: 900px) {
  .amounts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot { padding: 40px 0 32px; border-top: 1px solid var(--line); margin-top: 32px; }
}

/* =========================================================
   Версия 7: свой шрифт, новая шапка и главная
   ========================================================= */
@font-face { font-family: "Inter"; src: url(/assets/fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/Inter-SemiBold.woff) format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/assets/fonts/InterDisplay-ExtraBold.woff) format("woff"); font-weight: 800; font-display: swap; }
:root { --ink: #10231B; --muted: #55635C; --line: #DDE3DF; --bg: #F3F5F2; --head: "Inter Display", "Inter", system-ui, sans-serif; }
html, body { overflow-x: clip; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, .h2, .hero2-title, .for-pros h2 { font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-tag { display: block; margin: 6px 0 0; font-size: 14px; line-height: 1.3; color: #DDF1E7; }

/* --- Главная: зелёный первый экран --- */
.hero2 { background: var(--green); color: #fff; padding: 14px 20px 28px; }
.hero2-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.hero2 .pill-master { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hero2-title { margin: 0; font-size: 36px; line-height: 1.05; color: #fff; }
.hero2-sub { margin: 12px 0 20px; font-size: 16px; line-height: 1.45; color: #DDF1E7; }
.ask { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(6, 60, 40, .25); }
.ask::after { content: ""; position: absolute; left: 26px; bottom: -11px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.ask input[type=text] { border: 0; min-height: 52px; font-size: 17px; padding: 10px 12px; }
.ask input[type=text]:focus { outline: none; }
.ask:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ask .btn { min-height: 52px; font-size: 16px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; font-size: 14px; }
.examples span { width: 100%; color: #BFE3D2; }
.examples a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; text-decoration: none; }
.examples a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Пример переписки на первом экране (компьютер) */
.demo { display: flex; flex-direction: column; gap: 10px; }
.demo-label { font-size: 14px; color: #BFE3D2; margin-bottom: 2px; }
.say { position: relative; max-width: 92%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.say b { display: block; font-size: 13px; margin-bottom: 2px; }
.say em { display: block; font-style: normal; font-weight: 700; margin-top: 4px; }
.say.me { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 4px; }
.say.them { align-self: flex-start; background: var(--green-dark); color: #fff; border-bottom-left-radius: 4px; }
.say.them b { color: #BFE3D2; }
.say.pick { align-self: center; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 14px; border-radius: 999px; padding: 10px 18px; }

/* --- Главная: остальное --- */
.home2 { display: flex; flex-direction: column; gap: 36px; padding: 28px 20px 8px; }
.h2 { font-size: 22px; line-height: 1.2; margin: 0 0 14px; }
.cats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cats2 a { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 108px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.cats2 a:hover { border-color: var(--green); color: var(--ink); }
.cats2 .ic { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); }
.cats2 b { font-size: 16px; line-height: 1.25; }
.cats2 small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.cats2 a.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; border-style: dashed; border-color: #9FB8AC; background: transparent; }
.cats2 a.wide .ic { background: var(--yellow); color: var(--ink); flex: 0 0 auto; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: st; }
.steps li { position: relative; padding-left: 52px; counter-increment: st; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font: 800 18px/38px var(--head); text-align: center; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); }

.promise { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border-radius: 18px; }
.promise div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid var(--yellow); }
.promise b { font-size: 16px; }
.promise span { font-size: 15px; color: var(--muted); }

.for-pros { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--yellow); border-radius: 18px; }
.for-pros h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.for-pros p { margin: 0; font-size: 15px; color: #3D3200; }

/* --- Компьютер --- */
@media (min-width: 900px) {
  .topnav-in { height: 84px; gap: 36px; }
  .topnav .brand { flex-direction: row; align-items: center; gap: 16px; }
  .topnav .brand .logo-img { height: 34px; }
  .topnav .brand .brand-tag { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); font-size: 15px; max-width: 150px; }
  .topnav nav a { font-size: 16px; font-weight: 500; padding: 0 16px; }
  .topnav .pill { min-height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

  .hero2 { margin: 0 calc(50% - 50vw); padding: 64px 32px 80px; }
  .hero2-in { max-width: 1136px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: center; }
  .hero2-title { font-size: 68px; }
  .hero2-sub { font-size: 19px; max-width: 34em; margin: 18px 0 28px; }
  .ask { flex-direction: row; align-items: center; padding: 8px 8px 8px 10px; max-width: 640px; }
  .ask input[type=text] { flex: 1 1 auto; font-size: 18px; }
  .ask .btn { width: auto; padding: 0 26px; flex: 0 0 auto; }
  .examples { max-width: 640px; }
  .examples span { width: auto; display: flex; align-items: center; margin-right: 4px; }

  .home2 { gap: 64px; padding: 56px 0 0; }
  .h2 { font-size: 30px; margin-bottom: 20px; }
  .cats2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cats2 a { padding: 20px; min-height: 140px; justify-content: space-between; }
  .cats2 b { font-size: 18px; }
  .cats2 a.wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps li { padding: 54px 0 0; }
  .steps li::before { top: 0; width: 42px; height: 42px; line-height: 42px; }
  .steps b { font-size: 19px; }
  .promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px; }
  .promise b { font-size: 18px; }
  .for-pros { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 40px; }
  .for-pros h2 { font-size: 30px; }
  .for-pros p { font-size: 17px; }
  .for-pros .btn { width: auto; padding: 0 32px; min-height: 56px; flex: 0 0 auto; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.demo.only-desk { display: none !important; }
@media (min-width: 900px) {
  .demo.only-desk { display: flex !important; }
  .topnav .brand .brand-tag { max-width: none; white-space: nowrap; }
  .cats2 a { min-height: 124px; }
  .cats2 a.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 16px; }
}
@media (min-width: 900px) { .cats2 a.wide { justify-content: flex-start; } }

/* Курсор ввода только в полях: при нажатии на обычный текст он не мигает */
body { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
.btn, .pill, .tabs a, .topnav nav a, .cats2 a, .examples a, .chips span, .amounts span, .opt span { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* Цена в отклике */
.offer { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.2; white-space: nowrap; }
.offer b { font-size: 18px; }
.offer small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.offer.agree small { color: #166534; font-weight: 600; }
.offer.visit b { font-size: 16px; }

/* Выбор варианта цены у мастера */
.offer-pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.offer-pick legend { padding: 0; margin-bottom: 6px; }
.opt { position: relative; margin: 0; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 44px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 400; color: var(--ink); cursor: pointer; position: relative; }
.opt span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9AA6A0; background: #fff; }
.opt span b { font-size: 16px; }
.opt span small { font-size: 14px; color: var(--muted); }
.opt input:checked + span { border-color: var(--green); background: #F2FAF6; }
.opt input:checked + span::before { border-color: var(--green); background: radial-gradient(var(--green) 0 4px, #fff 5px); }
.opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 1px; }
.opt-more { padding: 0 0 4px 44px; }
.price-mine { margin-top: 10px; }

/* v9: фото в заявке */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin:10px 0 0}
.photos.small{grid-template-columns:repeat(auto-fill,72px);gap:6px}
.photos a,.photos .ph{display:block;position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#E4E9E5}
.photos img,.photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.photos .ph span{position:absolute;left:0;right:0;bottom:0;display:flex;gap:6px;align-items:center;justify-content:center;padding:5px 4px;font-size:13px;background:rgba(16,35,27,.72);color:#fff;cursor:pointer}
.photos .ph input{width:16px;height:16px;margin:0;accent-color:#FFD23F}
.photos.edit{margin:0 0 10px}
.add-photo{display:flex;align-items:center;justify-content:center;min-height:64px;border:2px dashed #B9C9BF;border-radius:12px;background:#fff;color:#0B7A53;font-weight:600;cursor:pointer;position:relative;user-select:none}
.add-photo:hover{border-color:#0B7A53;background:#F4FAF6}
.add-photo input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.add-photo:focus-within{outline:3px solid #FFD23F;outline-offset:2px}
.photo-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;margin-top:8px}
.photo-preview img{aspect-ratio:1;border-radius:10px}
.photo-preview p{grid-column:1/-1;margin:0}
.viewer{position:fixed;inset:0;z-index:100;background:rgba(10,20,15,.92);display:flex;align-items:center;justify-content:center;padding:16px;cursor:zoom-out}
.viewer img{max-width:100%;max-height:100%;border-radius:8px}
.viewer button{position:absolute;top:14px;right:14px;background:#fff;color:#10231B;border:0;border-radius:999px;padding:8px 14px;font:inherit;font-weight:600}

/* v10: уведомления */
.nudge{display:block;padding:12px 14px;border-radius:12px;background:#FFF6D1;color:#10231B;text-decoration:none;font-size:15px;line-height:1.4;border:1px solid #F2DD8A}
.nudge b{color:#075239;white-space:nowrap}
.nudge:hover{background:#FFEFB0}
.notify-row{padding:8px 0;border-top:1px solid #E4E9E5;gap:12px}
.notify-row form{margin:0}
b.code{font-family:inherit;letter-spacing:.04em;user-select:all;caret-color:auto;background:#F3F5F2;padding:2px 6px;border-radius:6px;word-break:break-all}

/* v11: подключение мессенджеров */
.connect-card{background:#FFF6D1;border:1px solid #F2DD8A;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.connect-card h3{margin:0;font-size:18px;line-height:1.25;color:#10231B}
.connect-card p{margin:0;font-size:15px;line-height:1.45;color:#2B3A33}
.connect-btns{display:flex;flex-wrap:wrap;gap:8px}
.connect-btns form{margin:0;flex:1 1 180px}
.connect-btns .btn{width:100%}
.btn.tg{background:#2AABEE;color:#fff;border-color:#2AABEE}
.btn.tg:hover{background:#1E96D4}
.btn.max{background:#4F46E5;color:#fff;border-color:#4F46E5}
.btn.max:hover{background:#4338CA}
.connect-card .skip{align-self:center;color:#5B6B63;font-size:14px;text-decoration:underline;padding:4px}
.step-done{margin:0;font-size:17px}

/* v12: подсказка «Как поставить на экран» */
.install .btn.small { flex: 0 0 auto; }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(21,26,35,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-box { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head img { border-radius: 12px; }
.sheet-head h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.isteps[hidden], .sheet [data-for][hidden] { display: none; }
.isteps li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.isteps .inum { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.isteps .small { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ico { width: 22px; height: 22px; vertical-align: -5px; color: #007AFF; }
.ipill { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #EAF2FF; color: #007AFF; font-weight: 600; }
body.sheet-open { overflow: hidden; }
@media (min-width: 900px) { .sheet { align-items: center; } .sheet-box { border-radius: 20px; } }
.ihint { text-align: center; font-size: 15px; font-weight: 600; color: #007AFF; margin: -6px 0 0; }
.iarrow { display: inline-block; font-size: 22px; }
@media (prefers-reduced-motion: no-preference) { .iarrow { animation: inudge 1.2s ease-in-out infinite; } }
@keyframes inudge { 50% { transform: translateY(4px); } }
.iwhere { margin: 4px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.iwhere li { display: list-item; }
.ivar { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ivar[hidden] { display: none; }
.ivar.one { border-top: 0; padding-top: 0; }
.ivar.one .ivar-h { display: none; }
.ivar-h { font-weight: 700; font-size: 15px; color: var(--green-dark); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
.linkbtn[hidden] { display: none; }
