/* Дизайн-система ЧистоЗелено (по прототипу docs/04-pitch/prototype) */
:root{
  --green:#2f9e44; --green2:#40c057; --dark:#1b4332; --ink:#263238;
  --muted:#868e96; --bg:#f6fbf7; --band:#ebfbee; --yellow:#f0b429; --card:#fff; --line:#e6efe9;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif}
body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh;display:flex;flex-direction:column}

/* мобильная колонка по центру (без корпуса телефона) */
.page{flex:1;width:100%;max-width:480px;margin:0 auto;padding:16px 16px 96px}
h1{font-size:22px;color:var(--dark);margin:6px 0 2px}
/* Единая шкала заголовков приложения: h2 — раздел страницы, h3 — блок внутри
   раздела, h4 — подзаголовок (например, фракция). Компоненты могут уточнять
   размер у себя, но базовые отступы и цвет заданы здесь (заказчик 2026-10-14). */
h2{font-size:19px;font-weight:700;line-height:1.3;letter-spacing:.01em;color:var(--dark);margin:20px 0 8px}
h3{font-size:16px;font-weight:600;line-height:1.35;letter-spacing:.01em;color:var(--dark);margin:16px 0 6px}
h4{font-size:15px;font-weight:600;line-height:1.35;color:var(--dark);margin:14px 0 6px}
.sub{font-size:13px;color:var(--muted);margin:0 0 14px}

