/* carenear.eu. Цвета — фирменный зелёный Care Near (docs/BRAND_CARE_NEAR_2026-09-27.md §4.2); логотипа нет, пока он
   перерабатывается (§4.9), кораллового цвета тоже нет — он шёл от логотипа с красным сердцем (владелец 2026-09-27).
   Скриптов на сайте нет (CSP): переключатель ролей, вопросы и окна — на CSS (radio / checkbox / :target).
   Экраны приложения — HTML: размеры в em от ширины экрана (cqw), поэтому телефон масштабируется целиком. */
@font-face { font-family: "Poppins"; src: url("/assets/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #005855;
  --green-deep: #00403e;
  --mint: #bed5d2;
  --tint: #eef6f4;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #5b6b7a;
  --card: #ffffff;
  --line: #e1e7ea;
  --bezel: #0b1717;
  --accent: #005855;
  --icon-bg: #e2f1ee;
  --btn: #005855;
  --focus: #005855;
  --radius: 22px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --tint: #0f2a2a; --bg: #0b1717; --text: #e8f1f0; --muted: #9fb3b1; --card: #132625; --line: #1f3a39; --bezel: #000;
          --accent: #7fd1c7; --icon-bg: #173a38; --btn: #0b6f6a; --focus: #7fd1c7; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 var(--sans); }
body:has(.modal:target) { overflow: hidden; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 860px; }
.narrow-l > * { max-width: 760px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: #fff; color: var(--green); font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .2s, background .2s; }
.btn:hover { filter: brightness(.95); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arr { font-size: 20px; line-height: 1; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.primary { background: var(--btn); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.outline { background: transparent; color: var(--accent); border: 1.5px solid currentColor; min-height: 48px; }
.btn.outline:hover { background: var(--tint); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .band { --focus: #fff; }

/* ---------------------------------------------------------------- первый экран: заголовок, подзаголовок, одна кнопка, видео */
.hero { background: var(--green); color: #fff; }
.hero:not(.hero-sm) { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(72px, 11vh, 140px) 0; }
.hero .wrap.hero-grid { max-width: 1600px; }
@media (min-width: 1280px) { .hero .wrap.hero-grid { padding: 0 56px; } }
.hero-grid { display: grid; gap: 56px; align-items: center; width: 100%; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(56px, 6vw, 128px); } }
.hero-text h1 { font-size: clamp(40px, 4.4vw, 66px); margin-bottom: .55em; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; max-width: 40ch; color: #e3efed; }
.hero-text .lead { margin: 0; }
.hero-text .ctas { margin-top: clamp(40px, 6vh, 64px); }
.video video, .video .frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 28px; background: var(--green-deep); }
.video video { object-fit: cover; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .6); }
.video .frame { position: relative; border: 1px solid rgba(255, 255, 255, .12); background: radial-gradient(120% 90% at 20% 15%, #0b6b67 0%, var(--green-deep) 62%); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--green); }
.play svg { width: 36px; height: 36px; margin-left: 4px; }

/* языки — фразами */
.langs { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.langs a { color: var(--mint); text-decoration: none; padding: 4px 0; }
.langs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.langs a[aria-current="page"] { color: #fff; font-weight: 600; }
.hero-media .langs { justify-content: center; margin-top: 28px; }
.langs-foot a { color: var(--muted); }
.langs-foot a:hover { color: var(--text); }
.langs-foot a[aria-current="page"] { color: var(--text); }

/* ---------------------------------------------------------------- секции */
section { padding: 96px 0; }
@media (max-width: 719px) { section { padding: 72px 0; } }
section.tint { background: var(--tint); }
.sec-lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 0 44px; }
.note { font-size: 15px; color: var(--muted); margin: 18px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 8.5 10.5 15 7 11.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ic { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--icon-bg); color: var(--accent); }
.ic svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- как устроен сервис: переключатель ролей
   Слева экран роли, справа — переключатель, заголовок, список и кнопка (владелец 2026-09-28: блок и так высокий).
   Экраны и тексты всех ролей лежат стопкой в своих ячейках, сетка у ролей общая — переключатель не сдвигается. */
.tab-in, .qa-in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tabs { display: grid; }
.tab-box { container-type: inline-size; display: flex; justify-content: center; }
.tab-list { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--tint); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab-list label { padding: 11px 18px; border-radius: 999px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.tab-list label:hover { color: var(--text); }
/* место под переключатель — по ширине колонки: сначала поля у ролей меньше, потом две строки по две роли */
@container (max-width: 469px) { .tab-list label { padding: 11px 12px; } }
@container (max-width: 429px) {
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 24px; }
  .tab-list label { text-align: center; padding: 11px 8px; }
}
#role-family:checked ~ .tab-box [for="role-family"], #role-client:checked ~ .tab-box [for="role-client"],
#role-caregiver:checked ~ .tab-box [for="role-caregiver"], #role-coordinator:checked ~ .tab-box [for="role-coordinator"] { background: var(--green); color: #fff; }
#role-family:focus-visible ~ .tab-box [for="role-family"], #role-client:focus-visible ~ .tab-box [for="role-client"],
#role-caregiver:focus-visible ~ .tab-box [for="role-caregiver"], #role-coordinator:focus-visible ~ .tab-box [for="role-coordinator"] { outline: 3px solid var(--focus); outline-offset: 2px; }
.role-media, .role-text { display: grid; min-width: 0; }
.pane { grid-area: 1 / 1; display: grid; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, visibility .4s; }
#role-family:checked ~ * .pane-family, #role-client:checked ~ * .pane-client,
#role-caregiver:checked ~ * .pane-caregiver, #role-coordinator:checked ~ * .pane-coordinator { opacity: 1; visibility: visible; transform: none; }
.role-media { margin-top: 40px; }
.role-media .pane { justify-items: center; align-self: center; }
.role-text, .roles-cta { justify-self: center; width: 100%; max-width: 520px; }
.role-text { margin-top: 36px; }
.role-text .pane { align-self: start; }
.role-text h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 20px; }
.roles-cta { margin-top: 40px; }
/* узкий экран: неактивные роли убираем совсем (иначе высота — по самой высокой роли и под короткой остаётся пустота) */
@media (max-width: 899px) {
  .pane { display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  #role-family:checked ~ * .pane-family, #role-client:checked ~ * .pane-client,
  #role-caregiver:checked ~ * .pane-caregiver, #role-coordinator:checked ~ * .pane-coordinator { display: grid; animation: panel-in .4s ease; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* широкий экран: экран роли — слева на всю высоту, справа по центру его высоты — переключатель, текст и кнопка */
@media (min-width: 900px) {
  .tabs { grid-template-columns: minmax(320px, 1fr) minmax(0, 480px); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(40px, 5vw, 64px); }
  .role-media { grid-area: 1 / 1 / -1 / 2; margin-top: 0; }
  .tab-box { grid-area: 2 / 2; justify-content: flex-start; }
  .role-text { grid-area: 3 / 2; margin-top: 32px; }
  .roles-cta { grid-area: 4 / 2; }
  .role-text, .roles-cta { justify-self: stretch; max-width: none; }
}

/* ---------------------------------------------------------------- что мы делаем: три карточки и «Во время визита» плитками */
.svc-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.svc-card h3 { margin: 22px 0 10px; }
.svc-card p { color: var(--muted); margin: 0; }
.visit { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.visit-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.visit-h h3 { margin: 0; }
.visit-h p { margin: 0; color: var(--muted); font-size: 16px; }
.visit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .visit ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.visit li { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 18px; border-radius: 18px; background: var(--tint); font-family: var(--head); font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.visit li .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--card); }
.visit li .ic svg { width: 24px; height: 24px; }
@media (max-width: 599px) {
  .visit { padding: 22px 18px; }
  .visit ul { gap: 10px; }
  .visit li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 14px; font-size: 15.5px; }
}

/* ---------------------------------------------------------------- работа: зелёная полоса */
section.band { background: var(--green); color: #fff; }
section.band .sec-lead { color: #e3efed; }
.work .sec-lead { margin-bottom: 56px; }
.work h3 { margin: 0 0 20px; }
.steps, .career { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 14px; counter-reset: n; }
.steps li, .career li { counter-increment: n; background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 22px; }
.steps li::before { content: counter(n); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green); font-family: var(--head); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.steps b, .career b { display: block; font-family: var(--head); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.steps span, .career span { color: #d6e7e4; font-size: 16px; line-height: 1.45; }
@media (max-width: 719px) {
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.career li { position: relative; border-left: 4px solid #fff; border-radius: 6px 18px 18px 6px; }
@media (min-width: 900px) {
  .career { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .career li:not(:last-child)::after { content: "→"; position: absolute; right: -28px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-size: 22px; color: var(--mint); }
}
.work .ctas { margin: 0; }

/* ---------------------------------------------------------------- инвесторам и партнёрам */
.biz-grid { display: grid; gap: 24px; margin-top: 12px; }
@media (min-width: 860px) { .biz-grid { grid-template-columns: 1fr 1fr; } }
.biz-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; background: var(--card); }
.biz-card p { color: var(--muted); flex: 1; }
.biz-card .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- вопросы: раскрываются плавно (checkbox + grid 0fr → 1fr) */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { margin: 0; font-size: 19px; }
.qa-q label { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; }
.qa-q label::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23005855' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 1px solid var(--line); transition: transform .4s ease; }
.qa-in:checked ~ .qa-q label::after { transform: rotate(135deg); }
.qa-in:focus-visible ~ .qa-q label { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.qa-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s ease, visibility .45s; }
.qa-a > div { overflow: hidden; min-height: 0; }
.qa-a p { margin: 0; padding: 0 56px 24px 0; color: var(--muted); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.qa-in:checked ~ .qa-a { grid-template-rows: 1fr; visibility: visible; }
.qa-in:checked ~ .qa-a p { opacity: 1; transform: none; transition-delay: .08s; }

/* ---------------------------------------------------------------- подвал */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
footer p { margin: 0; color: var(--muted); font-size: 15px; }
footer p a { color: var(--text); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- внутренние страницы: «Как устроен продукт», помощникам, инвесторам, демо */
.hero-sm { padding: 28px 0 80px; }
.hero-sm .lead { max-width: 60ch; }
.hero-sm .ctas { margin-top: 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 56px; }
.home-link { font-family: var(--head); font-weight: 600; font-size: 17px; color: #fff; text-decoration: none; }
.home-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.how-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
  .how-wide .how-grid { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 56px; }
}
.how-text p { color: var(--muted); max-width: 46ch; }
.how-text .ticks { margin-top: 8px; }
.num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--head); font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.how-media { display: flex; justify-content: center; min-width: 0; }
.how-wide .how-media .win { max-width: 860px; }
.all-text p { max-width: 62ch; }
.all-grid { display: grid; gap: 40px; justify-items: center; align-items: center; margin-top: 48px; }
.all-grid .dev-phone { --w: min(300px, 80vw); }
@media (min-width: 760px) { .all-grid { grid-template-columns: repeat(2, auto); justify-content: center; } .all-grid .win { grid-column: 1 / -1; } }
@media (min-width: 1240px) { .all-grid { grid-template-columns: auto auto minmax(0, 1fr); } .all-grid .win { grid-column: auto; } }
.cta-row { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-row h2 { margin: 0; }
.work .cta-row { margin-top: 8px; }
.demo-grid { display: grid; gap: 32px; align-items: center; justify-items: center; margin-top: 48px; }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; } }
.demo-grid.product { margin-top: 56px; }
body.simple .hero { min-height: 100vh; display: flex; align-items: center; }

/* карточки со значком: правила работы с клиентом, решение и продукт для инвесторов */
.cards2 { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 820px) { .cards2 { grid-template-columns: 1fr 1fr; gap: 24px; } }
.icard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.icard h3 { margin: 20px 0 10px; }
.icard p { color: var(--muted); margin: 0; }

/* цифры для инвесторов */
.facts { display: grid; gap: 20px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.fact b { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 4vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.fact b span { font-size: .5em; letter-spacing: 0; margin-left: .25em; }
.fact p { margin: 0; font-size: 17px; }
.fact small { margin-top: auto; color: var(--muted); font-size: 14px; }
.fact small a { color: inherit; }
.sources { margin-top: 40px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sources h3 { font-size: 16px; margin: 0 0 10px; color: var(--text); }
.sources ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.sources a { color: inherit; text-underline-offset: 3px; }
.sources li:target { color: var(--text); }

/* ---------------------------------------------------------------- окна «Запросить демо» и «Войти»: :target, без скриптов */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal:target { display: flex; animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal-bg { position: absolute; inset: 0; background: rgba(3, 20, 19, .66); cursor: default; }
.modal-box { position: relative; width: min(100%, 480px); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow: auto; padding: 36px 32px 30px; border-radius: 26px; background: var(--card); color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); --focus: var(--accent); }
@media (max-width: 480px) { .modal-box { padding: 30px 20px 24px; } }
.modal-box h2 { font-size: clamp(26px, 3vw, 32px); margin: 0 48px 10px 0; }
.modal-p { color: var(--muted); margin: 0 0 22px; }
.modal-p a { color: var(--accent); }
.modal-x { position: absolute; top: 18px; right: 18px; display: flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; color: var(--muted); background: var(--tint); }
.modal-x svg { width: 20px; height: 20px; }
.modal-x:hover { color: var(--text); }
.modal-ic { display: flex; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--accent); }
.modal-ic svg { width: 28px; height: 28px; }
.modal-box > .btn { width: 100%; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.form input, .form select { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 400 17px/1.3 var(--sans); }
.form select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235b6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; padding-right: 44px; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.form .btn { width: 100%; margin-top: 6px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.fine a { color: var(--accent); }
.form-err { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff4db; color: #6b4600; font-weight: 600; font-size: 15px; }
.form-err svg { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) { .form-err { background: #3a2f12; color: #ffd98a; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pane, .qa-a, .qa-a p, .qa-q label::after, .tab-list label, .modal:target, .btn .arr { transition: none; animation: none !important; }
  .map .m-pulse { animation: none; opacity: .18; }
}

/* carenear.eu — устройства и экраны приложения (HTML). Общий файл для сайта (build.py склеивает его с site.css)
   и демо-ролика (site/video/demo.html). Цвета интерфейса — светлые в любой теме: это снимок приложения. */
/* телефон: 390 × 844 pt, как в макетах; 1em = 16 pt при любой ширине */
.dev-phone { --w: min(318px, 80vw); flex: none; width: var(--w); height: calc(var(--w) * 844 / 390); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .15); background: var(--bezel, #0b1717); box-shadow: 0 40px 70px -35px rgba(0, 40, 38, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ph-scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .118); background: #f3f6f7; container-type: inline-size; }
.ph-ui { position: absolute; inset: 0; display: flex; flex-direction: column; font: 400 4.1cqw/1.25 var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); color: #0f172a; -webkit-font-smoothing: antialiased; }
.ph-ui svg { display: block; }
.sb { flex: none; height: 2.9em; display: flex; align-items: center; justify-content: space-between; padding: .5em 1.9em 0 2.1em; font-size: 1em; }
.sb b { font-weight: 600; font-size: .95em; }
.sb-i { display: flex; gap: .35em; align-items: center; }
.sb-i svg { height: .72em; width: auto; fill: currentColor; }
.ph-home { position: absolute; left: 50%; bottom: .5em; width: 8.4em; height: .3em; border-radius: 999px; background: #0f172a; transform: translateX(-50%); opacity: .9; }
.av { flex: none; display: flex; align-items: center; justify-content: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: #dcebe8; color: #005855; font-weight: 700; font-size: .85em; }
.ph-ui h4 { margin: .95em 1.25em .45em; font-size: .95em; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .35em; }
.chips span { background: #fff; border: 1px solid #dce4e8; border-radius: 999px; padding: .32em .7em; font-size: .8em; white-space: nowrap; }
.chips .add { color: #005855; border-style: dashed; border-color: #8fbdb7; font-weight: 600; }
.hl { outline: .2em solid #2a9d8f; outline-offset: .2em; border-radius: 1.1em; }

/* семья */
.fm-head { display: flex; align-items: center; justify-content: space-between; padding: .35em 1.25em .7em; }
.fm-head small { display: block; font-size: .8em; color: #5b6b7a; }
.fm-head b { font-size: 1.35em; font-weight: 700; }
.fm-voice { margin: 0 1em; display: grid; grid-template-columns: 2.5em minmax(0, 1fr) auto; gap: .75em; align-items: center; padding: .8em .9em; border-radius: 1.1em; background: #e2f1ee; }
.fm-voice small { display: block; font-size: .75em; color: #36544f; margin-bottom: .35em; font-weight: 600; }
.pbtn { display: flex; align-items: center; justify-content: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: #005855; color: #fff; }
.pbtn svg { width: 1.15em; height: 1.15em; margin-left: .1em; }
.wave { width: 100%; height: 1.2em; }
.wave .wv-on { fill: #005855; }
.wave .wv { fill: #9cc5bf; }
.vt { font-size: .8em; color: #36544f; font-weight: 600; }
.vl { list-style: none; margin: 0 1em; padding: 0 .9em; background: #fff; border-radius: 1em; }
.vl li { display: grid; grid-template-columns: 4.7em minmax(0, 1fr) auto; gap: .5em; align-items: center; padding: .66em 0; border-bottom: 1px solid #edf1f3; font-size: .86em; }
.vl li:last-child { border-bottom: 0; }
.vd { color: #5b6b7a; }
.vd b, .vw b { display: block; color: #0f172a; font-weight: 600; }
.vw { color: #5b6b7a; min-width: 0; }
.vw b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: .82em; font-weight: 700; border-radius: 999px; padding: .3em .65em; white-space: nowrap; }
.chip.live { background: #e3f4ec; color: #0b7a4b; }
.past li { grid-template-columns: 1.9em minmax(0, 1fr); }
.ok { display: flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #005855; color: #fff; }
.ok svg { width: 1em; height: 1em; }
.fm-svc { margin: .5em .6em 0; padding: 0 .4em .5em; }
.fm-svc h4 { margin: .5em .6em .45em; }
.fm-svc .chips { margin: 0 .6em .45em; }
.fm-svc small { display: block; margin: 0 .75em .3em; font-size: .72em; font-weight: 700; color: #5b6b7a; }
.chips .x { background: #e2f1ee; border-color: #c4e0db; }
.ph-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e5eaed; padding: .55em 0 1.75em; }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: .2em; font-size: .64em; color: #8a99a6; font-weight: 600; }
.ph-tabs svg { width: 2.3em; height: 2.3em; }
.ph-tabs .on { color: #005855; }

/* клиент: крупный текст, большие кнопки */
.cl-hello { margin: .5em .7em .65em; font-size: 1.8em; font-weight: 700; line-height: 1.15; }
.cl-card { margin: 0 1em .85em; background: #fff; border-radius: 1.25em; box-shadow: 0 .1em .4em rgba(15, 23, 42, .07); }
.cl-map { position: relative; overflow: hidden; }
.cl-map .map { width: 100%; height: 15em; }
.cl-eta { position: absolute; top: .75em; left: .75em; background: #005855; color: #fff; border-radius: 999px; padding: .32em .75em; font-weight: 700; font-size: .95em; }
.cl-who { display: flex; align-items: center; gap: .75em; padding: .85em 1em; }
.cl-who b { display: block; font-size: 1.4em; font-weight: 700; }
.cl-who span { font-size: 1.08em; color: #0b7a4b; font-weight: 600; }
.cl-plan { padding: 1.1em 1.15em; }
.cl-plan b { font-size: 1.35em; font-weight: 700; }
.cl-plan ul { list-style: none; margin: .65em 0 0; padding: 0; display: grid; gap: .6em; }
.cl-plan li { display: flex; align-items: center; gap: .6em; font-size: 1.22em; }
.cl-plan li svg { flex: none; width: 1.3em; height: 1.3em; padding: .22em; border-radius: 50%; background: #e2f1ee; color: #005855; }
.cl-call { display: flex; align-items: center; gap: .75em; padding: 1.05em 1em; margin-top: auto; margin-bottom: 2.3em; }
.cl-call b { display: block; font-size: 1.25em; font-weight: 700; }
.cl-call div span { font-size: .9em; color: #5b6b7a; }
.call { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; background: #005855; color: #fff; border-radius: 999px; padding: .8em 1.2em; font-weight: 700; font-size: 1.1em; }
.call svg { width: 1.15em; height: 1.15em; }

/* исполнитель: маршрут */
.cg-map { position: relative; flex: none; height: 30.5em; overflow: hidden; }
.cg-map .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-map .sb { position: relative; z-index: 1; }
.cg-eta { position: absolute; z-index: 1; left: 1em; top: 3.5em; display: inline-flex; align-items: center; gap: .45em; background: #fff; border-radius: 999px; padding: .5em .85em; font-weight: 700; font-size: .95em; box-shadow: 0 .2em .8em rgba(15, 23, 42, .15); }
.cg-eta svg { width: 1em; height: 1em; color: #005855; }
.cg-sheet { position: relative; flex: 1; margin-top: -1.5em; display: flex; flex-direction: column; gap: .6em; padding: .6em 1.25em 2.2em; background: #fff; border-radius: 1.5em 1.5em 0 0; box-shadow: 0 -.3em 1.2em rgba(15, 23, 42, .1); }
.grab { align-self: center; width: 2.6em; height: .28em; border-radius: 999px; background: #d5dde2; margin-bottom: .2em; }
.cg-sheet .who { font-size: 1.35em; font-weight: 700; }
.cg-sheet .addr { color: #5b6b7a; font-size: .92em; margin-top: -.45em; }
.cg-row { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.cg-row span { display: inline-flex; align-items: center; gap: .4em; }
.cg-row svg { width: 1.05em; height: 1.05em; color: #5b6b7a; }
.cg-row .rep { color: #005855; font-size: .9em; }
.cg-row .rep svg { color: #005855; }
.cg-tasks { list-style: none; margin: .1em 0 0; padding: 0; }
.cg-tasks li { display: flex; align-items: center; gap: .65em; padding: .62em 0; border-bottom: 1px solid #edf1f3; font-weight: 600; }
.cg-tasks li:last-child { border-bottom: 0; }
.cg-tasks i { flex: none; width: 1.35em; height: 1.35em; border-radius: 50%; border: .14em solid #b6c4cb; }
.app-btn { margin-top: auto; background: #005855; color: #fff; text-align: center; border-radius: 1em; padding: .95em; font-weight: 700; font-size: 1.05em; }

/* карта */
.map .m-land { fill: #eef1ec; }
.map .m-block { fill: #e1e7e2; }
.map .m-park { fill: #cfe5d2; }
.map .m-st { stroke: #fff; fill: none; stroke-linecap: round; }
.map .m-lbl { font: 600 11px var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); fill: #7a8a94; letter-spacing: .02em; }
.map .m-route-halo { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.map .m-route { fill: none; stroke: #005855; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.map .m-me { fill: #2f6feb; stroke: #fff; stroke-width: 3.5; }
.map .m-pulse { fill: #2f6feb; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.55); opacity: .4; } 100% { transform: scale(1.6); opacity: 0; } }
.map .m-home > path:first-child { fill: #005855; stroke: #fff; stroke-width: 2.5; }
.map .m-home-i { fill: #fff; }

/* координатор: окно браузера; раскладка — по ширине окна (container queries) */
.win { width: 100%; max-width: 760px; background: #fff; color: #0f172a; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 70px -35px rgba(0, 40, 38, .5); border: 1px solid #dfe6ea; container-type: inline-size; font-family: var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); -webkit-font-smoothing: antialiased; }
.win-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 12px; background: #f1f4f6; border-bottom: 1px solid #e3e9ec; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dbe0; }
.cw { padding: 18px; font-size: 14px; line-height: 1.3; }
.cw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.cw-head b { font-size: 21px; font-weight: 700; }
.cw-head span { color: #5b6b7a; font-size: 13px; }
.cw-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
@container (max-width: 560px) { .cw-grid { grid-template-columns: 1fr; } }
.cw-sched, .cw-perf { background: #f6f8f9; border-radius: 12px; padding: 12px 14px; }
.cw h5 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: #5b6b7a; }
.cw-sched ul { list-style: none; margin: 0; padding: 0; }
.cw-sched li { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, .95fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e6ecef; font-size: 13px; }
.cw-sched li:last-child { border-bottom: 0; }
.cw-sched .t { color: #5b6b7a; font-weight: 600; }
.cw-sched .c { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-sched .g { color: #5b6b7a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 400px) { .cw-sched li { grid-template-columns: 40px minmax(0, 1fr) auto; } .cw-sched .g { display: none; } }
.st { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.done { background: #e3f4ec; color: #0b7a4b; }
.st.way { background: #e6eeff; color: #2f5fd0; }
.st.late { background: #ffe8e3; color: #b83a28; }
.st.need { background: #fff1d1; color: #7a5000; }
.st.plan { background: #edf1f3; color: #5b6b7a; }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; margin-bottom: 11px; }
.kpi b { font-size: 19px; font-weight: 700; }
.kpi span { font-size: 12.5px; color: #5b6b7a; }
.kpi .bar { grid-column: 1 / -1; display: block; height: 6px; margin-top: 5px; border-radius: 99px; background: #e2e8eb; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: #005855; border-radius: 99px; }
.kpi .w96 { width: 96%; } .kpi .w96b { width: 95.9%; } .kpi .w97 { width: 97%; } .kpi .w12 { width: 12%; background: #9fc9c4; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 76px; margin-top: 12px; }
.chart span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 10.5px; color: #5b6b7a; }
.chart i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: #9fc9c4; }
.chart .h1 { height: 62%; } .chart .h2 { height: 78%; } .chart .h3 { height: 70%; } .chart .h4 { height: 86%; background: #005855; }
.chart .h5 { height: 80%; } .chart .h6 { height: 42%; } .chart .h7 { height: 34%; }

/* ---------------------------------------------------------------- общие элементы экранов (2026-09-27, раунд 4) */
.ah { flex: none; display: flex; align-items: center; gap: .6em; padding: .35em 1.1em .55em; }
.ah b { font-size: 1.08em; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-b { flex: none; display: flex; width: 1.5em; height: 1.5em; color: #0f172a; }
.ah-b svg { width: 100%; height: 100%; }
.ah-r { margin-left: auto; font-size: .78em; color: #5b6b7a; font-weight: 600; white-space: nowrap; }
.ah-main { justify-content: space-between; padding: .5em 1.25em .6em; }
.ah-main b { font-size: 1.55em; }
.prog { flex: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3em; margin: 0 1.25em .2em; }
.prog i { height: .26em; border-radius: 99px; background: #dde5e8; }
.prog i.on { background: #005855; }
.pad { padding: .6em 1.25em 0; }
.scr-h { margin: .5em 0 .25em; font-size: 1.42em; font-weight: 700; line-height: 1.18; }
.scr-sub { margin: 0 0 .9em; font-size: .9em; color: #5b6b7a; }
.card { margin: 0 1em .75em; background: #fff; border-radius: 1.1em; box-shadow: 0 .1em .4em rgba(15, 23, 42, .06); }
p.card, ul.card { padding: .8em .95em; }
ul.card { list-style: none; }
.note-c { font-size: .8em; color: #36544f; background: #e2f1ee; box-shadow: none; line-height: 1.35; }
.app-btn.low { margin: auto 1.1em 2.3em; display: flex; align-items: center; justify-content: center; gap: .45em; }
.app-btn svg, .ah svg, .chip svg { flex: none; }
.app-btn.low svg { width: 1.1em; height: 1.1em; }
.app-btn.ol { background: #fff; color: #005855; border: .12em solid #005855; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .2em; padding: .22em; border-radius: 999px; background: #e3e9ec; margin-bottom: .9em; }
.seg span { text-align: center; padding: .5em .4em; border-radius: 999px; font-size: .84em; font-weight: 600; color: #5b6b7a; }
.seg span.on { background: #fff; color: #005855; box-shadow: 0 .05em .3em rgba(15, 23, 42, .12); }
.chip { display: inline-flex; align-items: center; gap: .3em; }
.chip svg { width: 1em; height: 1em; }
.chip.wait { background: #fff1d1; color: #7a5000; }
.chip.reg { background: #e2f1ee; color: #005855; }
.chip.ok2 { background: #e3f4ec; color: #0b7a4b; }
.chip.pl { background: #fff; color: #36544f; border: 1px solid #dce4e8; font-weight: 600; }
.chip.nx { background: #fff1d1; color: #7a5000; }
.bx { flex: none; display: flex; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; border-radius: .4em; border: .13em solid #b6c4cb; color: #fff; }
.bx svg { width: .95em; height: .95em; }
.bx.on, li.on > .bx { background: #005855; border-color: #005855; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; }
.row-h small { font-size: .85em; font-weight: 600; color: #5b6b7a; }
.av.lg { width: 3em; height: 3em; font-size: .95em; }

/* регистрация семьи: плитки услуг */
.su-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.su-t { position: relative; display: flex; flex-direction: column; gap: .45em; min-height: 5em; padding: .8em .75em; border-radius: 1em; background: #fff; border: .1em solid #dce4e8; color: #36544f; }
.su-t > svg { width: 1.45em; height: 1.45em; color: #005855; }
.su-t b { font-size: .86em; font-weight: 600; color: #0f172a; line-height: 1.2; }
.su-t.on { border-color: #005855; background: #eef7f5; box-shadow: inset 0 0 0 .06em #005855; }
.su-t i { position: absolute; top: .6em; right: .6em; display: flex; width: 1.3em; height: 1.3em; border-radius: .35em; background: #005855; color: #fff; align-items: center; justify-content: center; }
.su-t i svg { width: .85em; height: .85em; }

/* заявка в самоуправление */
.mu-app { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5em .75em; align-items: center; padding: .95em; }
.mu-ic { display: flex; width: 2.5em; height: 2.5em; border-radius: .8em; background: #e2f1ee; color: #005855; align-items: center; justify-content: center; }
.mu-ic svg { width: 1.35em; height: 1.35em; }
.mu-app b { display: block; font-size: 1em; font-weight: 700; }
.mu-app small { color: #5b6b7a; font-size: .8em; }
.mu-st { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .5em; padding-top: .55em; border-top: 1px solid #edf1f3; }
.stl li { display: flex; gap: .7em; align-items: flex-start; padding: .45em 0; }
.stl .dot { flex: none; display: flex; width: 1.6em; height: 1.6em; border-radius: 50%; align-items: center; justify-content: center; background: #edf1f3; color: #fff; }
.stl .dot svg { width: .95em; height: .95em; }
.stl .done .dot { background: #0b7a4b; }
.stl .wait .dot { background: #fff1d1; color: #7a5000; }
.stl b { display: block; font-size: .92em; font-weight: 600; }
.stl small { display: block; font-size: .76em; color: #5b6b7a; margin-top: .1em; }
.stl .todo b { color: #5b6b7a; }
.mu-call { margin-top: auto; margin-bottom: 2.3em; }
.call.sm { padding: .7em; }
.call.sm svg { width: 1.25em; height: 1.25em; }

/* услуги семьи */
.ex-l li { display: flex; align-items: center; gap: .65em; min-height: 2.45em; font-size: .9em; font-weight: 600; border-bottom: 1px solid #edf1f3; }
.ex-l li:last-child { border-bottom: 0; }
.ex-l .ok { width: 1.45em; height: 1.45em; }
.ex-l .ok svg { width: .85em; height: .85em; }
.ex-x li { justify-content: space-between; }
.ex-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; }
.ex-h small { font-size: .8em; font-weight: 600; color: #5b6b7a; }
.tg { flex: none; position: relative; width: 2.5em; height: 1.45em; border-radius: 99px; background: #cfd9de; }
.tg i { position: absolute; top: .18em; left: .18em; width: 1.09em; height: 1.09em; border-radius: 50%; background: #fff; box-shadow: 0 .05em .2em rgba(15, 23, 42, .25); }
.tg.on { background: #005855; }
.tg.on i { left: auto; right: .18em; }
.ex-add { display: flex; align-items: center; justify-content: center; gap: .4em; margin: 0 1em; padding: .7em; border-radius: 1em; border: .1em dashed #8fbdb7; color: #005855; font-weight: 700; font-size: .9em; }
.ex-add svg { width: 1.1em; height: 1.1em; }

/* помощник: заявки рядом */
.rq-map { height: 25.5em; }
.map .m-pin rect { fill: #fff; stroke: #cddbd8; stroke-width: 1; }
.map .m-pin path { fill: #fff; }
.map .m-pin text { font: 700 12px var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif); fill: #005855; text-anchor: middle; dominant-baseline: central; }
.map .m-pin.sel rect, .map .m-pin.sel path { fill: #005855; stroke: #fff; stroke-width: 2; }
.map .m-pin.sel text { fill: #fff; font-size: 13px; }
.cg-eta svg { flex: none; }
.rq { gap: .5em; }
.rq .chip { align-self: flex-start; font-size: .78em; }
.rq .who { font-size: 1.3em; }
.rq-l { display: grid; gap: .45em; font-size: .9em; font-weight: 600; }
.rq-l > span { display: flex; align-items: center; gap: .45em; }
.rq-l svg { width: 1.1em; height: 1.1em; color: #5b6b7a; }
.rq-days { display: flex; gap: .3em; }
.rq-days i { flex: 1; font-style: normal; text-align: center; padding: .3em 0; border-radius: .5em; background: #005855; color: #fff; font-size: .78em; font-weight: 700; }
.rq-trial { margin: .1em 0 0; padding: .55em .75em; border-radius: .8em; background: #fff1d1; color: #7a5000; font-size: .82em; font-weight: 600; }

/* консоль: одобрение пробного визита (CW-21) */
.ap { display: grid; grid-template-columns: 136px minmax(0, 1fr); min-height: 100%; font-size: 13px; line-height: 1.3; }
.ap-nav { display: grid; align-content: start; gap: 2px; padding: 16px 10px; background: #f6f8f9; border-right: 1px solid #e6ecef; }
.ap-nav span { padding: 8px 10px; border-radius: 9px; color: #5b6b7a; font-weight: 600; }
.ap-nav .on { background: #e2f1ee; color: #005855; }
.ap-main { padding: 16px 18px 18px; min-width: 0; }
.ap-t { display: block; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
.ap-req, .ap-cg { background: #f6f8f9; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.ap .chip { font-size: 11.5px; }
.ap-req .chip { margin-bottom: 10px; }
.ap-who { display: flex; align-items: center; gap: 10px; }
.ap-who b { display: block; font-size: 14.5px; }
.ap-who small { color: #5b6b7a; font-size: 12px; }
.ap .av { width: 36px; height: 36px; font-size: 12px; }
.ap .av.lg { width: 44px; height: 44px; font-size: 14px; }
.ap dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.ap dl .w { grid-column: 1 / -1; }
.ap dt { color: #5b6b7a; font-size: 11.5px; }
.ap dd { margin: 2px 0 0; font-weight: 700; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; }
.ap-stats small { display: block; color: #5b6b7a; font-size: 11px; line-height: 1.2; min-height: 2.4em; }
.ap-stats b { font-size: 17px; }
.ap-fit { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 9px; border-radius: 9px; background: #e3f4ec; color: #0b7a4b; font-weight: 700; font-size: 12px; }
.ap-fit svg { width: 14px; height: 14px; flex: none; }
.ap-q { margin: 0 0 12px; color: #36544f; font-style: italic; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ap-btns .b { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 12.5px; }
.ap-btns .ol { border: 1.5px solid #cddbd8; color: #36544f; }
.ap-btns .go { background: #005855; color: #fff; }
.ap-btns svg { width: 14px; height: 14px; }
@container (max-width: 640px) { .ap { grid-template-columns: 1fr; } .ap-nav { display: none; } .ap-grid { grid-template-columns: 1fr; } }
@container (max-width: 380px) { .ap-stats { grid-template-columns: 1fr 1fr; } .ap-btns .ol { display: none; } }

/* пробный визит */
.chip.tm { margin-left: auto; font-size: .8em; }
.tr-in { display: flex; align-items: center; gap: .5em; font-size: .82em; font-weight: 600; color: #0b7a4b; background: #e3f4ec; box-shadow: none; }
.tr-in svg { width: 1.2em; height: 1.2em; flex: none; }
.tr-l li { display: flex; gap: .7em; align-items: center; padding: .55em 0; border-bottom: 1px solid #edf1f3; }
.tr-l li:last-child { border-bottom: 0; }
.tr-l b { display: block; font-size: .9em; font-weight: 600; }
.tr-l li.on b { color: #5b6b7a; text-decoration: line-through; text-decoration-color: #9fb3b1; }
.tr-l small { display: block; font-size: .74em; color: #0b7a4b; font-weight: 600; }
.tr-voice { display: flex; align-items: center; gap: .55em; margin: 0 1em .6em; padding: .75em .9em; border-radius: 1em; background: #e2f1ee; color: #005855; font-weight: 700; font-size: .9em; }
.tr-voice svg { width: 1.25em; height: 1.25em; }
.tr-prob { display: flex; align-items: center; justify-content: center; gap: .4em; color: #005855; font-weight: 600; font-size: .82em; }
.tr-prob svg { width: 1.1em; height: 1.1em; }

/* отзыв клиента: крупно */
.fb-head { display: flex; align-items: center; gap: .8em; padding: 1em 1.25em .9em; }
.fb-head small { display: block; color: #5b6b7a; font-size: .85em; }
.fb-head b { display: block; font-size: 1.45em; font-weight: 700; line-height: 1.15; }
.fb-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin: 0 1em; }
.fb-o { display: flex; flex-direction: column; align-items: center; gap: .4em; padding: .9em .3em; border-radius: 1.1em; background: #fff; border: .12em solid #dce4e8; color: #5b6b7a; }
.fb-o svg { width: 2.4em; height: 2.4em; }
.fb-o b { font-size: .9em; font-weight: 700; color: #0f172a; text-align: center; }
.fb-o.on { border-color: #005855; background: #eef7f5; color: #005855; }
.fb-q { margin: 1.1em 1.25em .7em; font-size: 1.25em; font-weight: 700; line-height: 1.2; }
.fb .app-btn { margin: 0 1em .6em; display: flex; align-items: center; justify-content: center; gap: .45em; font-size: 1.1em; }
.fb .app-btn svg { width: 1.1em; height: 1.1em; }
.fb-n { margin-top: auto; margin-bottom: 2.3em; }

/* расписание помощника */
.sc-seg { margin: 0 1.1em .2em; }
.sc-l li { display: flex; gap: .8em; align-items: flex-start; padding: .55em 0; border-bottom: 1px solid #edf1f3; }
.sc-l li:last-child { border-bottom: 0; }
.sc-t { flex: none; width: 3.1em; font-size: .78em; color: #5b6b7a; }
.sc-t b { display: block; font-size: 1.3em; color: #0f172a; }
.sc-l b { font-size: .95em; font-weight: 700; }
.sc-l small { display: block; font-size: .78em; color: #5b6b7a; margin: .1em 0 .3em; }
.sc-l .chip { font-size: .72em; }

/* курс */
.co-top { flex: none; padding: 0 1.25em 1em; background: #005855; color: #fff; border-radius: 0 0 1.4em 1.4em; }
.co-top .sb { padding-left: .85em; padding-right: .65em; }
.co-h { display: block; font-size: 1.55em; font-weight: 700; margin: .7em 0 .2em; }
.co-top small { display: block; font-size: .82em; color: #cfe3e0; }
.co-p { height: .35em; margin-top: .75em; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.co-p i { display: block; width: 30%; height: 100%; background: #fff; border-radius: 99px; }
.co-top .co-pn { margin-top: .35em; text-align: right; }
.co-l { margin-top: -.2em; padding: .35em .85em; }
.co-l li { display: flex; align-items: center; gap: .6em; padding: .42em 0; font-size: .82em; border-bottom: 1px solid #edf1f3; }
.co-l li:last-child { border-bottom: 0; }
.co-l .n { flex: none; display: flex; width: 1.75em; height: 1.75em; border-radius: 50%; align-items: center; justify-content: center; background: #edf1f3; color: #5b6b7a; font-weight: 700; font-size: .9em; }
.co-l .n svg { width: .95em; height: .95em; }
.co-l .done .n { background: #005855; color: #fff; }
.co-l .next .n { background: #fff1d1; color: #7a5000; }
.co-l b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-l .done b { color: #5b6b7a; }
.co-l small { color: #8a99a6; font-size: .9em; white-space: nowrap; }
.co-l .chip { font-size: .8em; }

/* экзамен */
.xm-lives { margin-left: auto; display: flex; gap: .15em; color: #0b7a4b; }
.xm-lives svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.xm-q { margin-top: .8em; margin-bottom: 1em; }
.xm-o { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.xm-o li { display: flex; align-items: center; gap: .7em; padding: .85em .9em; border-radius: 1em; background: #fff; border: .12em solid #dce4e8; font-size: .92em; font-weight: 600; line-height: 1.25; }
.xm-o .l { flex: none; display: flex; width: 1.8em; height: 1.8em; border-radius: 50%; align-items: center; justify-content: center; background: #edf1f3; font-weight: 700; color: #36544f; }
.xm-o li.on { border-color: #005855; background: #eef7f5; }
.xm-o li.on .l { background: #005855; color: #fff; }
.xm-hint { display: flex; gap: .5em; align-items: flex-start; margin: 1em 0 0; font-size: .8em; color: #5b6b7a; line-height: 1.35; }
.xm-hint svg { flex: none; width: 1.2em; height: 1.2em; color: #0b7a4b; }

/* проверка личности */
.ky { text-align: left; }
.ky-hero { display: flex; width: 3.6em; height: 3.6em; margin-top: .9em; border-radius: 1.1em; background: #e2f1ee; color: #005855; align-items: center; justify-content: center; }
.ky-hero svg { width: 2em; height: 2em; }
.ky h4 { margin: .2em 0 .5em; }
.ky-l { margin: 0 0 .8em; }
.ky-l li { display: flex; align-items: center; gap: .7em; padding: .5em 0; font-weight: 600; font-size: .92em; border-bottom: 1px solid #edf1f3; }
.ky-l li:last-child { border-bottom: 0; }
.ky-i { flex: none; display: flex; width: 2em; height: 2em; border-radius: .6em; background: #eef2f4; color: #005855; align-items: center; justify-content: center; }
.ky-i svg { width: 1.15em; height: 1.15em; }
.ky-s { display: flex; gap: .5em; align-items: flex-start; margin: 0 0 .8em; font-size: .78em; color: #5b6b7a; line-height: 1.35; }
.ky-s svg { flex: none; width: 1.2em; height: 1.2em; }
.ky-a { display: flex; gap: .6em; align-items: center; margin: 0; font-size: .85em; font-weight: 600; }
.ky ~ .app-btn.low { margin-bottom: .6em; }
.ky-later { flex: none; text-align: center; color: #005855; font-weight: 700; font-size: .92em; margin-bottom: 2.3em; }

/* чат с координаторами */
.ch-h { gap: .5em; border-bottom: 1px solid #e5eaed; background: #fff; }
.avs { display: flex; }
.avs .av { width: 2.1em; height: 2.1em; font-size: .72em; border: .12em solid #fff; }
.avs .av + .av { margin-left: -.55em; background: #e6eeff; color: #2f5fd0; }
.ch-h b { display: block; font-size: 1em; }
.ch-h small { display: flex; align-items: center; gap: .3em; font-size: .74em; color: #5b6b7a; white-space: nowrap; }
.ch-h small i { width: .5em; height: .5em; border-radius: 50%; background: #0b7a4b; }
.ah-p { margin-left: auto; display: flex; width: 2.2em; height: 2.2em; border-radius: 50%; background: #e2f1ee; color: #005855; align-items: center; justify-content: center; }
.ah-p svg { width: 1.05em; height: 1.05em; }
.ch-ctx { display: flex; align-items: center; gap: .45em; margin: .6em 1em .2em; padding: .5em .75em; border-radius: .8em; background: #e2f1ee; color: #005855; font-size: .78em; font-weight: 700; }
.ch-ctx svg { width: 1.15em; height: 1.15em; flex: none; }
.ch-body { display: flex; flex-direction: column; gap: .5em; padding: .6em 1em; }
.ch-m { max-width: 80%; }
.ch-m p { margin: 0; padding: .6em .8em; border-radius: 1em 1em 1em .3em; background: #fff; font-size: .86em; line-height: 1.3; box-shadow: 0 .05em .25em rgba(15, 23, 42, .06); }
.ch-m small { display: block; margin: .2em .4em 0; font-size: .68em; color: #8a99a6; }
.ch-m.out { align-self: flex-end; text-align: right; }
.ch-m.out p { background: #005855; color: #fff; border-radius: 1em 1em .3em 1em; text-align: left; }
.ch-sys { display: flex; align-items: center; justify-content: center; gap: .3em; margin: .1em 0; font-size: .72em; color: #5b6b7a; }
.ch-sys svg { width: 1.1em; height: 1.1em; }
.ch-q { margin-top: auto; display: flex; gap: .35em; padding: 0 1em .5em; overflow: hidden; }
.ch-q span { flex: none; padding: .45em .7em; border-radius: 999px; background: #fff; border: 1px solid #dce4e8; font-size: .76em; font-weight: 600; white-space: nowrap; }
.ch-in { display: flex; align-items: center; gap: .5em; margin: 0 1em 2.3em; }
.ch-in span { flex: 1; padding: .7em .9em; border-radius: 999px; background: #fff; border: 1px solid #dce4e8; color: #8a99a6; font-size: .86em; }
.ch-in i { flex: none; display: flex; width: 2.4em; height: 2.4em; border-radius: 50%; background: #005855; color: #fff; align-items: center; justify-content: center; }
.ch-in svg { width: 1.1em; height: 1.1em; }
.su-hint { display: flex; align-items: center; gap: .55em; margin: .9em 0 0; padding: .7em .85em; border-radius: 1em; background: #e2f1ee; color: #36544f; font-size: .8em; font-weight: 600; line-height: 1.3; }
.su-hint svg { flex: none; width: 1.3em; height: 1.3em; color: #005855; }
.tr-who { display: flex; align-items: center; gap: .7em; padding: .75em .9em; }
.tr-who b { display: block; font-size: 1em; font-weight: 700; }
.tr-who small { display: block; font-size: .76em; color: #5b6b7a; }
.tr-who .call { margin-left: auto; }
.tr-note { display: flex; align-items: center; gap: .5em; margin-top: auto; margin-bottom: .6em; }
.tr-note svg { flex: none; width: 1.25em; height: 1.25em; color: #005855; }
.tr-note + .app-btn.low { margin-top: 0; }
.fb-q2 { margin-top: 1em; font-size: 1em; }
.fb-likes { margin: 0 1em; gap: .4em; }
.fb-likes span { display: inline-flex; align-items: center; gap: .3em; font-size: .86em; padding: .45em .8em; }
.fb-likes span svg { width: .9em; height: .9em; color: #005855; }
.sc-sum { display: flex; align-items: center; gap: .55em; margin-top: auto; margin-bottom: .7em; font-weight: 600; }
.sc-sum svg { flex: none; width: 1.25em; height: 1.25em; color: #005855; }
.ap dl { grid-template-columns: 1fr; gap: 8px; }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-btns .b { justify-content: center; }
.ap-btns .go { grid-column: 1 / -1; order: 3; }
.win-ap { max-width: 860px; }
@container (max-width: 380px) { .ap-btns .ol { display: inline-flex; } }
.sc-sum + .ph-tabs { margin-top: 0; }

