/* Голос Горожанина — стили по макетам дизайнера (Roboto, палитра yakutskcity.ru).
   F.1 каркас · F.2 доступность (кнопки/поля от 48px, контраст AA) · F.3 «Версия для слабовидящих».
   Классы совпадают с макетом: .top .hd .c .btn .card .badge .tabs .opt .fld .inp ... */
:root{--slate:#32384B;--ink:#3B4256;--blue:#2D3A89;--link:#0D5BA5;--sky:#E9EBF7;--line:#E5E5EB;--bd:#7F8CA0;--mut:#5F6B7A;--alt:#F5F6FA;--err:#B3261E;--tap:48px}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:Roboto,Inter,Arial,sans-serif;font-size:18px;line-height:1.55;color:#333;background:#fff}
main{flex:1}
h1,h2,h3{color:var(--ink);line-height:1.25;margin:0}p{margin:0}
.c{max-width:1120px;margin:0 auto;padding:0 24px}
.mut{color:var(--mut)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}

/* Доступность */
a{color:var(--link)}
:focus-visible{outline:3px solid var(--link);outline-offset:3px}
.top :focus-visible{outline-color:#fff}
.skip{position:absolute;left:8px;top:-100px;z-index:100;background:#fff;color:var(--ink);padding:12px 16px;border-radius:12px;font-weight:600}
.skip:focus{top:8px}
button,select,textarea,input:not([type=radio]):not([type=checkbox]){font:inherit}
.btn,.tool,.tab,.nav a,.inp,select{min-height:var(--tap)}

/* Верхняя панель */
.top{background:var(--slate);color:#fff}
.top .c{display:flex;justify-content:space-between;align-items:center;min-height:56px;gap:16px;flex-wrap:wrap}
.tool{display:inline-flex;align-items:center;gap:10px;padding:0 16px;background:transparent;color:#fff;border:2px solid transparent;border-radius:12px;font:500 18px Roboto,Arial,sans-serif;cursor:pointer}
.tool.on,.tool[aria-pressed=true]{border-color:#fff}
.tool.a11y{border-color:#C9CEDA}
.tool.a11y[aria-pressed=true]{background:#fff;color:var(--slate);border-color:#fff}
@media (max-width:600px){.tool.a11y{width:var(--tap);justify-content:center;padding:0}.tool.a11y .tl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}

/* Шапка */
.hd{border-bottom:1px solid var(--line)}
.hd .c{display:flex;align-items:center;justify-content:space-between;min-height:96px;gap:8px 24px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:16px;color:inherit;text-decoration:none}
.brand img{height:64px;width:auto}
.bt{font-weight:700;font-size:22px;color:var(--ink);line-height:1.25}
.bs{font-size:14px;color:var(--mut)}
.nav{display:flex;gap:8px 24px;flex-wrap:wrap}
.nav a{display:inline-flex;align-items:center;color:var(--ink);font-weight:600;text-decoration:none;border-bottom:3px solid transparent}
.nav a:hover,.nav a.cur,.nav a[aria-current=page]{border-bottom-color:var(--ink)}

/* Кнопки, карточки, бейджи */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 24px;border-radius:12px;border:2px solid transparent;font:600 18px Roboto,Arial,sans-serif;cursor:pointer;text-decoration:none}
.btn.main{min-height:56px;font-size:20px;padding:0 32px}
.btn.p{background:var(--blue);color:#fff}.btn.p:hover{background:#243073}
.btn.s{background:#fff;color:var(--blue);border-color:var(--blue)}
.btn.blk{display:flex;width:100%}
.btn:disabled{background:#E4E9F1;color:#5B6679;border-color:transparent;cursor:not-allowed}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 1px 2px rgba(50,56,75,.08),0 4px 12px rgba(50,56,75,.06);padding:24px}
.badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:600}
.b-info{background:#E6F0FA;color:var(--link)}.b-gold{background:var(--blue);color:#fff}.b-gray{background:#EEF0F4;color:#46546F}.b-work{background:#E9EBF7;color:#2D3A89}.b-ok{background:#E6F4EA;color:#14652E}
.note{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:12px;background:var(--sky)}
.alert{display:flex;gap:12px;align-items:center;padding:16px;border-radius:12px;border:1px solid #9DCBAA;background:#E6F4EA;color:#14532B;font-weight:600;margin-bottom:24px}
.alert.err{border-color:#E3A29C;background:#FCEAE8;color:#7A1812}

/* Вкладки, сетки */
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.tab{background:none;border:0;border-bottom:3px solid transparent;color:var(--mut);font:600 18px Roboto,Arial,sans-serif;cursor:pointer}
.tab.on,.tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}
.hero{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.vgrid{display:grid;grid-template-columns:5fr 7fr;gap:32px;align-items:start}
.rgrid,.sgrid{display:grid;grid-template-columns:7fr 5fr;gap:32px;align-items:start}
.dg{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.idea{display:flex;flex-direction:column;gap:12px}
.foot{margin-top:auto;padding-top:12px;display:flex;flex-direction:column;gap:12px}
.pb{height:12px;background:var(--line);border-radius:999px;overflow:hidden;margin-bottom:6px}.pb div{height:100%;background:var(--link);border-radius:999px}

/* Формы и варианты ответа */
.fld{display:grid;gap:8px;margin:24px 0}.fld label{font-weight:600;color:var(--ink)}
.inp{padding:0 20px;border:2px solid var(--bd);border-radius:12px;font:500 24px Roboto,Arial,sans-serif;color:#333;background:#fff;width:100%;min-height:64px}
.inp[aria-invalid=true]{border-color:var(--err)}
.ta{min-height:160px;padding:16px 20px;font:400 20px/1.5 Roboto,Arial,sans-serif;resize:vertical}
.hint{font-size:15px;color:var(--mut)}
.error-text{font-size:16px;font-weight:600;color:var(--err)}
.opt{display:flex;align-items:center;gap:16px;min-height:64px;padding:12px 20px;border:2px solid var(--bd);border-radius:12px;background:#fff;font-weight:500;font-size:20px;cursor:pointer}
.opt.sel{border-color:var(--blue);background:var(--sky)}
.opt.sm{font-size:18px;min-height:56px}
.opt input{width:24px;height:24px;accent-color:var(--blue);flex:none;margin:0}
.gt{font-weight:700;color:var(--ink);margin:24px 0 12px}
.stp{display:flex;gap:8px;margin:0 0 8px}.stp i{flex:1;height:8px;border-radius:999px;background:var(--line)}.stp i.on{background:var(--blue)}
.otp{display:flex;gap:12px;margin:24px 0}
.otp input{width:72px;height:80px;text-align:center;border:2px solid var(--bd);border-radius:12px;font:700 36px Roboto,Arial,sans-serif;color:var(--ink);background:#fff}

/* Результаты и модалка «Вы уже голосовали» */
.res{display:grid;gap:8px}
.rrow{display:flex;justify-content:space-between;align-items:baseline;gap:16px;font-size:20px;font-weight:600;color:var(--ink)}
.rpct{font-size:26px;font-weight:700}
.rtr{height:20px;background:var(--line);border-radius:999px;overflow:hidden}
.rbar{height:100%;background:var(--link);border-radius:999px}
.rbar.mine{background:#232B6B}
.ov{position:fixed;inset:0;background:rgba(50,56,75,.62);display:flex;align-items:flex-start;justify-content:center;padding:120px 16px 0;z-index:50}
.modal{width:100%;max-width:520px;background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(50,56,75,.28);padding:32px;text-align:center}
.ov[hidden]{display:none}

/* Подвал (в стиле yakutskcity.ru: тёмный, светлый текст) */
.site-footer{background:var(--slate);color:#fff;padding:32px 0;font-size:16px;margin-top:auto}
.site-footer .c{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px}
.site-footer a{color:#fff}

@media (max-width:800px){.hero,.grid3,.vgrid,.rgrid,.sgrid,.dg{grid-template-columns:1fr}.hero{gap:32px}}

/* Из макета: блоки главного экрана и следующих экранов */
.lock{display:flex;gap:8px;align-items:center;font-size:15px;color:var(--mut)}
.steps{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 32px;flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:8px;flex:1;min-width:150px;padding:12px;border-radius:12px;background:#E6F4EA;color:#14532B;font-size:15px;font-weight:600}
.ba{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.ph{aspect-ratio:4/3;background:#DDE2EC;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#46546F;font-weight:500}
.sel{min-height:48px;min-width:260px;padding:0 16px;border:2px solid var(--bd);border-radius:12px;font:18px Roboto,Arial,sans-serif;background:#fff;color:#333}
.fl{display:grid;gap:4px}.fl label{font-weight:600;color:var(--ink)}
.ico{flex:none}
.fw{font-weight:600;color:var(--ink)}
.t-sm{font-size:15px}.t-md{font-size:17px}
[hidden]{display:none!important}
@media (max-width:800px){.ba{grid-template-columns:1fr}}

/* F.5–F.8: экраны входа, ленты, голосования */
.wrap{max-width:680px;margin:0 auto}
.opts{display:grid;gap:12px;margin:16px 0}
.dg .opt{margin:0}
.modal h2{line-height:1.25}
.opt:has(input:focus-visible){outline:3px solid var(--link);outline-offset:3px}
@media (max-width:800px){.otp{gap:8px}.otp input{width:58px;height:68px;font-size:30px}}

/* ===== Оформление в стиле портала администрации Якутска (yakutskcity.ru) =====
   Плоская институциональная подача: тёмная служебная полоса, шапка с гербом и названием
   администрации, синяя полоса меню, белые разделы и светло-серые подложки. Без градиентов
   и декоративных теней: скругление 6px, рамки вместо теней. */
:root{--navy:#232B6B;--bg2:#F3F5F9;--frame:#D5DAE3;--r:6px}
body{background:#fff}
.card{border-radius:var(--r);box-shadow:none;border-color:var(--frame)}
.btn,.tool,.inp,.sel,.opt,.otp input,.chip,.alert,.note,.ph{border-radius:var(--r)}
.modal{border-radius:8px}
.badge{border-radius:4px;min-height:30px;font-size:15px}
.btn.p:hover{background:var(--navy)}
.btn.s:hover{background:var(--sky)}

/* Шапка */
.top{border-bottom:0}
.top a.tool{text-decoration:underline;text-underline-offset:3px}
.hd{border-bottom:1px solid var(--line);background:#fff}
.hd .c{min-height:108px}
.brand img{height:72px}
.org{font-size:15px;color:var(--mut);line-height:1.3}
.bt{font-size:26px;line-height:1.2}
.hd-link{color:var(--link);font-weight:500;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:var(--tap)}
.navbar{background:var(--blue)}
.navbar .nav{gap:0;flex-wrap:wrap}
.navbar .nav a{color:#fff;padding:0 20px;min-height:56px;border-bottom:0;font-size:18px;font-weight:500}
.navbar .nav a:hover{background:var(--navy)}
.navbar .nav a.cur,.navbar .nav a[aria-current=page]{background:#fff;color:var(--blue)}
.navbar .nav a.cur:focus-visible,.navbar .nav a[aria-current=page]:focus-visible{outline-color:var(--blue)}
.navbar :focus-visible{outline-color:#fff;outline-offset:-4px}

/* Панель «Версия для слабовидящих» */
.a11y-bar{background:#fff;border-bottom:2px solid var(--slate);padding:12px 0}
.a11y-bar .c{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px}
.a11y-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.a11y-group>span{font-weight:600;color:var(--ink);margin-right:4px}
.a11y-opt{min-width:var(--tap);min-height:var(--tap);border:2px solid var(--bd);border-radius:var(--r);background:#fff;color:#000;font-weight:700;cursor:pointer;line-height:1}
.a11y-opt[aria-pressed=true]{border-color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue)}
.a11y-opt.sw-bw{background:#fff;color:#000;border-color:#000}
.a11y-opt.sw-wb{background:#000;color:#fff;border-color:#000}
.a11y-reset{min-height:var(--tap);padding:0 16px;border:0;background:none;color:var(--link);font:500 18px Roboto,Arial,sans-serif;text-decoration:underline;cursor:pointer}
html.fs-125{zoom:1.25}
html.fs-150{zoom:1.5}
@supports not (zoom:1){html.fs-125 body{font-size:22px}html.fs-150 body{font-size:27px}}
html.theme-bw *,html.theme-wb *{background-image:none!important;box-shadow:none!important;text-shadow:none!important}
html.theme-bw body,html.theme-bw body *:not(img):not(svg):not(path):not(circle):not(rect){background-color:#fff!important;color:#000!important;border-color:#000!important}
html.theme-wb body,html.theme-wb body *:not(img):not(svg):not(path):not(circle):not(rect){background-color:#000!important;color:#fff!important;border-color:#fff!important}
html.theme-bw .pb div,html.theme-bw .rbar,html.theme-bw .stp i.on{background-color:#000!important}
html.theme-wb .pb div,html.theme-wb .rbar,html.theme-wb .stp i.on{background-color:#fff!important}
html.theme-bw .btn.p,html.theme-bw .a11y-opt[aria-pressed=true]{background-color:#000!important;color:#fff!important}
html.theme-wb .btn.p,html.theme-wb .a11y-opt[aria-pressed=true]{background-color:#fff!important;color:#000!important}
html.theme-bw img,html.theme-wb img{filter:grayscale(1)}
html.theme-bw a,html.theme-wb a{text-decoration:underline}
html.theme-bw .brand,html.theme-wb .brand{text-decoration:none}
html.theme-bw .a11y-opt.sw-wb,html.theme-wb .a11y-opt.sw-wb{background-color:#000!important;color:#fff!important}
html.theme-bw .a11y-opt.sw-bw,html.theme-wb .a11y-opt.sw-bw{background-color:#fff!important;color:#000!important}
@media (min-width:801px){html.fs-125 .grid3,html.fs-150 .grid3,html.fs-150 .ngrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html.fs-150 .intro-grid,html.fs-150 .hero,html.fs-150 .vgrid{grid-template-columns:minmax(0,1fr)}
@media (min-width:801px){html.fs-150 .steps-row,html.fs-150 .dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html.theme-bw :focus-visible{outline-color:#000}html.theme-wb :focus-visible{outline-color:#fff}

/* Главная */
.intro{background:var(--bg2);border-bottom:1px solid var(--line);padding:48px 0 52px}
.intro-grid{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:start}
.intro h1{font-size:40px;max-width:20ch}
.intro .lead{font-size:20px;color:var(--ink);max-width:50ch;margin:16px 0 28px}
.poll-panel{background:#fff;border:1px solid var(--frame);border-radius:var(--r);padding:24px 28px}
.poll-panel h2{font-size:23px}
.steps-row{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--frame);border-radius:var(--r);counter-reset:step}
.steps-row li{display:grid;align-content:start;gap:6px;padding:20px 24px;border-right:1px solid var(--frame);counter-increment:step}
.steps-row li:last-child{border-right:0}
.steps-row li::before{content:counter(step);display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid var(--blue);color:var(--blue);font-weight:700;margin-bottom:6px}
.steps-row b{font-size:19px;color:var(--ink)}
.steps-row span{font-size:17px;color:var(--mut)}

/* Разделы */
.sec{padding:56px 0}.sec.alt{background:var(--bg2)}
.sec h2.t{font-size:30px;margin-bottom:8px}
.sec .lead2{color:var(--mut);margin:8px 0 24px;max-width:70ch}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:8px}

/* Новости */
.gtabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 24px}
.chip{min-height:var(--tap);padding:0 18px;border:2px solid var(--bd);background:#fff;color:var(--ink);font:600 17px Roboto,Arial,sans-serif;cursor:pointer}
.chip:hover{border-color:var(--blue)}
.chip.on,.chip[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.ngrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ncard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--frame);border-radius:var(--r)}
.ncard:hover{border-color:var(--blue)}
.nhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 20px 0;color:var(--mut)}
.nhead .dn{font-weight:600;font-size:15px;color:var(--blue)}
.nhead time{font-size:15px;white-space:nowrap}
.nbody{display:flex;flex-direction:column;gap:10px;padding:10px 20px 20px;flex:1}
.nbody h3{font-size:20px;line-height:1.3}
.nbody p{color:var(--mut);font-size:16px}
.nfoot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.nfoot .src{font-size:15px;color:var(--mut)}
.nfoot a{font-weight:600;display:inline-flex;align-items:center;min-height:var(--tap)}
.note2{margin-top:20px}

/* Округа: список ссылок, как в справочниках портала */
.dgrid{display:grid;grid-template-columns:repeat(3,1fr);column-gap:40px;border-top:1px solid var(--line)}
.dtile{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--link)}
.dtile .mono{display:none}
.dtile b{font-size:18px;font-weight:500}
.dtile:hover b{text-decoration:underline}
.dtile span{font-size:15px;color:var(--mut);white-space:nowrap}

/* Подвал */
.site-footer{padding:0}
.site-footer .fc{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;padding:40px 24px 28px}
.site-footer h4{margin:0 0 12px;font-size:17px;color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.site-footer li a{display:inline-flex;align-items:center;min-height:var(--tap);min-width:var(--tap)}
.site-footer .copy{border-top:1px solid rgba(255,255,255,.18);padding:16px 0;font-size:15px;color:#C9CEDA}
.site-footer .copy .c{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.site-footer :focus-visible{outline-color:#fff}

/* Вход через Госуслуги (демо) */
.or{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--mut);font-size:16px}
.or::before,.or::after{content:"";flex:1;border-top:1px solid var(--line)}

@media (max-width:1000px){.ngrid{grid-template-columns:repeat(2,1fr)}.dgrid{grid-template-columns:repeat(2,1fr)}.steps-row{grid-template-columns:repeat(2,1fr)}.steps-row li:nth-child(2){border-right:0}.steps-row li:nth-child(-n+2){border-bottom:1px solid var(--frame)}}
@media (max-width:800px){.intro{padding:32px 0 40px}.intro-grid{grid-template-columns:1fr;gap:28px}.intro h1{font-size:30px}.site-footer .fc{grid-template-columns:1fr}.ngrid{grid-template-columns:1fr}.navbar .nav a{padding:0 14px}.hd-link{display:none}.bt{font-size:22px}.brand img{height:60px}}
@media (max-width:560px){.dgrid,.steps-row{grid-template-columns:1fr}.steps-row li{border-right:0;border-bottom:1px solid var(--frame)}.steps-row li:last-child{border-bottom:0}}

/* ===== Читаемость и экраны разделов ===== */
.hint,.t-sm,.lock,.bs{font-size:16px}
.t-md{font-size:18px}
.wrap-wide{max-width:820px}
.tabs{gap:8px;border-bottom:0}
.tab{min-height:var(--tap);padding:0 16px;border:2px solid var(--frame);border-radius:var(--r);background:#fff;color:var(--ink)}
.tab:hover{border-color:var(--blue)}
.tab.on,.tab[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}
.grid3 .idea{padding:20px}
.idea h2,.idea h3{overflow-wrap:anywhere}
.pb{height:14px;border-radius:4px;border:1px solid var(--bd);background:#fff}
.pb div{border-radius:0}
.res{list-style:none;margin:16px 0;padding:0;display:grid;gap:16px}
.res-row{display:grid;gap:6px}
.res-title{font-size:24px;margin-bottom:4px}
.rtr{height:16px;border-radius:4px;border:1px solid var(--bd);background:#fff}
.rbar{border-radius:0}
.alert{align-items:flex-start}
.alert.warn{background:var(--sky);color:var(--ink)}
.alert.warn .fw{color:inherit}
.opt:has(input:checked){border-color:var(--blue);background:var(--sky)}
.stp i{border-radius:2px}
.menu-btn{display:none}
.skip{border-radius:var(--r)}
@media (max-width:800px){
  .menu-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;border:0;background:none;color:#fff;font:600 18px Roboto,Arial,sans-serif;cursor:pointer}
  .navbar .nav{display:none}
  .navbar .nav.open{display:grid;padding-bottom:8px}
  .navbar .nav a{min-height:var(--tap);border-top:1px solid rgba(255,255,255,.2)}
  .navbar .nav a.cur,.navbar .nav a[aria-current=page]{border-radius:var(--r)}
  .tool{padding:0 12px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media (max-width:800px){.hd .c{min-height:0;padding-top:12px;padding-bottom:12px;flex-wrap:nowrap}.brand .bs{display:none}.org{font-size:15px}}

/* ===== Без декоративных полос: границы одной толщины, статус — текстом и фоном ===== */
.gold{border-top:1px solid var(--frame)}
.poll-panel{border:1px solid var(--frame);border-radius:var(--r);padding:24px}
.poll-kicker{font-size:16px;font-weight:600;color:var(--mut);margin-bottom:8px}
.poll-panel h2{font-size:24px}
.alert{border:1px solid #9DCBAA;border-left-width:1px}
.alert.err{border-color:#E3A29B}
.alert.warn{border-color:#B8BFE0}
.steps-row li::before{width:auto;height:auto;border:0;border-radius:0;justify-content:flex-start;font-size:16px;color:var(--mut);margin:0;content:counter(step) "."}

/* Лента */
.feed{padding:40px 0 56px}
.feed.sec{padding:48px 0 16px}
.feed-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.feed-head h1,.feed-head h2{font-size:30px!important}
.feed .tabs{margin-bottom:24px}
.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Панель модератора */
.more{margin-top:16px}
.user-filter{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin:16px 0}
.user-filter .fl{flex:1 1 220px}
.user-filter .inp{min-height:48px;font-size:18px}
.user-filter .sel{min-width:0;width:100%}
.user-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.user-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line)}
.user-list .phone{font-variant-numeric:tabular-nums}
.user-list .sel{min-width:200px}
.pager{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px;color:var(--mut)}
.toast-area{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;display:flex;justify-content:center;pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:center;gap:12px;max-width:640px;width:100%;padding:8px 8px 8px 20px;border:1px solid #9DCBAA;border-radius:var(--r);background:#E6F4EA;color:#14532B;font-weight:600;box-shadow:0 2px 8px rgba(50,56,75,.18)}
.toast.err{border-color:#E3A29B;background:#FCEAE8;color:#7A1812}
.toast span{flex:1}
.toast-close{flex:none;width:var(--tap);height:var(--tap);border:0;background:none;color:inherit;font-size:28px;line-height:1;cursor:pointer;border-radius:var(--r)}

/* ===== Мобильная версия ===== */
@media (max-width:800px){
  body{font-size:17px}
  .c{padding:0 16px}
  .top .c{min-height:52px;gap:8px;flex-wrap:nowrap}
  .top .row{gap:4px!important;flex-wrap:nowrap}
  .top a.tool,#auth-link{padding:0 4px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .tool[data-lang]{padding:0 10px;font-size:16px}
  .hd .c{gap:12px}
  .brand{gap:12px}
  .brand img{height:48px}
  .org{font-size:14px}
  .bt{font-size:20px}
  .intro{padding:24px 0 28px}
  .intro h1{font-size:27px}
  .intro .lead{font-size:18px;margin:12px 0 20px}
  .intro .row{display:grid;grid-template-columns:1fr;gap:12px!important}
  .intro .btn.main{width:100%}
  .poll-panel{padding:20px}
  .poll-panel h2{font-size:21px}
  .sec{padding:36px 0}
  .sec h2.t,.feed-head h1,.feed-head h2{font-size:25px!important}
  .steps-row{grid-template-columns:1fr;margin-top:16px}
  .steps-row li{grid-template-columns:28px 1fr;column-gap:8px;row-gap:2px;padding:14px 16px;border-right:0;border-bottom:1px solid var(--frame)}
  .steps-row li:last-child{border-bottom:0}
  .steps-row li::before{grid-row:span 2;font-size:18px;font-weight:700;color:var(--blue)}
  .steps-row b{font-size:18px}
  .steps-row span{font-size:16px}
  .feed{padding:24px 0 40px}
  .feed-head{margin-bottom:12px}
  .feed-head .fl,.feed-head .sel{width:100%;min-width:0}
  .tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 20px!important;padding:0 16px 4px;scrollbar-width:thin}
  .tab{flex:none;white-space:nowrap}
  .grid3{gap:16px}
  .grid3 .idea{padding:16px;gap:8px}
  .idea h3{font-size:20px!important}
  .ngrid{gap:16px}
  .card{padding:20px}
  .wrap,.wrap-wide{max-width:none}
  .vgrid{gap:16px}
  .vgrid h1{font-size:24px!important}
  .rrow{font-size:18px}.rpct{font-size:22px}
  .opt{min-height:56px;font-size:18px;padding:10px 16px}
  .otp input{width:56px;height:64px}
  .inp{font-size:20px;min-height:56px}
  .fld{margin:18px 0}
  .site-footer .fc{gap:20px;padding:28px 16px 20px}
  .site-footer ul{grid-template-columns:1fr 1fr}
  .user-list .sel{min-width:0;flex:1 1 160px}
  .toast-area{left:8px;right:8px;bottom:8px}
}
@media (max-width:800px){.steps-row li::before{align-self:start}}

/* Ссылка «назад» вместо крупной кнопки */
.back-link{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);font-weight:600;text-decoration:none}
.back-link::before{content:"←";font-size:1.1em}
.back-link:hover{text-decoration:underline}
.no-photo{margin-top:4px}

/* ===== Телефон: компактная шкала. Кнопки и поля не ниже 48 px (требование ТЗ), текст не меньше 15 px ===== */
@media (max-width:600px){
  body{font-size:16px;line-height:1.5}
  .c{padding:0 14px}
  .top .c{min-height:48px}
  .tool,.tool[data-lang]{font-size:15px}
  .tool.a11y{width:48px;min-width:48px}
  .hd .c{padding-top:8px;padding-bottom:8px}
  .brand img{height:40px}
  .org{font-size:13px;line-height:1.25}
  .bt{font-size:18px}
  .menu-btn{min-height:48px;font-size:17px}
  .navbar .nav a{font-size:17px}

  h1,.intro h1{font-size:24px!important;line-height:1.2}
  .sec h2.t,.feed-head h1,.feed-head h2{font-size:21px!important}
  h2{font-size:20px}
  .intro{padding:20px 0 24px}
  .intro .lead{font-size:16px;margin:8px 0 16px}
  .btn{font-size:17px;padding:0 16px;min-height:48px}
  .btn.main{min-height:48px;font-size:17px;padding:0 16px}
  .poll-panel{padding:16px}
  .poll-kicker{font-size:15px;margin-bottom:4px}
  .poll-panel h2{font-size:18px;line-height:1.3}
  .poll-panel .mut{font-size:15px;margin:8px 0 12px!important}
  .sec{padding:28px 0}
  .feed.sec{padding:28px 0 8px}
  .steps-row li{padding:10px 12px}
  .steps-row b{font-size:16px}
  .steps-row span{font-size:15px}
  .steps-row li::before{font-size:16px}

  .card,.grid3 .idea{padding:14px}
  .idea{gap:6px}
  .idea h3{font-size:18px!important;line-height:1.3}
  .badge{min-height:26px;font-size:14px;padding:0 8px}
  .t-md,.mut.t-md{font-size:16px}
  .hint,.t-sm,.lock,.bs{font-size:15px}
  .clamp{-webkit-line-clamp:2}
  .foot{padding-top:6px;gap:8px}
  .tab,.chip{min-height:48px;padding:0 14px;font-size:16px}
  .vgrid h2,#poll-body h2{font-size:18px}
  .tabs{margin-bottom:14px!important}
  .gtabs{flex-wrap:nowrap;overflow-x:auto;margin:4px -14px 16px;padding:0 14px 4px}
  .chip{flex:none;white-space:nowrap}
  .fl label,.fld label{font-size:16px}
  .sel{min-height:48px;font-size:16px}

  /* формы — сам экран, без лишней рамки вокруг */
  .wrap>.card,.wrap>form.card{border:0;padding:0;background:none}
  .inp{font-size:18px;min-height:48px;padding:0 14px}
  .ta{min-height:120px;font-size:16px;padding:12px 14px}
  .fld{margin:14px 0;gap:6px}
  .otp{gap:8px;margin:16px 0}
  .otp input{width:52px;height:56px;font-size:26px}
  .stp{margin-bottom:4px}
  .or{margin:12px 0}

  /* голосование: вопрос и варианты сразу на первом экране */
  .vgrid{margin-top:8px!important;gap:12px}
  .vgrid h1{font-size:21px!important;margin-top:8px!important}
  .vgrid .note{display:none!important}
  .opts{gap:8px;margin:12px 0}
  .opt{min-height:52px;font-size:17px;padding:8px 14px;gap:12px}
  .opt input{width:22px;height:22px}
  .res{gap:12px;margin:12px 0}
  .res-title{font-size:18px}
  .rrow{font-size:16px}.rpct{font-size:18px}
  .rtr{height:12px}
  .alert{padding:12px;font-size:15px;margin-bottom:16px}

  .ncard .nhead{padding:12px 14px 0}
  .nbody{padding:6px 14px 14px;gap:6px}
  .nbody h3{font-size:17px}
  .nbody p{font-size:15px}
  .nfoot{padding-top:8px}

  .site-footer .fc{padding:20px 14px 12px;gap:14px}
  .site-footer .fc>div:last-child{display:none}
  .site-footer h4{font-size:15px;margin-bottom:4px}
  .site-footer,.site-footer .copy{font-size:14px}
  .site-footer .copy{padding:12px 0}

  .a11y-bar .c{gap:8px 16px}
  .a11y-group>span{font-size:15px}
  .toast{font-size:15px}
}
@media (max-width:600px){
  .vgrid h2,#poll-body h2,.card>h2{font-size:18px!important;line-height:1.3}
  .card>h2+.t-sm{margin-bottom:12px!important}
  .brand{min-height:48px}
  .org{font-size:14px}
  .badge{font-size:15px}
  .site-footer,.site-footer .copy{font-size:15px}
}
/* на узком экране увеличение мягче: при 150% строка шириной 250px неудобна */
@media (max-width:600px){html.fs-125{zoom:1.12}html.fs-150{zoom:1.25}.top a.tool,#auth-link{flex:1 1 auto}}

/* ===== Верхняя служебная панель ===== */
.top{background:var(--bg2);color:var(--ink);border-bottom:1px solid var(--frame)}
.top .c{justify-content:flex-start;gap:8px 24px;min-height:52px}
.top .tool,.top a.tool{min-height:var(--tap);padding:0;border:0;border-radius:0;background:none;color:var(--ink);font-size:16px;font-weight:500;text-decoration:none;gap:8px}
.top .tool:hover{color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.top .tool.a11y{width:auto;min-width:var(--tap)}
.top .tool.a11y[aria-pressed=true],.top .tool.a11y[aria-expanded=true]{color:var(--blue);font-weight:700}
.lang{display:flex;align-items:center}
.top .lang .tool{justify-content:center;min-width:var(--tap);padding:0 8px;color:var(--mut)}
.top .lang .tool.on,.top .lang .tool[aria-pressed=true]{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.top #auth-link,.top #who{margin-left:auto}
.top :focus-visible{outline-color:var(--link);outline-offset:-3px}
.short{display:none}
@media (max-width:600px){
  .top .c{gap:0 8px;min-height:48px;flex-wrap:wrap}
  .top .tool,.top a.tool{font-size:15px;gap:6px}
  .top .tool.a11y{justify-content:flex-start}
  .top .lang .tool{padding:0 6px}
  .top #auth-link{flex:0 0 auto;min-width:var(--tap);justify-content:flex-end;overflow:visible}
  .full{display:none}
  .short{display:inline}
}
/* в контрастных темах выбранный пункт меню и фильтр инвертируются */
html.theme-bw .tab[aria-pressed=true],html.theme-bw .navbar .nav a[aria-current=page]{background-color:#000!important;color:#fff!important}
html.theme-wb .tab[aria-pressed=true],html.theme-wb .navbar .nav a[aria-current=page]{background-color:#fff!important;color:#000!important}

/* ===== Темы идей ===== */
.badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.topic-tag{font-size:15px;font-weight:500;color:var(--mut)}
.feed-filters{display:flex;flex-wrap:wrap;gap:12px 16px;margin-bottom:16px}
.feed-filters .fl{flex:0 1 320px}.feed-filters .sel{width:100%;min-width:0}
.topics{border:0;padding:0;margin:24px 0 0;min-width:0}
.topics legend{font-weight:600;color:var(--ink);padding:0;margin-bottom:8px}
.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (max-width:600px){.feed-filters .fl{flex:1 1 100%}.topic-grid{grid-template-columns:1fr}}

/* ===== Панель модератора: меню разделов слева, список карточек справа ===== */
.mod-page{background:var(--bg2)}
.mod-title{background:var(--blue);color:#fff;padding:20px 0}
.mod-title h1{color:#fff;font-size:28px}
.mod-title p{color:#fff;font-size:16px}
.mod-main{width:100%;min-width:0;padding-top:24px;padding-bottom:64px}
.mod-layout{display:grid;grid-template-columns:264px minmax(0,1fr);gap:24px;align-items:start}
.mod-side{position:sticky;top:16px;background:#fff;border:1px solid var(--frame);border-radius:var(--r);padding:8px}
.mod-side ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mod-side a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--tap);padding:6px 12px;border-radius:var(--r);color:var(--ink);font-size:17px;font-weight:500;line-height:1.25;text-decoration:none}
.mod-side a:hover{background:var(--sky)}
.mod-side a[aria-current=page]{background:var(--blue);color:#fff}
.mod-side .grp{padding:14px 12px 4px;font-size:14px;color:var(--mut)}
.count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;padding:0 8px;border-radius:4px;background:var(--sky);color:var(--blue);font-size:15px;font-weight:700}
.count.zero{background:transparent;color:var(--mut)}
.mod-side a[aria-current=page] .count{background:#fff;color:var(--blue)}
.mod-content{min-width:0;display:grid;gap:16px}
.mod-head h2{font-size:26px;scroll-margin-top:16px}
.mod-head h2:focus:not(:focus-visible){outline:none}
.mod-sub{font-size:20px;margin:28px 0 12px}
.mod-empty{padding:28px 24px;background:#fff;border:1px dashed var(--bd);border-radius:var(--r);color:var(--ink);display:grid;gap:12px;justify-items:start}

.mod-filter{display:flex;flex-wrap:wrap;gap:12px 16px;padding:16px;background:#fff;border:1px solid var(--frame);border-radius:var(--r)}
.mod-filter .fl{flex:1 1 200px;min-width:0}.mod-filter .grow{flex:2 1 260px}
.mod-filter .inp,.mod-filter .sel{min-height:var(--tap);min-width:0;width:100%;font-size:17px;padding:0 12px}
.mod-filter label{font-size:15px}

.stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.stats a{display:grid;gap:2px;align-content:start;height:100%;padding:16px;background:#fff;border:1px solid var(--frame);border-radius:var(--r);text-decoration:none;color:var(--ink)}
.stats a:hover{border-color:var(--blue)}
.stats b{font-size:34px;line-height:1.1;color:var(--blue);font-variant-numeric:tabular-nums}
.stats span{font-size:15px;line-height:1.3}
.tasks{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--frame);border-radius:var(--r)}
.tasks li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.tasks li:last-child{border-bottom:0}

.mod-list{display:grid;gap:16px}
.mod-card{background:#fff;border:1px solid var(--frame);border-radius:var(--r);overflow-wrap:anywhere}
.mod-card-body{display:grid;gap:10px;padding:20px 24px}
.mod-card h3{font-size:21px}
.mod-tags{display:flex;flex-wrap:wrap;gap:8px}
.b-late{background:#FCEAE8;color:#7A1812}
.mod-text{max-width:75ch;white-space:pre-line}
.facts{display:flex;flex-wrap:wrap;gap:8px 32px;margin:4px 0 0}
.facts dt{font-size:14px;color:var(--mut)}
.facts dd{margin:0;font-size:17px;font-weight:500;color:var(--ink)}
.mod-card .res{margin:8px 0 0;max-width:640px}
.mod-result{padding:12px 16px;background:var(--bg2);border-radius:var(--r)}
.mod-photo{display:block;max-width:100%;max-height:320px;border-radius:var(--r);border:1px solid var(--frame)}
.mod-actions{display:grid;gap:16px;padding:16px 24px 20px;border-top:1px solid var(--line);background:#FAFBFC;border-radius:0 0 var(--r) var(--r)}
.mod-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 16px}
.mod-row .fld{flex:0 1 300px}
.mod-buttons{display:flex;flex-wrap:wrap;gap:12px}
.mod-panel{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.mod-chips{display:flex;flex-wrap:wrap;gap:8px}
.mod-chips .chip{font-weight:500;font-size:16px;white-space:normal;text-align:left}
.mod-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.mod-form .wide{grid-column:1/-1}
.mod-actions .fld{margin:0;gap:4px;align-content:start}
.mod-actions .fld .fw{font-size:15px}
.mod-actions .inp,.mod-actions .sel{min-height:var(--tap);min-width:0;width:100%;font-size:17px;padding:0 12px}
.mod-actions .ta{min-height:104px;padding:10px 12px}
.btn.danger{background:var(--err);color:#fff}.btn.danger:hover{background:#8F1E18}

.journal{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--frame);border-radius:var(--r)}
.journal li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:14px 16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.journal li:last-child{border-bottom:0}
.journal li>div{display:grid;gap:4px}
.journal time{font-size:15px;color:var(--mut)}

#users-box{background:#fff;border:1px solid var(--frame);border-radius:var(--r);padding:4px 20px 20px}
.user-list .mut{flex:1 1 180px;font-size:16px}

@media (max-width:1000px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){
  .mod-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .mod-side{position:static;min-width:0;margin:0 -16px;padding:8px 0;border-width:0 0 1px;border-radius:0}
  .mod-side ul{display:flex;gap:8px;overflow-x:auto;padding:0 16px 6px;position:relative;scrollbar-width:thin}
  .mod-side .grp{display:none}
  .mod-side a{white-space:nowrap;border:1px solid var(--frame)}
  .mod-main{padding-top:0}
}
@media (max-width:600px){
  .mod-title{padding:12px 0}.mod-title h1{font-size:21px!important}.mod-title p{font-size:15px}
  .mod-side{margin:0 -14px}.mod-side ul{padding:0 14px 6px}
  .mod-page .top #who{display:none}
  .mod-head h2{font-size:20px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stats a{padding:12px}.stats b{font-size:26px}
  .mod-card-body{padding:14px}.mod-card h3{font-size:18px}
  .mod-actions{padding:14px}
  .mod-form{grid-template-columns:minmax(0,1fr)}
  .mod-row .fld{flex:1 1 100%}
  .mod-buttons .btn{flex:1 1 100%}
  .journal li{grid-template-columns:minmax(0,1fr);gap:4px}
  .facts{gap:8px 20px}
  .mod-filter{padding:12px}
}
html.fs-150 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
html.fs-150 .mod-layout{grid-template-columns:minmax(0,1fr)}
html.theme-bw .mod-side a[aria-current=page],html.theme-bw .mod-side a[aria-current=page] *,html.theme-bw .btn.danger{background-color:#000!important;color:#fff!important}
html.theme-wb .mod-side a[aria-current=page],html.theme-wb .mod-side a[aria-current=page] *,html.theme-wb .btn.danger{background-color:#fff!important;color:#000!important}

#denied{margin-top:16px}
@media (max-width:600px){.tabs{margin-left:-14px!important;margin-right:-14px!important;padding-left:14px;padding-right:14px}.feed-head>.row{width:100%}.feed-head>.row .btn{flex:1 1 auto}}

.consent{margin:8px 0 16px}

/* ===== Картинки, темы, комментарии ===== */
.thumb{display:block;width:100%;height:110px;object-fit:cover;border-radius:var(--r);background:var(--sky)}
.ncard .thumb{height:96px;border-radius:var(--r) var(--r) 0 0}
.topic-opt{align-items:flex-start}
.topic-opt span{display:grid;gap:2px}
.topic-opt b{font-weight:600}
.topic-opt .hint{font-weight:400}
.comments{margin-top:32px;display:grid;gap:12px;max-width:760px}
.comments .fld{margin:8px 0}
.comment-list{list-style:none;margin:8px 0 0;padding:0;border-top:1px solid var(--line)}
.comment-list li{padding:12px 0;border-bottom:1px solid var(--line);display:grid;gap:4px;overflow-wrap:anywhere}

/* ===== Кнопки: скругление и состояния в духе платформы «Активный гражданин» ===== */
.btn,.inp,.sel,.opt{border-radius:12px}
.btn{transition:background-color .15s,box-shadow .15s,border-color .15s}
.btn.p:hover:not(:disabled){box-shadow:0 6px 16px rgba(35,43,107,.28)}
.btn.s:hover:not(:disabled){border-color:var(--navy)}
.btn:active:not(:disabled){transform:translateY(1px)}
@media (prefers-reduced-motion:reduce){.btn{transition:none}.btn:active{transform:none}}

/* ===== Шаблон-симуляция Госуслуг ===== */
.gu{padding:0;overflow:hidden}
.wrap>form.card.gu{border:1px solid var(--frame);padding:0;background:#fff}
.gu-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;background:#0D5BA5;color:#fff;font-size:20px;font-weight:700}
.gu-bar small{font-size:15px;font-weight:500}
.gu-body{padding:24px;display:grid;gap:16px}
.gu-acc{display:flex;align-items:center;gap:16px;width:100%;min-height:72px;padding:12px 16px;border:2px solid var(--frame);background:#fff;border-radius:12px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.gu-acc:hover{border-color:var(--link)}
.gu-acc.static{cursor:default}.gu-acc.static:hover{border-color:var(--frame)}
.gu-ava{flex:none;width:44px;height:44px;border-radius:50%;background:var(--sky);color:var(--blue);display:flex;align-items:center;justify-content:center;font-weight:700}
.gu-scope{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.gu-scope li::before{content:"✓ ";color:#14652E;font-weight:700}
@media (max-width:600px){.gu-bar{padding:12px 14px;font-size:18px}.gu-body{padding:16px}.gu-acc{padding:10px 12px}}

/* Меню разделов панели модератора липнет к верху только если помещается на экране:
   на низких экранах и в версии для слабовидящих (125 и 150%) оно листается вместе со страницей */
.mod-side{max-height:calc(100vh - 32px);overflow-y:auto}
@media (max-height:760px){.mod-side{position:static;max-height:none}}
html.fs-125 .mod-side,html.fs-150 .mod-side{position:static;max-height:none}

/* ===== Страницы ошибок ===== */
.err-page{padding:72px 0 88px;background:var(--bg2);border-bottom:1px solid var(--line)}
.err-code{font-size:104px;font-weight:700;line-height:1;color:var(--blue);margin-bottom:8px}
.err-page h1{font-size:34px;margin-bottom:12px}
.err-page .lead{font-size:20px;color:var(--ink);max-width:48ch;margin-bottom:28px}
@media (max-width:600px){.err-page{padding:40px 0 56px}.err-code{font-size:72px}.err-page h1{font-size:26px}.err-page .lead{font-size:17px}}

/* ===== Фото с устройства, автор комментария, жалоба ===== */
.file-inp{display:block;width:100%;min-height:var(--tap);padding:10px;border:2px dashed var(--bd);border-radius:12px;background:#fff;font:inherit;cursor:pointer}
.file-inp:hover{border-color:var(--link)}
.photo-preview{display:grid;gap:8px;justify-items:start;margin-top:8px}
.photo-preview img{max-width:100%;max-height:240px;border-radius:12px;border:1px solid var(--frame)}
.cm-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}
.cm-head b{color:var(--ink)}
.link-btn{justify-self:start;min-height:var(--tap);padding:0;border:0;background:none;color:var(--link);font:inherit;font-size:16px;text-decoration:underline;cursor:pointer}

/* Телефон: в версии для слабовидящих карточки всегда в одну колонку (две колонки при крупном шрифте слишком узкие) */
@media (max-width:800px){
  html.fs-125 .grid3,html.fs-150 .grid3,html.fs-125 .ngrid,html.fs-150 .ngrid,
  html.fs-150 .steps-row,html.fs-150 .dgrid{grid-template-columns:minmax(0,1fr)}
  .thumb{height:132px}
  .badges{gap:6px 10px}
  .badges .badge{white-space:nowrap}
  .idea .lock{margin-top:2px}
}

/* выпадающие списки не шире экрана (раньше min-width 260px выталкивал их при крупном шрифте) */
.sel{max-width:100%}
@media (max-width:600px){.sel{min-width:0}}


/* Двухуровневая шапка городского портала и панорама Якутска. */
.civic-header .c{max-width:1280px;display:grid;grid-template-columns:auto minmax(60px,1fr) auto;gap:16px;min-height:112px;padding-top:14px;padding-bottom:14px;align-items:center}
.civic-header .brand{min-width:0;gap:12px}
.civic-header .brand img{height:64px;flex-shrink:0}
.civic-header .org{font-size:13px}.civic-header .bs{font-size:14px}.civic-header .bt{font-size:24px}
.header-panorama{align-self:stretch;min-height:72px;background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.12) 30%,rgba(255,255,255,.12) 70%,#fff 100%),url('../assets/yakutsk-panorama.webp');background-size:100% 100%,cover;background-position:center,center 76%;border-radius:8px}
.civic-header .header-tools{display:flex;align-items:center;gap:10px;background:transparent;border:0;flex-wrap:wrap;justify-content:flex-end}
.civic-header .header-tools .tool.a11y{padding:0 6px;border:0;border-radius:8px;max-width:245px;text-align:left;line-height:1.2}
.civic-header .header-tools .tool.a11y .ico{flex-shrink:0}
.civic-header .header-tools #auth-link{margin:0;min-width:76px;padding:0 14px;justify-content:center;background:var(--blue);color:#fff;border-radius:8px;text-decoration:none;white-space:nowrap}
.civic-header #auth-link .full{display:none}.civic-header #auth-link .short{display:inline}
.civic-header .header-tools .lang{gap:0}.civic-header .header-tools .lang .tool{padding:0 5px;min-width:48px}
.intro{background-color:#25334e;background-image:linear-gradient(90deg,rgba(15,25,49,.88),rgba(15,25,49,.63) 60%,rgba(15,25,49,.40)),url('../assets/yakutsk-chochur-muran.webp');background-size:cover;background-position:center,center 66%;padding-top:64px;padding-bottom:64px}
.intro-grid>div:first-child h1,.intro-grid>div:first-child .lead{color:#fff}
.intro-grid>div:first-child .btn.p{border-color:#fff}
.intro-grid>div:first-child :focus-visible{outline-color:#fff}
.intro .poll-panel{box-shadow:0 8px 28px rgba(0,0,0,.16)}
@media(max-width:1050px){.civic-header .c{grid-template-columns:1fr auto;gap:12px}.header-panorama{display:none}.civic-header .header-tools .tool.a11y{max-width:200px}}
@media(max-width:800px){.civic-header .c{grid-template-columns:1fr;gap:8px;padding-top:12px;padding-bottom:8px}.civic-header .header-tools{justify-content:flex-start;gap:6px}.civic-header .brand .bs{display:block}.civic-header .brand img{height:48px}.civic-header .bt{font-size:20px}.civic-header .header-tools #auth-link{margin-left:auto}.intro{padding:32px 0 40px;background-position:center,center 65%;background-image:linear-gradient(rgba(15,25,49,.76),rgba(15,25,49,.83)),url('../assets/yakutsk-chochur-muran.webp')}}
@media(max-width:600px){.civic-header .header-tools .tool.a11y{max-width:none;padding:0 6px}.civic-header .header-tools .tool.a11y .short{font-size:13px}.civic-header .header-tools .lang .tool{font-size:14px;padding:0 4px;min-width:42px}.civic-header .header-tools #auth-link{min-width:64px;padding:0 8px}.civic-header .header-tools{gap:4px}.civic-header .org{font-size:12px}.civic-header .bs{font-size:12px}.intro{padding:24px 0 28px}}
html.theme-bw .header-panorama,html.theme-wb .header-panorama{display:none}
html.theme-bw .civic-header .c,html.theme-wb .civic-header .c{grid-template-columns:1fr auto}
html.theme-bw .intro,html.theme-wb .intro{background-image:none;background-color:var(--bg2)}


@media(max-width:800px){html.theme-bw .civic-header .c,html.theme-wb .civic-header .c{grid-template-columns:1fr}}

.header-panorama{background-image:linear-gradient(90deg,#fff,transparent 24%,transparent 76%,#fff),url("../assets/yakutsk-header.webp");background-position:center,center 62%}.intro{background-image:linear-gradient(90deg,rgba(15,25,49,.85),rgba(15,25,49,.35) 65%,rgba(15,25,49,.12)),url("../assets/yakutsk-chochur-muran.webp")}

/* Мобильная навигация поверх страницы, без сдвига контента. */
.drawer-head,.menu-shade{display:none}
@media(max-width:800px){
 .menu-shade:not([hidden]){display:block;position:fixed;inset:0;background:rgba(15,23,42,.55)!important;z-index:1000}
 .navbar .nav,.navbar .nav.open{display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;position:fixed;inset:0 auto 0 0;width:min(82vw,360px);height:100%;height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;color:var(--blue);padding:16px 12px max(16px,env(safe-area-inset-bottom));z-index:1001;transform:translateX(-100%);visibility:hidden;transition:transform .28s ease,visibility .28s;box-shadow:8px 0 32px #0003}
 .navbar .nav.open{transform:translateX(0);visibility:visible}
 .drawer-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 16px;border-bottom:1px solid var(--line);margin-bottom:8px;font-size:1.25rem}
 .drawer-head button{min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;font-size:30px;cursor:pointer}
 .navbar .nav a{color:var(--blue);border:0;border-radius:10px;padding:12px;min-height:48px;flex-shrink:0;display:flex;align-items:center;gap:12px}
 .navbar .nav a:hover,.navbar .nav a.cur,.navbar .nav a[aria-current=page]{background:#e9edfa;color:var(--blue)}
 .navbar .nav :focus-visible{outline-color:var(--blue)}
 .navbar .nav a::before{content:'';width:20px;height:20px;flex:none;background:currentColor;mask:var(--nav-icon) center/contain no-repeat}
 .navbar .nav a{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M4 10l8-7 8 7v11h-6v-7h-4v7H4z'/%3E%3C/svg%3E")}
 .navbar .nav a:not([href='#/']){--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' d='M5 5h14v14H5zM8 9h8M8 13h8'/%3E%3C/svg%3E")}
 body.drawer-open{overflow:hidden}
}

/* Единая визуальная система городского портала — все разделы. */
:root{--ink:#25324c;--mut:#526176;--slate:#25334e;--bg2:#f3f6fb;--frame:#d7dfeb;--line:#e0e6ef;--sky:#e9eefb;--r:12px;--bd:#8290a6}
html:not(.theme-bw):not(.theme-wb) body{background:#f7f9fc}
.card,.ncard,.poll-panel,.mod-card,.mod-filter,.stats a,.tasks,.journal,#users-box,.mod-side{border-radius:14px;box-shadow:0 3px 14px rgba(37,50,76,.06)}
.ncard{overflow:hidden}.ncard .thumb{border-radius:14px 14px 0 0;height:144px}.thumb{border-radius:10px}
.btn,.inp,.sel,.opt,.chip,.tab,.otp input{border-radius:10px}.btn.s{border-width:1px}.btn.p{box-shadow:0 2px 5px rgba(45,58,137,.12)}
.inp,.sel,.opt{border-width:1px}.inp:focus,.sel:focus{border-color:var(--blue)}
.feed-filters{padding:16px;background:#fff;border:1px solid var(--frame);border-radius:14px}.feed-head{padding-bottom:14px;border-bottom:1px solid var(--line)}
.badge{border-radius:999px;padding:3px 12px;line-height:1.3}.tabs{gap:8px}.tab,.chip{border-width:1px}
.steps-row{gap:12px;border:0}.steps-row li{background:#fff;border:1px solid var(--frame);border-radius:14px}.steps-row li:last-child{border-right:1px solid var(--frame)}.steps-row li::before{width:36px;height:36px;justify-content:center;border-radius:50%;background:var(--sky);color:var(--blue);font-weight:700;content:counter(step)}
.dgrid{gap:10px;border:0}.dtile{background:#fff;border:1px solid var(--frame);border-radius:10px;padding:12px}.dtile span{white-space:normal;text-align:right}
.pb,.rtr{border-radius:999px;overflow:hidden}.pb div,.rbar{border-radius:999px}.modal{border-radius:16px}.ov{overflow-y:auto;padding-bottom:24px}.note,.alert{border-radius:10px}
.mod-title{background:var(--blue)}.mod-side a{border-radius:9px}.mod-actions{background:#f5f7fb;border-radius:0 0 14px 14px}.stats a{border-top:3px solid var(--blue)}.mod-head{padding:16px 20px;background:#fff;border:1px solid var(--frame);border-radius:14px}.mod-empty{border-radius:14px}
.err-page .wrap{background:#fff;border:1px solid var(--frame);border-radius:16px;padding:32px;box-shadow:0 3px 14px rgba(37,50,76,.06)}
.site-footer{background:var(--slate)}
@media(max-width:800px){.steps-row{grid-template-columns:repeat(2,minmax(0,1fr))}.dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mod-head{padding:14px}.feed-filters{padding:12px}}
@media(max-width:600px){.steps-row,.dgrid{grid-template-columns:1fr}.card,.poll-panel{padding:16px}.wrap>form.card.gu{padding:0}.err-page .wrap{padding:20px}.ncard .thumb{height:140px}.feed-head{gap:12px}.mod-card-body,.mod-actions{padding:16px}.btn{white-space:normal}.feed-filters{margin-bottom:16px}}

@media(prefers-reduced-motion:reduce){.navbar .nav,.navbar .nav.open{transition:none}}

/* Фотографии Якутска: читаемая надпись и более ясная панорама. */
.header-panorama{background-position:center,center 100%;background-size:100% 100%,100% auto;background-repeat:no-repeat;background-image:linear-gradient(90deg,#fff,transparent 8%,transparent 92%,#fff),url('../assets/yakutsk-header.webp')}
html:not(.theme-bw):not(.theme-wb) .intro{background-image:linear-gradient(90deg,rgba(15,25,49,.82),rgba(15,25,49,.64) 35%,rgba(15,25,49,.18) 70%,rgba(15,25,49,.04)),url('../assets/yakutsk-chochur-muran.webp');background-position:center,center 55%}
@media(max-width:800px){html:not(.theme-bw):not(.theme-wb) .intro{background-image:linear-gradient(rgba(15,25,49,.78),rgba(15,25,49,.68)),url('../assets/yakutsk-chochur-muran.webp')}}

/* Internal page layout — scoped, without changing home or accessibility colors. */
#view:not([data-page=home]){min-height:55vh}
html:not(.theme-bw):not(.theme-wb) #view:not([data-page=home]){background:#f3f6fb}
#view[data-page=profile] .wrap,#view[data-page=login] .wrap{max-width:1100px}
.profile-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.profile-links{display:grid;gap:8px}.profile-links a,.profile-links strong{padding:12px;border-radius:8px;display:block}.profile-links strong{background:var(--sky);color:var(--blue)}
.profile-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--sky);color:var(--blue);font-size:30px;font-weight:700;margin-bottom:16px}
.login-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}.login-city{border-radius:16px;background:url('../assets/yakutsk-header.webp') center/cover;min-height:400px}
#view[data-page=ideas] #feed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#view[data-page=ideas] .idea{display:grid;grid-template-columns: minmax(100px,34%) minmax(0,1fr);gap:10px 16px;align-content:start}
#view[data-page=ideas] .idea>.thumb{grid-column:1;grid-row:1/span 4;height:100%;min-height:140px;object-fit:cover}
#view[data-page=ideas] .idea>:not(.thumb){grid-column:2}#view[data-page=ideas] .idea>.foot{grid-column:1/-1}
#feed-search{width:100%;min-width:0}.feed-filters .fl{flex:1 1 180px;min-width:0}
.survey-tabs{margin-top:24px}.survey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.survey-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}.survey-card>.survey-art{width:100%;height:100%;min-height:120px;object-fit:cover;border-radius:10px;grid-row:1/span 3}.survey-card>.foot{grid-column:1/-1}.survey-card[hidden]{display:none}
#view[data-page=results] .wrap-wide{max-width:1000px}#view[data-page=results] .res-row{padding:12px 0;border-bottom:1px solid var(--line)}#view[data-page=results] .rtr{height:14px}
#view[data-page=news] .ncard .thumb{height:180px}#view[data-page=news] .nhead{display:flex;flex-wrap:wrap;gap:6px 12px}#view[data-page=news] .nfoot a{font-weight:700}
.ba>div{border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.ba img{aspect-ratio:16/10;object-fit:contain;background:var(--bg2);margin:10px 0}
#view[data-page=submit] .wrap{max-width:1100px;display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:24px;align-items:start}.submit-guide h2{font-size:22px}.submit-guide ol{padding-left:24px;display:grid;gap:18px;margin-top:18px}.submit-guide li::marker{color:var(--blue);font-weight:bold}
.mod-page .mod-side{position:sticky;top:16px}
html.theme-bw .login-city,html.theme-wb .login-city{display:none}html.theme-bw .login-layout,html.theme-wb .login-layout{grid-template-columns:1fr}
@media(max-width:900px){#view[data-page=ideas] #feed-grid,.survey-grid,.profile-layout,.login-layout,#view[data-page=submit] .wrap{grid-template-columns:1fr}.login-city{display:none}.profile-links{grid-template-columns:repeat(2,minmax(0,1fr))}.mod-page .mod-side{position:static}}
@media(max-width:480px){#view[data-page=ideas] .idea{grid-template-columns:1fr}#view[data-page=ideas] .idea>.thumb{grid-row:auto;height:140px}#view[data-page=ideas] .idea>:not(.thumb){grid-column:1}.survey-card{grid-template-columns:76px minmax(0,1fr)}.profile-links a,.profile-links strong{padding:8px}}
html.fs-150 #view[data-page=ideas] #feed-grid,html.fs-150 .survey-grid,html.fs-150 .profile-layout,html.fs-150 #view[data-page=submit] .wrap{grid-template-columns:1fr}

/* ===== Шаг 2: несколько фото, кнопки формы, «Мои идеи» ===== */
.photo-list{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
.photo-list li{display:grid;gap:6px}
.photo-list img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;border:1px solid var(--frame)}
.photo-list .btn{min-height:var(--tap);padding:0 10px;font-size:15px}
.form-actions{display:flex;flex-wrap:wrap;gap:12px}
.form-actions .btn{flex:1 1 220px}
fieldset[disabled] .opt,.inp:disabled,.sel:disabled{opacity:.65;cursor:not-allowed}
.my-ideas{margin-top:24px}
.my-ideas h2{font-size:24px;margin-bottom:12px}
.my-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.my-row{display:grid;gap:6px;padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.my-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.my-head b{color:var(--ink);font-size:18px}
.my-actions{margin-top:4px}
.my-ask{display:grid;gap:8px;margin-top:6px}
@media (max-width:600px){.my-actions .btn,.form-actions .btn{flex:1 1 100%}}

/* ===== Шаг 3: карточки-ссылки, полная карточка идеи, история ===== */
.idea-link{color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.idea-link:hover{border-color:var(--blue);box-shadow:0 4px 14px rgba(35,43,107,.12)}
.idea-link h2,.idea-link h3{font-size:20px;line-height:1.3;color:var(--ink)}
.idea-link:hover h2,.idea-link:hover h3{text-decoration:underline;text-underline-offset:3px}
.idea-link:focus-visible{outline:3px solid var(--link);outline-offset:3px}
.idea-page{padding:32px 0 64px}
.idea-layout{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:24px;align-items:start;margin-top:16px}
.idea-main{display:grid;gap:12px;overflow-wrap:anywhere}
.idea-main h1{font-size:30px}
.idea-text{white-space:pre-line;font-size:18px;color:#333}
.idea-side{display:grid;gap:16px}
.idea-side .card{display:grid;gap:10px}
.idea-own{display:grid;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
.idea-sub{font-size:20px;margin-bottom:4px}
.idea-cover{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:12px;background:var(--sky);border:1px solid var(--frame)}
.gallery{margin:0;display:grid;gap:8px}
.thumbs{display:flex;flex-wrap:wrap;gap:8px}
.thumbs button{padding:0;width:72px;height:56px;min-height:0;border:2px solid var(--frame);border-radius:8px;background:none;cursor:pointer;overflow:hidden}
.thumbs button[aria-current=true]{border-color:var(--blue)}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.idea-result{display:grid;gap:10px;margin-top:12px;padding-top:16px;border-top:1px solid var(--line)}
.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--frame);display:grid;gap:14px}
.timeline li{position:relative;display:grid;gap:2px}
.timeline li::before{content:"";position:absolute;left:-25px;top:6px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--blue)}
.timeline li:last-child::before{background:var(--blue)}
.timeline time{font-size:14px;color:var(--mut)}
.result-list{display:grid;gap:16px;margin-top:24px}
.result-card{display:grid;gap:8px}
.news-mini{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:0;border-top:1px solid var(--line)}
.news-mini li{display:grid;gap:2px;padding:12px 0;border-bottom:1px solid var(--line)}
.news-mini a{font-weight:600;font-size:18px}
@media (max-width:900px){.idea-layout{grid-template-columns:minmax(0,1fr)}}
@media (max-width:600px){.idea-main h1{font-size:24px}.idea-text{font-size:16px}.idea-cover{max-height:260px}.thumbs button{width:60px;height:46px}}
/* кнопка «Войти» не уходит на отдельную строку на узких телефонах */
@media (max-width:360px){.civic-header .header-tools .tool.a11y .short{display:none}.civic-header .header-tools .tool.a11y{min-width:var(--tap)}}

/* ===== Шаг 4: панель модератора ===== */
.mod-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.mod-thumbs img{display:block;width:120px;height:90px;object-fit:cover;border-radius:10px;border:1px solid var(--frame)}
.mod-dup{padding:10px 14px;border-radius:var(--r);background:#FFF6E0;border:1px solid #E9C46A}
.mod-card .pb{max-width:420px}
.table-wrap{overflow-x:auto;max-width:100%}
.ballots{border-collapse:collapse;width:100%;min-width:520px;font-size:16px}
.ballots caption{text-align:left;font-weight:600;padding:4px 0 8px;color:var(--ink)}
.ballots th,.ballots td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.ballots th{font-size:14px;color:var(--mut);font-weight:500}
html.theme-wb .mod-dup{background:#000;border-color:#fff}
@media (max-width:600px){.mod-thumbs img{width:96px;height:72px}}
.mod-chips .chip{white-space:normal;max-width:100%;height:auto;min-height:var(--tap);text-align:left}

/* ===== Шаг 5: персональные данные ===== */
.pd-note{margin:16px 0 0;padding:12px 16px;border:1px solid var(--frame);border-radius:12px;background:#fff}
.pd-note summary{cursor:pointer;font-weight:600;color:var(--ink);min-height:var(--tap);display:flex;align-items:center}
.pd-note ul{margin:8px 0 12px;padding-left:20px;display:grid;gap:6px;font-size:16px}
.pd-note a{display:inline-flex;align-items:center;min-height:var(--tap)}
.my-data{margin-top:24px}
.my-data h2{font-size:24px}
.privacy-page{padding:40px 0 64px}
.privacy-page h1{font-size:32px;margin-bottom:20px}
.privacy-page section{margin-top:24px}
.privacy-page h2{font-size:22px;margin-bottom:8px}
.privacy-page p{overflow-wrap:anywhere}

/* ===== Шаг 6: уведомления и приложение ===== */
.civic-header .header-tools .bell{position:relative;justify-content:center;min-width:var(--tap);padding:0;color:var(--ink)}
.civic-header .header-tools .bell[hidden]{display:none}
.bell-n{position:absolute;top:2px;right:0;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--err);color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center}
.bell-n[hidden]{display:none}
.notes-page{padding:40px 0 64px}
.notes-page h1{font-size:32px;margin-bottom:20px}
.notes{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.note-item{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.note-item.unread .fw,.note-item.unread p{color:var(--ink);font-weight:600}
.note-item time{font-size:14px;color:var(--mut)}
.note-item .badge{justify-self:start}
.install-btn{margin-top:12px;background:#fff}
.install-hint{margin-top:12px;font-size:15px;color:#C9CEDA}
html.theme-wb .bell-n{background:#fff;color:#000}
html.theme-bw .bell-n{background:#000;color:#fff}

/* ===== Версия для слабовидящих: выпадающая панель под кнопкой вместо третьей полосы ===== */
.civic-header .header-tools{position:relative}
.header-tools .a11y-bar{position:absolute;top:calc(100% + 6px);right:0;z-index:60;width:min(540px,calc(100vw - 32px));padding:16px;background:#fff;border:1px solid var(--frame);border-bottom:1px solid var(--frame);border-radius:12px;box-shadow:0 12px 32px rgba(37,50,76,.18)}
.header-tools .a11y-bar[hidden]{display:none}
.civic-header .header-tools .a11y-bar .c{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:none;min-height:0;margin:0;padding:0}
.header-tools .a11y-bar .a11y-group>span{min-width:140px}
.header-tools .a11y-reset{justify-self:start;padding:0}
.civic-header .header-tools .tool.a11y[aria-expanded=true]{background:var(--sky)}
@media (max-width:600px){.header-tools .a11y-bar .a11y-group>span{min-width:0;width:100%}}
/* при самом крупном шрифте полоска с панорамой в шапке сжимается до нескольких пикселей — прячем только её, большое фото остаётся */
html.fs-150 .header-panorama{display:none}
html.fs-150 .civic-header .c{grid-template-columns:1fr auto}
@media(max-width:800px){html.fs-150 .civic-header .c{grid-template-columns:1fr}}
@media(max-width:800px){.header-tools .a11y-bar{left:0;right:0;width:auto}}

/* ===== Полосы прокрутки: тонкие, в цветах сайта (фильтры, темы, разделы панели, таблицы) ===== */
.tabs,.gtabs,.mod-side ul,.table-wrap,.feed-filters{scrollbar-width:thin;scrollbar-color:#B9C3D4 transparent}
.tabs::-webkit-scrollbar,.gtabs::-webkit-scrollbar,.mod-side ul::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.feed-filters::-webkit-scrollbar{height:4px;width:4px}
.tabs::-webkit-scrollbar-track,.gtabs::-webkit-scrollbar-track,.mod-side ul::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track,.feed-filters::-webkit-scrollbar-track{background:transparent}
.tabs::-webkit-scrollbar-thumb,.gtabs::-webkit-scrollbar-thumb,.mod-side ul::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb,.feed-filters::-webkit-scrollbar-thumb{background:#B9C3D4;border-radius:4px}
.tabs::-webkit-scrollbar-thumb:hover,.gtabs::-webkit-scrollbar-thumb:hover,.mod-side ul::-webkit-scrollbar-thumb:hover{background:var(--bd)}
@media (max-width:800px){.tabs,.gtabs{padding-bottom:8px!important}}

/* ===== Профиль: меню кабинета ===== */
.profile-links{display:grid;gap:4px;padding:8px}
.profile-links a,.profile-links button{display:flex;align-items:center;min-height:var(--tap);padding:0 14px;border:0;border-radius:8px;background:none;color:var(--ink);font:500 17px Roboto,Arial,sans-serif;text-align:left;text-decoration:none;cursor:pointer}
.profile-links a:hover,.profile-links button:hover{background:var(--alt)}
.profile-links [aria-current=true]{background:var(--sky);color:var(--blue);font-weight:700}
.profile-avatar svg{display:block}
@media (max-width:900px){.profile-links{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:6px}.profile-links::-webkit-scrollbar{display:none}.profile-links a,.profile-links button{flex:none;white-space:nowrap}}
html.theme-bw .profile-links [aria-current=true]{background:#000!important;color:#fff!important}
html.theme-wb .profile-links [aria-current=true]{background:#fff!important;color:#000!important}
/* Пометка машинного перевода идеи */
.mt-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:6px 0 10px;font-size:15px;color:var(--mut)}
.mt-note .link-btn{min-height:32px;font-size:15px}
#feed-mt{margin:0 0 12px}
/* Меню в одну строку и на языке саха (слова длиннее русских): отступы сжимаются вместе с шириной окна; не больше 15 px, иначе на широких экранах меню снова в две строки */
@media(min-width:601px){.navbar .nav a{padding:0 clamp(8px,1.1vw,15px);white-space:nowrap}}
@media(min-width:601px) and (max-width:1100px){.navbar .nav a{font-size:16px}}
@media(min-width:601px) and (max-width:940px){.navbar .nav a{font-size:14px;padding:0 6px}}
/* крупный шрифт 125% на планшете: главный блок в одну колонку, карточка голосования не вылезает за край */
@media(max-width:1000px){html.fs-125 .intro-grid{grid-template-columns:minmax(0,1fr)}}
/* Фото идеи в голосованиях: обрезается под рамку, иллюстрация темы — целиком */
.survey-card{grid-template-columns:132px minmax(0,1fr)}
.survey-card>.survey-art{background:var(--bg2)}
.survey-card>.survey-art:not(.is-photo){object-fit:contain}
.survey-card>.survey-art.is-photo{object-fit:cover;object-position:center}
.poll-cover{display:block;margin:-4px 0 16px;border-radius:12px;overflow:hidden;background:var(--bg2)}
.poll-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain}
.poll-cover img.is-photo{object-fit:cover}
@media(max-width:600px){.survey-card{grid-template-columns:96px minmax(0,1fr)}}

/* Мобильное меню: кнопка и панель справа, «Профиль» первым, у каждого пункта свой значок. */
@media(max-width:800px){
 .navbar .c{display:flex;justify-content:flex-end}
 .menu-btn{width:auto;margin-left:auto;flex-direction:row-reverse;padding:0 4px 0 12px}
 .navbar .nav,.navbar .nav.open{inset:0 0 0 auto;transform:translateX(100%);box-shadow:-8px 0 32px #0003}
 .navbar .nav.open{transform:translateX(0)}
 .navbar .nav .drawer-head{order:-2}
 .navbar .nav a[href='#/profile']{order:-1}
 .navbar .nav a[href='#/']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 10l8-7 8 7v11h-6v-7h-4v7H4z'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/ideas']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/votes']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 4h16v16H4zM8 12l3 3 5-6'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/news']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 5h13v14H6a2 2 0 0 1-2-2zM17 9h3v8a2 2 0 0 1-2 2M7 9h7M7 13h7M7 16h4'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/results']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 20h16M7 20v-8M12 20V5M17 20v-5'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/before-after']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18v12H3zM12 4v16M7 10l-2 2 2 2M17 10l2 2-2 2'/%3E%3C/svg%3E")}
 .navbar .nav a[href='#/profile']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8zM4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E")}
 .navbar .nav a[href='moderation.html']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6zM9 12l2 2 4-4'/%3E%3C/svg%3E")}
}

/* Ввод кода из СМС: компактная кнопка «Подтвердить», повторная отправка по центру. */
.code-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:8px}
.code-confirm{min-width:220px;padding:0 40px}
.code-resend{min-width:220px}
@media(max-width:480px){.code-resend{width:100%;min-width:0}}
.code-form .otp{justify-content:center}.code-form .error-text{text-align:center}

/* «Версия для слабовидящих» — модальное окно. */
.a11y-ov{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.6);overflow-y:auto}
.a11y-ov[hidden]{display:none}
.a11y-ov .a11y-bar{position:static;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px;background:#fff;border:0;border-radius:16px;box-shadow:0 16px 48px rgba(15,23,42,.35)}
.a11y-ov .a11y-bar .c{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;max-width:none;margin:0;padding:0}
.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.a11y-head h2{font-size:24px;margin:0}
.a11y-close{min-width:var(--tap);min-height:var(--tap);border:0;background:none;color:var(--ink);font-size:32px;line-height:1;cursor:pointer;border-radius:10px}
.a11y-close:hover{background:#e9edfa}
.a11y-ov .a11y-group>span{min-width:150px}
.a11y-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;padding-top:4px}
.a11y-ov .a11y-reset{padding:0}
@media(max-width:600px){.a11y-ov .a11y-group>span{min-width:0;width:100%}.a11y-ov .a11y-bar{padding:18px}}
html.theme-wb .a11y-ov .a11y-bar{background:#000!important;border:2px solid #fff}
html.theme-bw .a11y-ov .a11y-bar{border:2px solid #000}

/* Подтверждение после отправки идеи. */
.done-card{max-width:720px;display:grid;justify-items:start;gap:12px;padding:32px}
.done-ico{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#e3f4e8;color:#1f7a3d}
.done-card h1{font-size:30px;margin:4px 0 0}
.done-card .done-actions{gap:12px;margin-top:8px;flex-wrap:wrap}
html.theme-bw .done-ico,html.theme-wb .done-ico{background:transparent!important;border:3px solid currentColor}
@media(max-width:600px){.done-card{padding:20px}.done-card h1{font-size:24px}.done-card .done-actions .btn{width:100%}}

/* Профиль: независимое расположение карточек слева и справа. */
.profile-layout{row-gap:16px;grid-template-rows:min-content auto 1fr}
.profile-layout>.profile-links{grid-column:1;grid-row:1}
.profile-layout>.profile-account{grid-column:2;grid-row:1/3;min-width:0}
.profile-layout>.my-ideas{grid-column:1;grid-row:2/4;margin-top:0;min-width:0;overflow-wrap:anywhere}
.profile-layout>.my-data{grid-column:2;grid-row:3;margin-top:0;min-width:0}
.profile-layout>.my-ideas .btn{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center;padding-inline:10px}
.profile-layout>.my-ideas .my-actions .btn{flex:1 1 100%}
@media(max-width:900px){
  .profile-layout{grid-template-rows:none}
  .profile-layout>.profile-links,.profile-layout>.profile-account,.profile-layout>.my-ideas,.profile-layout>.my-data{grid-column:1;grid-row:auto}
}
html.fs-150 .profile-layout{grid-template-rows:none}
html.fs-150 .profile-layout>.profile-links,html.fs-150 .profile-layout>.profile-account,html.fs-150 .profile-layout>.my-ideas,html.fs-150 .profile-layout>.my-data{grid-column:1;grid-row:auto}

/* Главная: мобильные шаги участия — номер 36 px и реальный отступ 16 px. */
@media (max-width:800px){
  .steps-row li{grid-template-columns:36px minmax(0,1fr);column-gap:16px;align-items:start;min-width:0}
  .steps-row li::before{grid-column:1;grid-row:1/3;width:36px;height:36px;box-sizing:border-box;align-self:start;margin:0}
  .steps-row li>b,.steps-row li>span{grid-column:2;min-width:0;overflow-wrap:anywhere}
}
@media (max-width:800px){
  html.fs-125 .steps-row,html.fs-150 .steps-row{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:800px){.navbar .nav a[href='#/map']{--nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2zM9 4v14M15 6v14'/%3E%3C/svg%3E")}}
/* Раздел «Карта»: виджет 2ГИС на всю ширину. */
.map-frame{position:relative;height:min(72vh,720px);min-height:420px;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#e9edf3}
.map-frame iframe{display:block;width:100%;height:100%;border:0}
@media(max-width:600px){.map-frame{height:70vh;min-height:360px;border-radius:12px}}
/* Саха: с пунктом «Каарта» меню длиннее — меньше отступы, чтобы осталось в одну строку. */
@media(min-width:601px){html[lang=sah] .navbar .nav a{padding:0 clamp(4px,.75vw,12px)}}
@media(min-width:601px) and (max-width:940px){html[lang=sah] .navbar .nav a{padding:0 4px}}
@media(min-width:1101px){html[lang=sah] .navbar .nav a{font-size:17px}}

/* Карта (Leaflet): общая карта, выбор места в форме, мини-карта идеи. */
.map-frame{height:min(72vh,720px);min-height:420px}
.map-box{width:100%;height:100%}
.map-filter{margin:16px 0 8px}
.map-filter .tab{display:inline-flex;align-items:center;gap:8px}
.map-dot{display:inline-block;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.map-legend{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 4px;font-size:15px;color:var(--mut)}
.map-legend>span{display:inline-flex;align-items:center;gap:8px}
.lg-line{display:inline-block;width:28px;border-top:3px solid #2D3A89}
.lg-line.dashed{border-top-style:dashed}
.map-pop{display:grid;gap:6px;min-width:180px;font:15px/1.35 Roboto,Arial,sans-serif}
.map-pop .badge{justify-self:start}
.map-pop a{font-weight:700}
.place-map{height:320px;border-radius:12px;overflow:hidden;border:1px solid var(--frame);background:#e9edf3;margin-top:8px}
.place-map.small{height:240px}
.place-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:8px}
.place-row .hint{margin:0}
.idea-place{margin:24px 0}
.idea-place h2{font-size:22px;margin:0 0 4px}
.geo-pin{background:none;border:0}
.geo-pin span{display:block;width:28px;height:28px;margin:0 auto;border-radius:50% 50% 50% 0;background:var(--pin);transform:rotate(-45deg);border:3px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.leaflet-container{font:inherit}
.leaflet-container a.leaflet-popup-close-button{width:32px;height:32px;font-size:22px;line-height:30px}
html.theme-wb .place-map,html.theme-wb .map-frame{filter:none}
@media(max-width:600px){.map-frame{height:65vh;min-height:340px}.place-map{height:260px}}
