/* Макет «Лагерь» — вид как у youit-camps.ru («Лагерь Юайти — план смены»).
   Токены сняты со стилей настоящей страницы (платформа/сайт/camp-template.html, :root светлой темы):
   шрифт Berlin Type (файлы брендбука рядом, в fonts/); фон #FAF7F3, поверхность #FFFFFF / #F5F0EA, утопленное #EFE8E0;
   текст #241F1C, приглушённый #736A64, бледный #A79C94, линия #E6DED4; поле #D8E8CC / #C7DEB8, вода #9FD4E8, дорога #CDC6BE;
   фирменные пары: оранжевая #F15A31→#FCAF17, зелёная #00B259→#39C2D7, малиновая #BD4B9B→#EE2E62.
   Всё под префиксом lg-, переменные сайта не используются; окно всегда светлое (тёмной темы внутри нет).
   Контраст: приглушённый и бледный текст, оранжевый текст (--lg-o1-t), номера отрядов на кружках и «М» в профиле затемнены
   на полтона — до 4,5:1; оранжевые кнопки и выбранный день — фирменные, как в настоящем. */
@font-face { font-family: "lg-Berlin"; src: url("fonts/BerlinType-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "lg-Berlin"; src: url("fonts/BerlinType-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

.lg {
  --lg-o1: #F15A31; --lg-o1-t: #C3340D; --lg-o2: #FCAF17; --lg-g1: #00B259; --lg-g2: #39C2D7; --lg-v1: #BD4B9B; --lg-v2: #EE2E62;
  --lg-bg: #FAF7F3; --lg-surface: #FFFFFF; --lg-surface2: #F5F0EA; --lg-sunken: #EFE8E0;
  --lg-ink: #241F1C; --lg-muted: #6F6660; --lg-faint: #93867C; --lg-line: #E6DED4;
  --lg-field: #D8E8CC; --lg-field2: #C7DEB8; --lg-water: #9FD4E8; --lg-path: #FFFFFF; --lg-road: #CDC6BE;
  --lg-shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .07);
  --lg-shadow-lg: 0 2px 6px rgba(60, 40, 20, .08), 0 20px 50px rgba(60, 40, 20, .14);
  position: relative; display: flex; flex-direction: column; height: 780px;
  font-family: "lg-Berlin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; font-size: 15px; line-height: 1.45;
  color: var(--lg-ink); background: var(--lg-bg); color-scheme: light; text-align: left; -webkit-font-smoothing: antialiased;
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
:where(.lg) button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; padding: 0; }
:where(.lg) input { font: inherit; color: inherit; }
.lg h2 { font-family: inherit; font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.01em; text-transform: none; }
.lg :focus-visible { outline: 2.5px solid var(--lg-o1); outline-offset: 2px; border-radius: 6px; }
.lg .lg-svg { stroke: none; }

/* Шапка: знак, «Лагерь Юайти» и даты смены, режимы, поиск, профиль */
.lg-bar { flex: none; display: flex; align-items: center; gap: 16px; padding: 11px 20px; background: var(--lg-bg); border-bottom: 1px solid var(--lg-line); flex-wrap: wrap; position: relative; z-index: 20; }
.lg-brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.lg-mark { display: block; height: 33px; width: auto; }
.lg-t1 { font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: -.02em; }
.lg-t2 { font-size: 13px; color: var(--lg-muted); line-height: 1.3; }
.lg-modes { display: flex; gap: 2px; background: var(--lg-sunken); padding: 3px; border-radius: 11px; }
.lg-modes button { padding: 7px 14px; border-radius: 8px; font-size: 14px; color: var(--lg-muted); transition: .16s; text-align: center; }
.lg-modes button:hover { color: var(--lg-ink); }
.lg-modes button[aria-pressed="true"] { background: var(--lg-surface); color: var(--lg-ink); font-weight: 700; box-shadow: var(--lg-shadow); }
.lg-searchwrap { position: relative; flex: 1 1 230px; max-width: 380px; margin-left: auto; }
.lg-search { display: flex; align-items: center; gap: 9px; background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 11px; padding: 0 12px; box-shadow: var(--lg-shadow); }
.lg-ik-poisk { flex: 0 0 auto; fill: none; stroke: var(--lg-faint); stroke-width: 1.8; stroke-linecap: round; }
.lg-search input { border: 0; background: none; outline: none; padding: 9px 0; width: 100%; font-size: 14px; min-width: 0; }
.lg-search input::placeholder { color: var(--lg-muted); opacity: 1; }
.lg-search input::-webkit-search-cancel-button { display: none; }
.lg-search:focus-within { border-color: var(--lg-o1); }
.lg-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 13px; box-shadow: var(--lg-shadow-lg);
  max-height: 420px; overflow-y: auto; padding: 6px; display: none; z-index: 60; }