/* карточки / hero */
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:12px}
.hero{background:linear-gradient(180deg,var(--green2),var(--green));color:#fff;border:none}
.hero .big{font-size:26px;font-weight:800;margin:2px 0}
.hero small{opacity:.9;font-size:12px}
.strip{background:var(--band);border:1px dashed var(--green2);color:var(--dark);border-radius:14px;padding:12px 14px;font-size:13px}
.sect{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:14px 2px 8px}

/* кнопки */
.btn{display:block;width:100%;border:none;border-radius:14px;font-weight:700;cursor:pointer;padding:14px 16px;font-size:15px;text-align:center;text-decoration:none}
.btn-green{background:var(--action-bg,#FD5506);color:#fff}
.btn-red{background:#e03131;color:#fff}
.picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.picker-tile{display:block;padding:14px 10px;border:1px solid #dee2e6;border-radius:12px;text-align:center;font-size:13px;color:var(--dark);text-decoration:none;background:#fff}
.picker-tile:active{background:#f1f3f5}
.picker-tile .tile-emoji{display:block;font-size:22px;margin-bottom:6px}
.picker-tile.ai{background:#e7f5ff;border-color:#74c0fc}
.btn-yellow{background:var(--yellow);color:#fff}
.btn-ghost{background:#fff;color:var(--ink,#202936);border:1px solid var(--line)}
.btn-white{background:#fff;color:var(--ink,#202936);padding:10px 16px;width:auto}

/* мелочи */
.chip{display:inline-block;background:#fff3cd;color:#8a5a00;font-size:11px;font-weight:700;padding:3px 10px;border-radius:11px}
.chip-g{display:inline-block;background:var(--band);color:#2b8a3e;font-size:11px;font-weight:700;padding:3px 10px;border-radius:11px}
.tag{display:inline-block;background:var(--band);color:#2b8a3e;font-size:11px;font-weight:700;padding:3px 10px;border-radius:11px;margin:2px 4px 2px 0}
.note{font-size:11px;color:var(--muted);font-style:italic}
.hint{text-align:center;color:#5c6b62;font-size:12px;margin-top:12px}
.back{display:inline-block;background:none;border:none;color:var(--green);font-weight:700;font-size:14px;cursor:pointer;padding:0;margin-bottom:8px;text-decoration:none}

/* баланс на главной */
.bal{display:flex;justify-content:space-between;align-items:center;gap:14px}
.bal-score{display:flex;flex-direction:column;align-items:flex-start}
.bal-value{display:flex;align-items:center;gap:9px;line-height:1}
.bal .n{font-size:34px;font-weight:800}
.bal-value .caps-icon{width:51px;height:auto;flex:none}
.bal-score small{display:block;margin:0 auto}
.bal .lvl{font-size:12px;font-weight:700;background:rgba(255,255,255,.2);padding:6px 12px;border-radius:14px}

/* чек-лист действий */
.row{display:flex;align-items:center;gap:12px;padding:10px 2px;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:none}
.cbx{width:24px;height:24px;border-radius:8px;background:var(--band);border:2px solid var(--green2);display:flex;align-items:center;justify-content:center;flex:none}
.cbx svg{opacity:0}
.row.done .cbx{background:var(--green)}
.row.done .cbx svg{opacity:1}
.row .label{flex:1;font-size:14px;color:var(--dark)}
.row .pts{font-size:13px;font-weight:800;color:var(--green)}

/* карта (мокап) */
.map{position:relative;height:230px;background:linear-gradient(160deg,#e7f4ea,#d8ecdd);border-radius:16px;overflow:hidden;margin-bottom:12px;border:1px solid var(--line)}
.road{position:absolute;background:#fff;opacity:.8;border-radius:4px}
.pin{position:absolute;width:16px;height:16px;background:var(--green);border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 6px rgba(0,0,0,.25)}
.pin::after{content:'';position:absolute;top:4px;left:4px;width:8px;height:8px;background:#fff;border-radius:50%}
.me{position:absolute;width:16px;height:16px;background:#1a73e8;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 6px rgba(26,115,232,.2)}

/* лига */
.banner{display:flex;gap:14px;align-items:center;background:var(--band);border-radius:16px;padding:16px 18px;margin-bottom:12px}
.banner-title{font-size:15px;font-weight:700;line-height:1.35;color:#4a5560}
.banner-note{font-size:13px;line-height:1.35;color:var(--muted);margin-top:2px}
.medal{width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#e8edf2,#c0c8d0);flex:none;overflow:hidden;display:flex;align-items:center;justify-content:center}
.medal img{width:100%;height:100%;object-fit:cover;display:block}
.medal .topbar-league-badge{width:46px;height:46px;font-size:19px}
.lrow{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:8px}
.lrow.you{border:2px solid var(--green);background:#fbfffc}
.rank{width:22px;text-align:center;font-weight:800;color:var(--muted)}
.ava{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;flex:none}
.lname{flex:1;font-size:14px;color:var(--dark)}
.lpts{font-weight:800;color:var(--dark);font-size:14px}

/* камера (скан) */
.cam{position:relative;height:260px;background:#10261c;border-radius:16px;margin-bottom:12px;overflow:hidden}
.bracket{position:absolute;width:34px;height:34px;border:4px solid var(--green2);border-radius:6px}
.bottle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:120px;background:linear-gradient(180deg,#7fd0a0,#4dab77);border-radius:14px 14px 18px 18px;opacity:.85}
.bottle .band{position:absolute;top:44px;left:0;right:0;height:22px;background:rgba(255,255,255,.55);border-radius:4px}
.ok{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:700;color:#2b8a3e}

/* аудит */
.prog{height:8px;background:var(--line);border-radius:6px;overflow:hidden;margin-bottom:14px}
.prog i{display:block;height:100%;width:30%;background:linear-gradient(90deg,var(--green2),var(--green));border-radius:6px}
.steps div{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.steps b{width:26px;height:26px;background:var(--band);color:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;font-size:13px}
.steps div div{font-size:13px;color:#495057}
.qtitle{font-size:18px;font-weight:800;color:var(--dark);margin:10px 0 14px}
.opt{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;font-size:14px;font-weight:600;color:var(--dark);margin-bottom:10px;cursor:pointer}
.opt:hover{border-color:var(--green2)}

/* экономия */
.save-hero{text-align:center;padding:26px 14px;background:linear-gradient(180deg,#fff,#f3fbf5)}
.save-hero .n{font-size:36px;font-weight:800;color:var(--green)}
.srow{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:8px;font-size:14px;color:var(--dark)}
.srow .dot{width:10px;height:10px;border-radius:50%;flex:none}
.srow .amt{margin-left:auto;font-weight:800}

/* окошко живого просмотра камеры */
.cam-preview{position:relative;height:180px;border-radius:12px;overflow:hidden;margin-bottom:12px;
  background:#10261c;display:flex;align-items:center;justify-content:center}
.cam-preview video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.cam-preview.live video{opacity:1}
.cam-preview .cam-note{color:#9fc3ad;font-size:12px;padding:0 16px;text-align:center;z-index:1}

/* desktop: рамка вокруг приложения и другой фон — без скруглений и вертикальных отступов */
@media (min-width: 768px){
  body{background:#2b3a33}
  .page{background:var(--bg);box-shadow:0 24px 60px rgba(0,0,0,.45);
    border:1px solid #3a4a41;border-radius:0;margin:0 auto;min-height:100vh}
  .nav{border-radius:0;bottom:0}
}

/* нижняя навигация */
.nav{position:fixed;bottom:0;left:0;right:0;margin:0 auto;width:100%;max-width:480px;background:#fff;border-top:1px solid var(--line);display:flex;z-index:20}
.nav a{flex:1;text-align:center;padding:10px 0 12px;font-size:11px;font-weight:700;color:var(--muted);text-decoration:none}
.nav a svg{display:block;width:22px;height:22px;margin:0 auto 2px}
.nav a.active{color:var(--green)}

/* Сообщение об ошибке в данных пункта */
.option-badge{display:inline-block;align-self:flex-start;width:fit-content;max-width:100%;box-sizing:border-box;margin:0 0 6px;padding:3px 10px;border-radius:999px;background:#e6f4ea;color:#1e6b32;font-size:12px;font-weight:600}
.report-dialog{box-sizing:border-box;width:min(94vw,520px);max-height:90dvh;border:0;border-radius:16px;padding:18px;background:#fff;color:var(--dark)}
.report-dialog::backdrop{background:#142c2688}
.report-dialog h2{margin:0 0 6px;font-size:18px}
.report-dialog__point{margin:0 0 10px;font-size:13px;color:#4a6159}
.report-dialog label{display:block;margin:0 0 10px;font-size:13px;font-weight:600}
.report-dialog select,.report-dialog input,.report-dialog textarea{width:100%;margin-top:4px;padding:9px;border:1px solid #cfded8;border-radius:10px;font:inherit;font-weight:400}
.report-dialog textarea{min-height:92px;resize:vertical}
.report-dialog__opt{font-weight:400;color:#7b8d86}
.report-dialog__cta{margin:0 0 8px;font-size:13px}
.report-dialog__status{margin:0 0 8px;font-size:13px;min-height:18px}
.report-dialog__actions{display:flex;gap:8px}
.report-dialog__actions .btn{flex:1;margin:0}

.option-verified{font-size:12px;color:#6b7d76;margin:2px 0 6px}
.option-contacts{font-size:13px;color:#3f544c}

/* Формы входа и регистрации */
.auth-form input{width:100%;margin-top:4px;padding:10px;border:1px solid #cfded8;border-radius:10px;font:inherit;font-weight:400}
.auth-form .btn{margin-top:6px}

/* Иллюстрация способа сдачи: синий контейнер, колокола */
.option-image{display:block;width:100%;max-width:320px;margin:8px 0 4px;border-radius:12px}
.lrow.zone-promote{border-left:4px solid var(--green)}
.lrow.zone-demote{border-left:4px solid #d9534f;background:#fffafa}
.ava svg{display:block}

/* === Верхняя панель: бренд, лига (иконка), баланс с крышечками === */
.topbar{position:sticky;top:0;z-index:15;display:flex;justify-content:space-between;align-items:center;
  padding:6px 2px 10px;margin:-6px 0 10px;background:var(--bg)}
.topbar-brand{font-weight:800;font-size:15px;color:var(--green);text-decoration:none;letter-spacing:.02em}
.topbar-stats{display:flex;align-items:center;gap:12px}
.topbar-league{display:flex;text-decoration:none}
.topbar-league img{width:30px;height:30px;border-radius:50%;display:block;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.topbar-league-badge{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:800;font-size:14px;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.topbar-balance{display:flex;align-items:center;gap:6px;text-decoration:none;background:var(--band);
  border:1px solid var(--green2);border-radius:999px;padding:5px 10px}
.topbar-balance-n{font-weight:800;font-size:14px;color:var(--dark)}
.topbar-balance .caps-icon{width:28px;height:auto;object-fit:contain}
.caps-icon{display:block}

/* === Типографика и ссылки (оживление 2026-09-21) === */
a{color:var(--green)}
.hero a{color:#fff}
.bal a.lvl{color:#fff;text-decoration:none}
.meta{font-size:13px;color:#495057;margin-top:6px}
.meta-s{font-size:12px;color:var(--muted);margin-top:4px}
.link-strong{color:var(--green);font-weight:700}

/* Карточка-ссылка: целая карточка кликабельна, с откликом */
.link-card{display:block;text-decoration:none;color:inherit;transition:border-color .15s, box-shadow .15s}
.link-card:hover{border-color:var(--green2);box-shadow:0 2px 10px rgba(43,138,62,.10)}
.link-card:active{background:#fbfffc}
.link-card .lc-title{color:var(--dark);font-weight:700}
.link-card .lc-sub{font-size:11px;color:var(--muted);margin-top:2px}

/* Контакты пункта на экране плана */
.point-contacts{margin-top:6px;font-size:13px}
.point-contacts a{color:var(--green);font-weight:600;text-decoration:none}
.point-contacts a:active{opacity:.7}

/* Строка предмета со ссылкой на скан */
.row .label a{color:inherit;text-decoration:none;border-bottom:1px dashed var(--green2)}

/* Статистика профиля */
.stat-grid{display:flex;gap:14px;margin-top:10px}
.stat-grid .stat{flex:1;text-align:center;background:var(--band);border-radius:12px;padding:10px 6px}
.stat-grid .stat .v{font-size:18px;font-weight:800;color:var(--dark);display:block}
.stat-grid .stat .k{font-size:11px;color:#3f5a4c}

/* Поля форм (отзыв о посещении и др.) */
.form-textarea{margin-top:8px;width:100%;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:13px;color:var(--dark);box-sizing:border-box;resize:vertical;font-family:inherit}
.choice-chips{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.choice-chips label{padding:8px 14px;font-size:13px;cursor:pointer;border-radius:11px;background:var(--band);color:#2b8a3e;font-weight:700}
.choice-chips input{margin-right:6px}

/* Карточка посещения в календаре */
.visit-card{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.visit-card .visit-date{min-width:46px;text-align:center;background:#ebfbee;border-radius:10px;padding:6px 4px}
.visit-card .visit-date .d{font-size:18px;font-weight:800;color:#2b8a3e}
.visit-card .visit-date .m{font-size:10px;color:#2b8a3e;text-transform:uppercase}
.visit-card .visit-body{flex:1}
.visit-card .visit-name{color:var(--dark);font-size:14px;font-weight:700}
.visit-card .visit-addr{font-size:11px;color:var(--muted)}

/* Пустое состояние и центрированные карточки */
.empty-card{text-align:center;padding:32px 16px}
.empty-card .empty-icon{font-size:40px;color:#b2d8b2}
.empty-card .empty-title{display:block;color:var(--dark);margin-top:10px;font-weight:700}
.empty-card .empty-sub{font-size:12px;color:var(--muted);margin:6px 0 14px}
.empty-card .btn{display:inline-block;width:auto;padding:10px 24px}

/* Ссылка в карточке «посещение запланировано» на странице скана */
.scan-visit a{color:var(--green);font-weight:700;text-decoration:none;border-bottom:1px dashed var(--green2)}

/* Общие: заголовки в карточках, плотные строки, файлы, мелкие кнопки, ошибки форм */
.card b{color:var(--dark)}
.card-rows{padding:6px 12px}
.form-file{margin-top:8px;font-size:13px;color:var(--dark)}
.btn-inline{width:auto;padding:8px 14px;font-size:13px;margin-top:8px}
.form-error{color:#c0392b}
.card.is-done{opacity:.8}
.chip-s{font-size:10px}
.form-actions{margin-top:10px}

/* Заголовок итога посещения */
.done-hero{text-align:center;margin:24px 0}
.done-hero .done-icon{font-size:56px;color:var(--green)}
.done-hero h1{text-align:center}

/* Условия приёма и списки экопунктов (заказчик 2026-09-29) */
.acceptance{box-sizing:border-box;width:100%;min-width:0;margin:0;border:0;padding:0}
.acceptance summary{font-weight:700;cursor:pointer}
.acceptance-fraction{margin:8px 0 4px}
.acceptance h4{margin:12px 0 4px;font-size:.95em}
.acceptance-page{display:flex;flex-direction:column;width:100%;min-width:0;gap:0}
.acceptance-page>h2,.acceptance-page>h3{margin:18px 0 6px!important}
.acceptance-page>h3{font-weight:700}
.acceptance-page>h2:first-child,.acceptance-page>h3:first-child{margin-top:0!important}
.acceptance-row{position:relative;box-sizing:border-box;width:100%;min-width:0;display:flex;flex-direction:column;
  gap:4px;margin:0;padding:12px 0 12px 30px;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0}
.acceptance-page>h2+.acceptance-row,.acceptance-page>h3+.acceptance-row{border-top:1px solid var(--line)}
/* Фракция в «Условиях приёма»: заголовок фракции, под ним её строка приёма и строка
   отказов по состоянию предмета (заказчик 2026-10-14). */
.fraction-block{display:flex;flex-direction:column;width:100%;min-width:0;gap:0}
.acceptance-page>h2+.fraction-block,.acceptance-page>h3+.fraction-block{border-top:1px solid var(--line)}
.fraction-block>.acceptance-row{border-top:0}
/* Заголовок фракции: крупнее строк условий, с зелёной меткой и воздухом сверху,
   чтобы фракции читались как отдельные группы. */
.fraction-title{display:flex;align-items:center;gap:8px;margin:20px 0 6px;
  font-size:15px;font-weight:700;line-height:1.35;letter-spacing:.01em;color:var(--dark)}
.fraction-title::before{content:'';flex:0 0 auto;width:3px;height:16px;border-radius:2px;background:var(--green2)}
.fraction-block:first-of-type>.fraction-title{margin-top:12px}
.fraction-block:last-child>.acceptance-row:last-child{border-bottom:0}
.acceptance-row::before{content:'✓';position:absolute;left:2px;top:50%;color:var(--green);font-size:15px;
  font-weight:800;line-height:1;transform:translateY(-50%)}
/* Контекст строки отказа: «Во фракции «Алюминиевая фольга»» — иначе имя фракции
   в разделе «Что не принимают» читается как сам запрещённый предмет. */
.reject-owner{color:var(--muted);font-weight:600}
.acceptance-row.is-rejected::before{content:'×';color:#b53b35;font-size:18px}
.acceptance-row strong{color:var(--dark);font-size:.96rem;line-height:1.45}
.acceptance-row span{color:var(--muted);font-size:.9rem;line-height:1.5;opacity:1;overflow-wrap:anywhere}
.acceptance-row.is-kind span:first-child{color:var(--dark);font-weight:600}
.acceptance-row.is-requirement::before{content:'!';background:transparent;color:#b47b26;font-size:15px}
.acceptance-row.is-prep::before{content:'→';background:transparent;color:var(--muted);font-size:15px;font-weight:700}
.acceptance-row.is-prep span:first-child{color:var(--dark);font-weight:600}
.acceptance-row a{align-self:flex-start;font-size:.86rem;font-weight:700}
.acceptance-prep{margin:0;padding:10px 0;line-height:1.5;color:var(--dark)}
.ecopoint-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-top:20px}
/* Стрелка у строки вердикта: ведёт на страницу экопункта (как «Подробнее об экопункте»). */
.status-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:24px;
  margin-left:6px;font-size:16px;font-weight:700;line-height:1;color:var(--green);text-decoration:none;vertical-align:middle}
.status-arrow:hover{color:var(--dark)}
.status-arrow:focus-visible{outline:3px solid rgba(47,158,68,.35);outline-offset:1px;border-radius:6px}
/* Кнопка «открыть на карте» рядом с адресом. Иконка — из файла
   static/web/img/map-icons/lucide-map-pinned.svg, не инлайном в шаблоне. */
.point-map-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  margin-left:8px;color:var(--green);vertical-align:middle;text-decoration:none}
.point-map-btn::before{content:'';width:19px;height:19px;background:currentColor;
  -webkit-mask:url(../img/map-icons/lucide-map-pinned.svg) center/contain no-repeat;
  mask:url(../img/map-icons/lucide-map-pinned.svg) center/contain no-repeat}
.point-map-btn:hover{color:var(--dark)}
.point-map-btn:focus-visible{outline:3px solid rgba(47,158,68,.35);outline-offset:1px;border-radius:50%}
/* Вторая строка метаданных пункта: ссылка «На сайт» и расстояние рядом. */
.ecopoint-link-row{display:inline-flex;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap}
.ecopoint-address .point-distance{margin-left:0;color:var(--ink)}
.ecopoint-actions .btn{max-width:100%;box-sizing:border-box;white-space:normal;text-align:center;font:inherit;font-weight:700;cursor:pointer}
.ecopoint-page h1{margin-top:0}
.ecopoint-page .acceptance-page{border:0}
.streams-card{margin:12px 0;padding:12px;border:1px solid rgba(0,0,0,.1);border-radius:12px}

/* Один список экопунктов в отдельной карточке (заказчик 2026-09-29):
   без маркеров и левых отступов; заголовок — flex row nowrap, gap 1em, название растягивается;
   номер — круг с зелёной рамкой, фиксированный размер, число строго по центру;
   между экопунктами ровно 1rem + 1rem с зелёной горизонтальной чертой посередине. */
.points-card{margin:12px 0;padding:12px;border:1px solid rgba(0,0,0,.1);border-radius:12px;background:var(--card,#fff)}
.points-list{list-style:none;margin:0;padding:0}
.points-list li{list-style:none}
.point-item{margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.point-item + .point-item{border-top:1px solid rgba(46,125,50,.45);margin-top:1rem;padding-top:1rem}
.point-head{display:flex;flex-flow:row nowrap;gap:1em;align-items:center}
.point-num{width:32px;height:32px;aspect-ratio:1/1;flex:none;box-sizing:border-box;
  border-radius:50%;border:1.5px solid var(--green,#2e7d32);background:rgba(46,125,50,.08);
  color:var(--green,#2e7d32);font-weight:700;line-height:1;padding:0;
  display:grid;place-items:center;overflow:hidden}
.point-head-col{display:flex;flex-direction:column;gap:.5em;flex-grow:1;min-width:0}
.point-title{flex-grow:1;margin:0;font-size:1.05em}
.point-item p{margin:0}
.point-item details{margin:.35rem 0 0}
.point-item h3,.point-item h4{margin:0}
.point-meta{margin:0;font-size:.9em;opacity:.85;display:flex;flex-flow:row nowrap;align-items:center;gap:.6rem;flex-wrap:wrap}
.point-distance{font-weight:700}
.point-fraction{margin:0}
.point-map-btn{width:24px;height:24px;padding:0;border:none;background:none;color:var(--green,#2e7d32);
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.point-map-btn svg{width:20px;height:20px}

/* Модальное окно карты расстояния (одна кнопка — крестик закрытия) */
.map-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.45);z-index:80;display:flex;align-items:center;justify-content:center}
.map-modal-box{position:relative;width:420px;max-width:92vw;height:480px;background:var(--card,#fff);border-radius:14px;overflow:hidden}
.map-modal-map{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}
.map-modal-box .map-modal-close{position:absolute;top:8px;right:8px;z-index:3;width:34px;height:34px;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;cursor:pointer;font-size:20px;line-height:1}
.map-modal-box .map-modal-close:hover{background:transparent}
.map-marker{width:18px;height:18px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.map-marker.is-place{width:22px;height:22px;border:0;border-radius:0;box-shadow:none;background:transparent center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231565c0' d='M12 2 a7 7 0 0 1 7 7 c0 5 -7 13 -7 13 S5 14 5 9 a7 7 0 0 1 7 -7z'/%3E%3Ccircle cx='12' cy='9' r='2.5' fill='%23fff'/%3E%3C/svg%3E")}
[hidden]{display:none!important}
.map-marker.is-point{background:var(--green,#2e7d32)}
.map-arrow-svg{position:absolute;top:0;left:0;pointer-events:none;z-index:2}
.map-dist-label{position:absolute;transform:translate(-50%,-50%);background:#fff;border:1px solid rgba(0,0,0,.15);
  border-radius:999px;padding:.1rem .5rem;font-size:.8em;font-weight:700;white-space:nowrap;z-index:2}

/* Хлебные крошки (ссылка «назад» заменяемая через ?back=) */
.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem;margin:0 0 6px;font-size:.78em;line-height:1.3}
.crumb-back{color:var(--green,#2e7d32);font-weight:500;text-decoration:none}
.crumb-sep{opacity:.45}
.crumb-plain{opacity:.7}
.crumb-current{opacity:.7}

/* Строки-подсказки про контейнеры вместо «Здесь не принимают» */
.container-notes{margin:10px 0;padding:0}
.container-notes p{margin:.35rem 0}
.container-notes a{color:var(--green,#2e7d32);font-weight:700}

/* Кнопки действий на странице — по правому краю (заказчик 2026-09-30) */
.card button, .card .btn, .card a.btn { display:block; width:fit-content; margin-left:auto; }
.point-map-btn{display:inline-flex; width:24px; margin-left:0}
.scan-result-layout-4{display:flex; flex-flow:row wrap; justify-content:flex-end; gap:.5rem}
.scan-result-layout-4 button, .scan-result-layout-4 .btn{margin-left:0}

/* Определённые признаки — чипы под фотополосой вместо подписи «Фото предмета» */
.facet-chips{display:flex; flex-wrap:wrap; gap:.45rem; margin:.6rem 0 0}
.facet-chip{display:inline-flex;align-items:center;gap:.25rem;border:1px solid rgba(0,0,0,.12); border-radius:999px; padding:.2rem .32rem .2rem .7rem;
  font-size:.82em; background:rgba(0,0,0,.03); line-height:1.3}
.facet-chip b{font-weight:700; color:var(--green,#2e7d32)}
.facet-chip-edit{display:inline-grid;place-items:center;width:20px;height:20px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;color:#52645a;font:700 15px/1 sans-serif;cursor:pointer}.facet-chip-edit:hover,.facet-chip-edit:focus-visible{background:rgba(46,125,50,.12);color:var(--green,#2e7d32);outline:2px solid currentColor;outline-offset:1px}
.facet-chip-extra[hidden]{display:none}
.facet-chip-extra:not([hidden]){display:inline-flex}
.facet-chip-more{width:auto;margin:0;padding:.2rem .7rem;cursor:pointer;color:var(--green,#2e7d32);font-weight:700}

/* Фото: кнопка «увеличить» в правом верхнем углу и модалка с большим фото */
.scan-photo-item{position:relative}
.scan-photo-item .photo-zoom-btn{position:absolute; top:6px; right:6px; width:32px; height:32px; padding:0;
  border-radius:8px; border:0; background:transparent;
  cursor:pointer; z-index:3; display:flex; align-items:center; justify-content:center;
  font-size:15px; line-height:1; margin-left:0}
.photo-modal-box{position:relative; width:720px; max-width:92vw; height:auto;
  background:#fff; border-radius:14px; overflow:hidden; padding:0}
.photo-modal-img{display:block; max-width:100%; max-height:480px; margin:0 auto}

/* Ссылки: без подчёркиваний, зелёные и чуть жирнее; мягкий отклик на hover/active
   (заказчик 2026-09-30 — сайты, страницы, адреса, телефоны, почты и т.д.) */
a{text-decoration:none;font-weight:600;color:var(--green,#2e7d32);transition:color .15s ease}
a:hover{color:#1b5e20}
a:active{color:#6aa06f}

/* «Что принимают?» — белый вопросительный знак в зелёном кружочке */
.q-circle{display:inline-flex;width:22px;height:22px;border-radius:50%;background:var(--green,#2e7d32);
  color:#fff;font-weight:700;font-size:14px;line-height:1;align-items:center;justify-content:center;
  vertical-align:middle;text-decoration:none}

/* Расстояние и иконка карты — в общем контейнере, он выровнен вправо */
.point-meta{display:flex;align-items:center;gap:.6em;flex-wrap:wrap}
.point-dist-wrap{margin-left:auto;display:inline-flex;align-items:center;gap:.35em}
.point-distance{font-weight:700}

/* Страница экопункта: сайт под адресом, полная инфа, строка действий */
.ecopoint-address{margin:.4rem 0}
.ecopoint-site{display:inline-block;margin-top:.25rem}
.ecopoint-full{margin:16px 0 0;border-top:1px dashed rgba(0,0,0,.15);padding-top:12px}
.ecopoint-full h3{margin:0 0 6px}
.ecopoint-full p{margin:.35rem 0}
.ecopoint-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;margin-top:20px}
.ecopoint-actions .btn{margin:0}
.ecopoint-report{display:block;margin:.9rem 0 0 auto;background:none;border:0;padding:0;
  color:var(--green,#2e7d32);font-weight:600;font-size:.92em;cursor:pointer}
.ecopoint-report:hover{color:#1b5e20}

/* Кнопка «Уточнить» под фото — как остальные кнопки страницы (заказчик 2026-09-30) */
#sr-photos-card .scan-result-layout-4{margin-top:10px}
#sr-refine-item{width:100%}

/* Выбор даты сдачи прямо на странице экопункта */
.visit-plan{margin:0}
.visit-plan>summary{cursor:pointer;list-style:none}
.visit-plan>summary::-webkit-details-marker{display:none}
.visit-plan-form{margin-top:10px;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.visit-plan-form label{font-weight:600;font-size:.92em}
.visit-plan-form input[type=date]{padding:10px;border:1px solid var(--green2,#b7dfba);border-radius:10px;font:inherit}
.form-error{color:#c92a2a;margin:0}

/* Полная информация об экопункте */
.ecopoint-full-sub{color:var(--muted,#6c757d);margin:.2rem 0 .8rem}
.full-list{list-style:none;padding:0;margin:0 0 16px}
.full-list li{border-top:1px solid #eef1ef;padding:10px 0}
.full-list li:first-child{border-top:none}
.full-list li strong{display:block;margin-bottom:2px}
.full-list li span{display:block;font-size:.92em;color:#495057}
.full-list-reject li strong{color:#c92a2a}

/* Модальные окна страниц (дата сдачи, сообщение об ошибке): затемнение, крестик, Esc */
.eco-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.45);z-index:1200;
  align-items:center;justify-content:center;padding:16px}
.eco-modal.is-open{display:flex}
.eco-modal-box{position:relative;background:#fff;border-radius:14px;padding:18px;width:420px;max-width:92vw;
  max-height:88vh;overflow:auto}
.eco-modal-box h2{margin:0 0 6px;font-size:1.15em}
.eco-modal-sub{color:var(--muted,#6c757d);margin:.2rem 0 .8rem;font-size:.92em}
.eco-modal-close{position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border-radius:8px;
  border:1px solid rgba(0,0,0,.12);background:#fff;cursor:pointer;font-size:15px;line-height:1;
  display:flex;align-items:center;justify-content:center;z-index:2}
.eco-modal-close:hover{background:#f1f3f5}
.report-dialog .eco-modal-close{position:absolute;top:10px;right:10px}

/* Страница полной информации: разделы, группы, порции */
.full-search{margin:14px 0 4px;display:flex;flex-direction:column;gap:4px}
.full-search input{padding:10px;border:1px solid var(--green2,#b7dfba);border-radius:10px;font:inherit}
.full-status{color:var(--muted,#6c757d);margin:.2rem 0 .6rem;font-size:.9em;min-height:1em}
.full-status:empty{display:none}
.full-section{margin:0 0 22px;border-top:1px solid #eef1ef;padding-top:12px}
.full-section h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:1.05em}
.full-count{display:inline-flex;min-width:26px;height:22px;padding:0 7px;border-radius:999px;background:#e6f4ea;
  color:#1e6b32;font-size:.8em;font-weight:700;align-items:center;justify-content:center}
.full-list{list-style:none;padding:0;margin:0}
.full-row{border-top:1px solid #eef1ef;padding:10px 0}
.full-row strong{display:block;margin-bottom:2px}
.full-row span{display:block;font-size:.92em;color:#495057}
.full-list-reject .full-row strong{color:#c92a2a}
.full-group{list-style:none;margin:14px 0 2px;font-weight:700;color:var(--green,#2e7d32);font-size:.9em;
  text-transform:uppercase;letter-spacing:.02em}
.full-empty{color:var(--muted,#6c757d)}
.load-more{margin-top:10px}

/* Категории (крупные фракции) на странице полной информации */
.full-cats{list-style:none;padding:0;margin:0}
.cat-item{border-top:1px solid #eef1ef}
.cat-item:first-child{border-top:none}
.cat-btn{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;
  background:none;border:none;padding:12px 2px;font:inherit;font-weight:600;cursor:pointer;text-align:left;
  color:var(--green,#2e7d32)}
.cat-btn:hover{background:#f6faf7}
.cat-item.is-open .cat-btn{color:#1b5e20}
.cat-kids{padding:0 0 8px 10px}
.cat-kids .full-row:first-child{border-top:none}

.full-note{display:block;font-style:normal;color:#6c757d;font-size:.9em;margin:0 0 2px}

/* Сворачиваемые разделы/категории/фракции на странице полной информации */
.full-section>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:700;font-size:1.05em;
  padding:10px 0;list-style:none}
.full-section>summary::-webkit-details-marker,.cat-item>summary::-webkit-details-marker,.frac-item>summary::-webkit-details-marker{display:none}
.full-section>summary::before,.cat-item>summary::before,.frac-item>summary::before{content:'▸';color:var(--green,#2e7d32);font-size:.9em}
.full-section[open]>summary::before,.cat-item[open]>summary::before,.frac-item[open]>summary::before{content:'▾'}
.full-cats-list{margin:0 0 8px}
.cat-item{border-top:1px solid #eef1ef;padding:2px 0}
.cat-item>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:10px 2px;font-weight:600;
  color:var(--green,#2e7d32);list-style:none}
.cat-kids{padding:0 0 6px 14px}
.frac-item{border-top:1px solid #f4f6f4;padding:2px 0}
.frac-item>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:9px 2px;font-weight:600;list-style:none}
.frac-name{flex:1}
.frac-points{padding:0 0 8px 14px}
.frac-point{border-top:1px dashed #eef1ef;padding:8px 0}
.frac-point:first-child{border-top:none}
.frac-note{color:#495057;font-size:.94em}
.frac-cond{display:block;font-size:.92em;color:#1e6b32}
.frac-src{font-size:.88em}
.full-list-reject .frac-item>summary{color:#c92a2a}
.full-list-reject .frac-cond{color:#c92a2a}

/* Не принимается целиком (только категории без принимаемых фракций) */
.full-rejected{margin:0 0 10px;border:1px solid #f1c9c9;border-radius:10px;padding:4px 10px;background:#fff7f7}
.full-rejected>summary{cursor:pointer;font-weight:700;color:#c92a2a;padding:8px 0;list-style:none}
.full-rejected>summary::-webkit-details-marker{display:none}
.rejected-cat{margin:.3rem 0;color:#495057;font-size:.94em}
.cat-exc{margin-left:auto;font-size:.8em;font-weight:600;color:#b47b26}
.frac-mark{font-size:.78em;font-weight:700;padding:1px 7px;border-radius:999px;margin-left:6px}
.frac-mark.is-accept{background:#e6f4ea;color:#1e6b32}
.frac-mark.is-reject{background:#fff0f0;color:#c92a2a}
/* Подготовка: строка-инструкция источника («Как сложить…»), а не отказ и не приём. */
.frac-mark.is-prep{background:#eef3fb;color:#2b5aa3}
.frac-point.is-prep{border-left:3px solid #cfdcf3;padding-left:8px}
.frac-point.is-reject{border-left:3px solid #f1c9c9;padding-left:8px}
.frac-point.is-accept{border-left:3px solid #cbe8cf;padding-left:8px}
.frac-point .frac-cond{color:#1e6b32}
.frac-point.is-reject .frac-cond{color:#c92a2a}

.link-btn{background:none;border:none;padding:0;margin:0;color:var(--green,#1f7a4d);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.link-btn:hover{color:var(--green-dark,#155c39);text-decoration:underline}
.details-head{margin:.9rem 0 .3rem;font-weight:600}
.details-note{margin-top:.9rem;font-size:.85rem;color:var(--muted,#5a6b5f)}
.map-modal-box.details-box{height:auto;max-height:82vh;overflow:auto;padding:1.1rem 1.1rem 1rem;width:520px}
.map-modal-box.details-box ul{margin:0;padding-left:1.1rem}
.map-modal-box.details-box li{margin:.15rem 0}

/* Заказчик 2026-09-30: карточка — flex-колонка с единым шагом; вертикальные
   margin у прямых детей не нужны (даёт двойные отступы). */
.card{display:flex;flex-flow:column;gap:1em}
/* Служебные классы вида .scan-result-layout-* задают свои margin и перебивают
   простой селектор, поэтому гасим вертикальные margin у детей карточки жёстко. */
.card > *{margin-block:0 !important}
.facet-actions{display:flex;flex-flow:row nowrap;width:100%;justify-content:space-between;gap:1em}

/* Заказчик 2026-09-30: заголовок и пояснения результата живут в карточке с фото,
   текст почти чёрный, размер обычный; «Подробнее» остаётся ссылкой-зелёной. */
#sr-photos-card{color:#141a17}
#sr-title{margin:0;font-size:1.35rem;line-height:1.25;color:#141a17}
#sr-photos-card .sr-line{margin:0;font-size:1rem;line-height:1.4;color:#141a17}
#sr-photos-card .sr-line .link-btn{color:var(--green,#1f7a4d)}

/* Заказчик 2026-09-30: раскладка блока уточнения и списка пунктов. */
.marking-title{margin:0 !important}
.facet-edit-btn{background:none;border:none;width:auto;padding:2px 6px;margin-left:.5em;
  font-size:.85rem;font-weight:600;color:var(--green,#1f7a4d);cursor:pointer;line-height:1.2}
.facet-edit-btn:hover{text-decoration:underline;color:var(--green-dark,#155c39)}
.points-section{display:flex;flex-flow:column;gap:1.5em;margin:.83em}
.points-list{display:flex;flex-flow:column;gap:1em;list-style:none;margin:0;padding:0}
.btn-more{width:auto;padding-inline:20px;margin-inline:auto}

/* Кнопка «i» — пояснение к предполагаемой фракции (заказчик 2026-09-30). */
.info-btn{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;
background:var(--green,#1f7a4d);color:#fff;border:none;padding:0;font-size:12px;font-style:italic;font-weight:600;
cursor:pointer;vertical-align:middle;line-height:1}
.info-btn:hover{background:var(--green-dark,#155c39)}
.info-box{width:420px;max-width:92vw}
.facet-warn{flex-basis:100%;margin:.25em 0 0;color:#b3261e;font-size:.9rem}

/* Блок «Где планируете сдать?»: отступы и кнопки (Demo Cracy 2026-10-06). */
#collection-options{display:flex;flex-direction:column;gap:10px}
#collection-options[hidden],#collection-options #collection-place-editor[hidden]{display:none}
#collection-options #collection-place-editor{display:flex;flex-direction:column;gap:10px}
#collection-options label{font-size:13px;color:#397553}
#collection-options input,#collection-options select{padding:10px 12px;border:1px solid #d8e0dc;border-radius:8px;font-size:14px;background:#fff}
#collection-address-suggestions{display:flex;flex-direction:column;gap:4px}
.prep-btn{font-size:13px;padding:8px 14px;border-radius:8px;border:1px solid var(--action-bg,#FD5506);background:var(--action-bg,#FD5506);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.prep-btn.ghost{background:#fff;color:var(--ink,#202936)border-color:var(--line,#d4d9d0);}
.prep-btn:disabled{opacity:.5;cursor:default}
.notes-actions{display:flex;gap:8px;align-items:center;margin-top:4px}

/* Раскрывающиеся строки внутри условий приёма: без дополнительной карточки внутри карточки. */
:is(.acceptance,.stream-contacts,.source-notes){border-bottom:1px solid var(--line)}
:is(.acceptance,.stream-contacts,.source-notes)>summary{position:relative;box-sizing:border-box;width:100%;min-width:0;
  min-height:44px;padding:11px 28px 11px 0;list-style:none;border:0;
  background:transparent;line-height:1.4}
:is(.acceptance,.stream-contacts,.source-notes)>summary::-webkit-details-marker{display:none}
:is(.acceptance,.stream-contacts,.source-notes)>summary::after{content:'';position:absolute;right:5px;top:50%;
  width:8px;height:8px;border-right:2px solid var(--green);border-bottom:2px solid var(--green);
  transform:translateY(-65%) rotate(45deg);transform-origin:50% 50%}
:is(.acceptance,.stream-contacts,.source-notes)[open]>summary::after{transform:translateY(-35%) rotate(225deg)}
:is(.acceptance,.stream-contacts,.source-notes)[open]>summary{margin-bottom:10px}

/* Full ecopoint hierarchy is owned by named classes in point-detail.css. */
:is(.acceptance,.stream-contacts,.source-notes)>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* Отступ раскрытого содержимого в остальных пользовательских disclosure-компонентах. */
:is(.prep-grid details,.contractor-page details,.visit-plan)[open]>summary{margin-bottom:10px}