.lg-results.lg-on { display: block; }
.lg-res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; }
.lg-res:hover, .lg-res:focus-visible { background: var(--lg-surface2); }
.lg-rn { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-rl { font-size: 13px; color: var(--lg-muted); flex: 0 0 auto; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.lg-empty { padding: 12px; font-size: 14px; color: var(--lg-muted); margin: 0; }
.lg-mewrap { position: relative; flex: 0 0 auto; }
.lg-mebtn { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1px solid var(--lg-line); background: var(--lg-surface); box-shadow: var(--lg-shadow); }
.lg-mebtn:hover { background: var(--lg-surface2); }
.lg-meava { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #3B1606;
  background: linear-gradient(135deg, var(--lg-o1), var(--lg-o2)); }
.lg-meava.lg-lg { width: 44px; height: 44px; font-size: 17px; }
.lg-menm { font-size: 14px; }
.lg-mechev { font-size: 13px; color: var(--lg-faint); }
.lg-mecard { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 14px; box-shadow: var(--lg-shadow-lg); padding: 15px; display: none; z-index: 70; }
.lg-mecard.lg-on { display: block; }
.lg-mehead { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.lg-mehead b { display: block; font-size: 15px; line-height: 1.2; }
.lg-mehead span:not(.lg-meava) { font-size: 13px; color: var(--lg-muted); }
.lg-mehint { font-size: 13px; color: var(--lg-muted); line-height: 1.4; margin: 0; }
.lg-mesave { width: 100%; margin-top: 12px; padding: 10px; border-radius: 9px; background: var(--lg-o1); color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.lg-meout { display: block; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lg-line); font-size: 14px; color: var(--lg-muted); text-align: center; }
.lg-meout:hover { color: var(--lg-v2); }

/* Карта и панель */
.lg-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.lg-map { position: relative; background: var(--lg-sunken); overflow: hidden; min-height: 0; }
.lg-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.lg-field { fill: var(--lg-field); }
.lg-field2 { fill: var(--lg-field2); opacity: .5; }
.lg-road { fill: none; stroke: var(--lg-road); stroke-width: 19; stroke-linecap: round; }
.lg-fence { fill: none; stroke: var(--lg-faint); stroke-width: 2.2; stroke-dasharray: 7 7; opacity: .5; }
.lg-path { fill: none; stroke: var(--lg-path); stroke-width: 8; stroke-linecap: round; opacity: .85; }
.lg-path-uz { stroke-width: 5; opacity: .8; }
.lg-water { fill: var(--lg-water); }
.lg-water-blik { fill: none; stroke: #fff; stroke-width: 3; opacity: .35; stroke-linecap: round; }
.lg-trees { opacity: .72; }
.lg-besedka { opacity: .92; transition: opacity .25s; }
.lg-besedka-k { fill: #E9DCC4; stroke: #C9B892; stroke-width: 1.3; }
.lg-besedka-ks { fill: none; stroke: #C9B892; stroke-width: 1.6; stroke-linecap: round; }
.lg-map-note { font-family: "lg-Berlin", sans-serif; font-size: 14px; fill: var(--lg-ink); opacity: .8; }
.lg-b-hit, .lg-v-hit { cursor: pointer; outline: none; }
.lg-b-body, .lg-v-body { transition: filter .18s; }
.lg-v-body { fill: var(--lg-surface); stroke: var(--lg-line); stroke-width: 1.5; }
.lg-b-hit:hover .lg-b-body, .lg-b-hit:focus-visible .lg-b-body, .lg-v-hit:hover .lg-v-body, .lg-v-hit:focus-visible .lg-v-body { filter: brightness(1.07); }
.lg-b-label { font-family: "lg-Berlin", sans-serif; font-weight: 700; fill: #fff; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, .22); stroke-width: 3px; stroke-linejoin: round; }
.lg-b-cnt { font-family: "lg-Berlin", sans-serif; font-size: 13px; fill: #fff; fill-opacity: .92; pointer-events: none; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(0, 0, 0, .2); stroke-width: 2.5px; stroke-linejoin: round; }
.lg-v-label { font-family: "lg-Berlin", sans-serif; font-size: 14px; fill: var(--lg-muted); pointer-events: none; font-weight: 700; }
.lg-v-cnt { font-family: "lg-Berlin", sans-serif; font-size: 13px; fill: var(--lg-faint); pointer-events: none; }
/* Остальные дома не гасим (Матвей 22.11: «размытость убрать»): выбранный выделен кольцом. */
.lg-dim { opacity: 1; }
.lg-ring { fill: none; stroke: var(--lg-o1); stroke-width: 4; opacity: 0; }
.lg-sel .lg-ring { opacity: 1; }
.lg-hit .lg-ring { opacity: 1; stroke: var(--lg-v2); animation: lg-pulse 1.5s ease-out infinite; }
@keyframes lg-pulse { 0% { stroke-width: 3; opacity: 1; } 70% { stroke-width: 16; opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lg-hit .lg-ring { animation: none; opacity: 1; } }
.lg-hint { position: absolute; right: 16px; top: 16px; font-size: 13px; color: var(--lg-muted); background: rgba(255, 255, 255, .92); border: 1px solid var(--lg-line); border-radius: 9px; padding: 6px 11px; box-shadow: var(--lg-shadow); pointer-events: none; }
.lg-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 7px; background: rgba(255, 255, 255, .92); border: 1px solid var(--lg-line); border-radius: 12px; padding: 11px 13px; box-shadow: var(--lg-shadow); font-size: 13px; }
.lg-lgi { display: flex; align-items: center; gap: 8px; color: var(--lg-muted); }
.lg-lgi i { width: 16px; height: 9px; border-radius: 3px; display: block; flex: 0 0 auto; }
.lg-lgi .lg-lgi-belyj { background: var(--lg-surface); border: 1.5px solid var(--lg-line); }
.lg-zoomc { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .92); border: 1px solid var(--lg-line); border-radius: 12px; box-shadow: var(--lg-shadow); overflow: hidden; }
.lg-zoomc button { width: 42px; height: 42px; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--lg-muted); text-align: center; }
.lg-zoomc button:hover { background: var(--lg-surface2); color: var(--lg-ink); }
.lg-zoomc button + button { border-top: 1px solid var(--lg-line); }

.lg-panel { background: var(--lg-surface); border-left: 1px solid var(--lg-line); overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.lg-pin { padding: 22px 24px 40px; }
.lg-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--lg-muted); padding: 5px 10px 5px 6px; border-radius: 8px; margin-bottom: 14px; }
.lg-back:hover { background: var(--lg-surface2); color: var(--lg-ink); }
.lg-ik-nazad { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-stripe { height: 5px; border-radius: 99px; margin-bottom: 14px; }
.lg-eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); font-weight: 700; }
.lg-ptitle { font-size: 26px; line-height: 1.1; margin: 6px 0 4px; }
.lg-psub { font-size: 14px; color: var(--lg-muted); margin: 0 0 16px; }
.lg-sec { margin: 24px 0 9px; }
.lg-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.lg-kpi { background: var(--lg-surface2); border-radius: 11px; padding: 11px 12px; }
.lg-kpi b { display: block; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lg-kpi span { font-size: 13px; color: var(--lg-muted); }
.lg-blist { display: flex; flex-direction: column; gap: 7px; }
.lg-bcard { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--lg-surface2); border-radius: 12px; padding: 12px 13px; transition: .15s; border: 1px solid transparent; }
.lg-bcard:hover, .lg-bcard:focus-visible { border-color: var(--lg-line); transform: translateX(2px); }
.lg-bar-i { width: 5px; align-self: stretch; border-radius: 99px; flex: 0 0 auto; }
.lg-bc-t { flex: 1; min-width: 0; }
.lg-bc-n { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.lg-bc-s { display: block; font-size: 13px; color: var(--lg-muted); line-height: 1.3; margin-top: 2px; }
.lg-bc-c { font-size: 14px; color: var(--lg-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.lg-bc-c b { color: var(--lg-ink); }
.lg-note-box { font-size: 13px; color: var(--lg-muted); background: var(--lg-surface2); border-radius: 11px; padding: 12px 13px; margin: 18px 0 0; line-height: 1.5; }
.lg-note-box b { color: var(--lg-ink); }
.lg-ssylka { color: var(--lg-o1-t); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; display: inline; }
.lg-ssylka:hover { color: #A82B0A; }

/* Дом: комнаты и жильцы */
.lg-room { background: var(--lg-surface2); border-radius: 13px; padding: 13px 14px; margin-bottom: 9px; }
.lg-rhead { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; }
.lg-rname { font-weight: 700; font-size: 14px; }
.lg-rcap { font-size: 13px; color: var(--lg-muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.lg-people { display: flex; flex-direction: column; gap: 5px; }
.lg-p { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; background: var(--lg-surface); transition: .2s; scroll-margin: 80px; width: 100%; }
.lg-p.lg-on { background: #FDEBC4; box-shadow: 0 0 0 2px var(--lg-o1); }
.lg-g { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.lg-pn { font-size: 14px; flex: 1; min-width: 0; }
.lg-pnote { display: block; font-size: 13px; color: var(--lg-o1-t); line-height: 1.3; margin-top: 1px; }
.lg-pa { font-size: 13px; color: var(--lg-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.lg-p.lg-free { background: none; border: 1.5px dashed var(--lg-line); color: var(--lg-muted); font-size: 13px; padding: 5px 8px; }
.lg-sqb { width: 19px; height: 19px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--c); background: color-mix(in srgb, var(--c) 66%, #000); text-align: center; line-height: 1; }
.lg-sqb:hover { filter: brightness(1.12); }
.lg-p-knopka { background: var(--lg-surface2); }
.lg-p-knopka:hover { background: var(--lg-sunken); }

/* Отряды */
.lg-board { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 6px; }
.lg-sqrow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border: 1px solid var(--lg-line); border-radius: 13px; background: var(--lg-surface); }
.lg-sqrow:hover { border-color: var(--c); background: var(--lg-sunken); }
.lg-sqno { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--c); background: color-mix(in srgb, var(--c) 66%, #000); color: #fff; font-weight: 700; font-size: 14px; }
.lg-sqmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-sqtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.lg-sqtop b { font-size: 15px; }
.lg-sqtop i { font-style: normal; font-size: 13px; color: var(--lg-muted); }
.lg-sqbar { display: block; height: 10px; border-radius: 6px; background: var(--lg-sunken); overflow: hidden; }
.lg-sqfill { display: block; height: 10px; border-radius: 6px; background: var(--c); }
.lg-sqpts { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; gap: 1px; }
.lg-sqpts b { font-size: 19px; line-height: 1; }
.lg-sqpts i { font-style: normal; font-size: 13px; color: var(--lg-muted); }
.lg-jour { display: flex; flex-direction: column; gap: 5px; }
.lg-jrow { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: var(--lg-sunken); }
.lg-jsq { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background: var(--c); background: color-mix(in srgb, var(--c) 66%, #000); }
.lg-jtx { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.lg-jtx i { font-style: normal; color: var(--lg-muted); font-size: 13px; }
.lg-jd { flex: 0 0 auto; font-weight: 700; font-size: 15px; color: #007838; }
.lg-jd.lg-minus { color: #B63E1C; }
.lg-teach { display: flex; align-items: center; gap: 10px; background: var(--lg-surface2); border-radius: 11px; padding: 11px 13px; margin-bottom: 14px; }
.lg-tl { font-size: 13px; color: var(--lg-muted); flex: 0 0 auto; }
.lg-tv { font-weight: 700; font-size: 14px; }

/* День */
.lg-days { display: flex; gap: 3px; margin: 0 0 16px; }
.lg-days button { flex: 1 1 0; min-width: 0; padding: 6px 0; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--lg-muted); background: var(--lg-surface2); border: 1px solid transparent; text-align: center; }
.lg-days button b { font-size: 15px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lg-days button span { font-size: 13px; line-height: 1; }
.lg-days button.lg-today { border-color: rgba(241, 90, 49, .6); }
.lg-days button:hover { color: var(--lg-ink); }
.lg-days button[aria-pressed="true"] { background: var(--lg-o1); color: #fff; }
.lg-ev { display: flex; gap: 11px; align-items: flex-start; background: var(--lg-surface2); border-radius: 11px; padding: 11px 12px; width: 100%; }
.lg-ev + .lg-ev { margin-top: 6px; }
.lg-kd { width: 4px; align-self: stretch; border-radius: 99px; flex: 0 0 auto; min-height: 28px; }
.lg-t { font-size: 13px; color: var(--lg-muted); font-variant-numeric: tabular-nums; flex: 0 0 92px; padding-top: 1px; }
.lg-b { flex: 1; min-width: 0; }
.lg-n { display: block; font-weight: 700; font-size: 14px; }
.lg-g2 { display: block; font-size: 13px; color: var(--lg-muted); }
.lg-ev.lg-main-ev { background: linear-gradient(135deg, #FBE3D8, var(--lg-surface2)); }
.lg-ev.lg-act { cursor: pointer; transition: .15s; }
.lg-ev.lg-act:hover, .lg-ev.lg-act:focus-visible { background: var(--lg-sunken); }
.lg-arr { color: var(--lg-faint); font-size: 16px; flex: 0 0 auto; }
.lg-aud { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--lg-surface2); border-radius: 11px; padding: 10px 12px; }
.lg-aud + .lg-aud { margin-top: 5px; }
.lg-ab { flex: 1; min-width: 0; }
.lg-ag { display: block; font-weight: 700; font-size: 14px; }
.lg-al { display: block; font-size: 13px; color: var(--lg-muted); margin-top: 1px; }
.lg-an { font-size: 13px; color: var(--lg-faint); flex: 0 0 auto; }

/* Памятка */
.lg-rules { display: flex; flex-direction: column; gap: 8px; }
.lg-rule { display: flex; gap: 12px; background: var(--lg-surface2); border-radius: 12px; padding: 12px 14px; }
.lg-rn-n { font-weight: 700; font-size: 15px; color: var(--lg-o1-t); flex: 0 0 16px; }
.lg-rb b { display: block; font-size: 14px; margin-bottom: 2px; }
.lg-rb span { display: block; font-size: 13px; color: var(--lg-muted); line-height: 1.45; }
.lg-cts { display: flex; flex-direction: column; gap: 7px; }
.lg-ct { display: flex; align-items: center; gap: 12px; background: var(--lg-surface2); border-radius: 12px; padding: 12px 14px; }
.lg-cb { flex: 1; min-width: 0; }
.lg-cn { display: block; font-weight: 700; font-size: 14px; }
.lg-cr { display: block; font-size: 13px; color: var(--lg-muted); margin-top: 1px; }
.lg-cp { font-size: 14px; color: var(--lg-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* Вход: как страница входа youit-camps.ru */
.lg-ekran { height: auto; min-height: 620px; }
.lg-vhod { flex: 1; display: grid; place-items: center; padding: 40px 16px; }
.lg-vhod-karta { width: 100%; max-width: 380px; background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 18px; padding: 30px 28px; box-shadow: 0 20px 50px rgba(60, 40, 20, .1); display: flex; flex-direction: column; }
.lg-tochki { display: flex; gap: 9px; margin-bottom: 18px; }
.lg-tochki i { width: 11px; height: 11px; border-radius: 50%; background: var(--lg-o1); }
.lg-tochki i:nth-child(2) { background: #1FB98F; }
.lg-tochki i:nth-child(3) { background: #D9327E; }
.lg-vhod-karta h2 { font-size: 22px; }
.lg-vhod-sub { color: var(--lg-muted); font-size: 14px; margin: 6px 0 20px; }
.lg-vhod-karta label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--lg-muted); margin-bottom: 14px; }
.lg-vhod-karta input { font-size: 16px; padding: 11px 12px; border: 1px solid var(--lg-line); border-radius: 10px; background: var(--lg-bg); color: var(--lg-ink); outline: none; }
.lg-vhod-karta input:focus { border-color: var(--lg-o1); box-shadow: 0 0 0 2px rgba(241, 90, 49, .25); }
.lg-vojti { margin-top: 6px; padding: 12px; border-radius: 10px; background: var(--lg-o1); color: #fff; font-weight: 700; font-size: 16px; text-align: center; }
.lg-vojti:hover { background: #dd4b24; }
.lg-vhod-niz { margin: 16px 0 0; font-size: 13px; color: var(--lg-muted); text-align: center; }
.lg-vhod-demo { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--lg-line); font-size: 13px; color: var(--lg-muted); text-align: center; }

/* Бот смены в Telegram */
.lg-botekran { padding: 18px 20px 24px; }
.lg-botwrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.lg-tg { border-radius: 16px; overflow: hidden; border: 1px solid #D5DEE6; background: #fff; box-shadow: var(--lg-shadow); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lg-tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #E4E9EE; }
.lg-tg-ava { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #FFF4EC; padding: 5px; }
.lg-tg-head b { display: block; font-size: 15px; }
.lg-tg-head small { display: block; font-size: 13px; color: #667686; }
.lg-tg-body { height: 420px; overflow-y: auto; padding: 14px 12px; background: #DCE8D2; display: flex; flex-direction: column; gap: 8px; }
.lg-msg { display: flex; flex-direction: column; max-width: 86%; }
.lg-msg--bot { align-self: flex-start; }
.lg-msg--ya { align-self: flex-end; }
.lg-bubble { padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.42; background: #fff; color: #111; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow-wrap: anywhere; }
.lg-msg--bot .lg-bubble { border-bottom-left-radius: 5px; }
.lg-msg--ya .lg-bubble { background: #E4F8CF; border-bottom-right-radius: 5px; }
.lg-bubble code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: #F1F4F6; padding: 0 4px; border-radius: 4px; }
.lg-tg-time { display: inline-block; min-width: 86px; color: #5E7180; font-variant-numeric: tabular-nums; }
.lg-ikb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.lg-ikb button { background: rgba(255, 255, 255, .78); color: #2C6CA3; border-radius: 9px; padding: 8px 6px; font-size: 14px; font-weight: 600; text-align: center; }
.lg-ikb button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lg-ikb button:hover { background: #fff; }
.lg-tg-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #E4E9EE; background: #fff; }
.lg-tg-form input { flex: 1; min-width: 0; border: 1px solid #DDE3E8; border-radius: 20px; padding: 9px 14px; font-size: 16px; outline: none; }
.lg-tg-form input:focus { border-color: #3A8FD9; }
.lg-tg-send { width: 40px; height: 40px; border-radius: 50%; background: #3A8FD9; display: grid; place-items: center; flex: none; }
.lg-tg-send svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lg-bot-side { display: flex; flex-direction: column; gap: 12px; }
.lg-bot-side .lg-ptitle-s { font-size: 22px; margin: 0; }
.lg-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lg-codes { display: flex; flex-direction: column; gap: 6px; background: var(--lg-surface2); border-radius: 12px; padding: 12px; }
.lg-codes b { font-size: 14px; }
.lg-code { display: flex; align-items: center; gap: 10px; background: var(--lg-surface); border: 1px solid var(--lg-line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.lg-code:hover { border-color: var(--lg-o1); }
.lg-code code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--lg-o1-t); }
.lg-bot-side .lg-note-box { margin: 0; }
.lg-snova { align-self: flex-start; font-size: 14px; color: var(--lg-muted); text-decoration: underline; text-underline-offset: 2px; }

.lg-tost { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: #2A2421; color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 14px;
  width: max-content; max-width: calc(100% - 24px); text-align: center; box-shadow: var(--lg-shadow-lg); }
.lg-tost[hidden] { display: none; }

/* ── Узкое окно: карта сверху, панель под ней, как настоящий сервис на планшете и телефоне ── */
.lg--uzko { height: auto; }
.lg--uzko .lg-main { grid-template-columns: 1fr; }
.lg--uzko .lg-map { height: 440px; }
.lg--uzko .lg-panel { border-left: 0; border-top: 1px solid var(--lg-line); overflow: visible; }
.lg--uzko .lg-searchwrap { max-width: none; flex: 1 1 220px; }
.lg--uzko .lg-legend { display: none; }
.lg--uzko .lg-botwrap { grid-template-columns: 1fr; }
.lg--telefon .lg-bar { gap: 9px; padding: 9px 12px; }
.lg--telefon .lg-brand { order: 1; }
.lg--telefon .lg-mark { height: 28px; }
.lg--telefon .lg-t2 { display: none; }
.lg--telefon .lg-searchwrap { order: 2; flex: 1 1 auto; min-width: 0; }
.lg--telefon .lg-mewrap { order: 3; }
.lg--telefon .lg-mebtn { padding: 5px; }
.lg--telefon .lg-menm, .lg--telefon .lg-mechev { display: none; }
.lg--telefon .lg-mecard { width: min(280px, calc(100vw - 48px)); }
.lg--telefon .lg-modes { order: 4; flex: 1 1 100%; }
.lg--telefon .lg-modes button { flex: 1; padding: 9px 4px; font-size: 14px; }
.lg--telefon .lg-search input { font-size: 16px; }
.lg--telefon .lg-map { height: 340px; }
.lg--telefon .lg-hint { display: none; }
.lg--telefon .lg-zoomc { right: 8px; bottom: 8px; flex-direction: row; }
.lg--telefon .lg-zoomc button { width: 40px; height: 40px; }
.lg--telefon .lg-zoomc button + button { border-top: 0; border-left: 1px solid var(--lg-line); }
.lg--telefon .lg-pin { padding: 18px 16px 32px; }
.lg--telefon .lg-ptitle { font-size: 23px; }
.lg--telefon .lg-kpis { gap: 6px; }
.lg--telefon .lg-kpi { padding: 10px; }
.lg--telefon .lg-kpi b { font-size: 20px; }
.lg--telefon .lg-t { flex: 0 0 78px; }
.lg--telefon .lg-botekran { padding: 12px 10px 18px; }
.lg--telefon .lg-tg-body { height: 360px; }
.lg--telefon .lg-brand > div { min-width: 0; }
@media (max-width: 380px) { .lg--telefon .lg-brand > div { display: none; } }

/* Ссылка под окном (оболочка страницы) */
.lg-pod-oknom { margin-top: 6px; }
