/* Дополнения к существующему оформлению голосований, без нового набора кнопок. */
.single-poll-page .single-poll-sidebar {
    position: static;
    align-self: stretch;
    min-width: 0;
}
.single-poll-sidebar-widget { padding: 22px; min-width: 0; align-self: stretch; }
.single-poll-widget > h2 { font-size: 18px; line-height: 1.35; }
.single-poll-widget__text { margin: 14px 0; font-size: 12px; line-height: 1.6; color: #68746c; overflow-wrap: anywhere; font-weight: 500; }
.single-poll-widget__message { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: #11743e; }
.single-poll-widget__message:empty { display: none; }
.single-poll-widget__message.is-error { color: #a32626; }
.single-poll-personal-state { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.single-poll-personal-state > .icon { width: 25px; height: 25px; fill: #11743e; }
.single-poll-personal-state strong { color: #11743e; font-size: 13px; line-height: 1.45; }
.single-poll-personal-state p, .single-poll-personal-state small { margin: 5px 0 0; font-size: 12px; line-height: 1.6; color: #68746c; font-weight: 500; }
.single-poll-personal-state small { display: block; font-size: 11px; }
.single-poll-notifications { margin-top: 18px; }
.single-poll-notifications__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.single-poll-notifications__label strong { font-size: 12px; line-height: 1.45; }
.single-poll-notifications__label input { appearance: none; flex: 0 0 38px; width: 38px; height: 22px; border: 1px solid var(--color-border); background: #dfe7e1; border-radius: 20px; margin: 0; position: relative; cursor: pointer; }
.single-poll-notifications__label input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-dark); }
.single-poll-notifications__label input:checked { background: #11743e; border-color: #11743e; }
.single-poll-notifications__label input:checked::after { transform: translateX(16px); }
.single-poll-notifications__label input:focus-visible { outline: 3px solid #9ccdb0; outline-offset: 3px; }
.single-poll-notifications__label input:disabled { opacity: .6; cursor: wait; }
.single-poll-widget--single_contact { padding: 0; }
.single-poll-widget--single_contact > h2 { color: #11743e; }
.single-poll-live-state { margin: 14px 0 0; color: #68746c; font-size: 12px; line-height: 1.5; }
.single-poll-live-state:empty, [data-poll-results-slot]:empty { display: none; }
.single-poll-results-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--color-border); padding-top: 16px; margin-top: 18px; }
.single-poll-results-summary > div { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.single-poll-results-summary > div:not(:last-child)::after { content: ''; position: absolute; top: 0; right: -8px; bottom: 0; border-right: 1px solid var(--color-border); }
.single-poll-results-summary .icon { width: 24px; height: 24px; fill: #11743e; flex: 0 0 24px; }
.single-poll-results-summary span { display: block; color: #68746c; font-size: 11px; font-weight: 500; }
.single-poll-results-summary strong { font-size: 18px; }
.single-poll-results-summary small { font-size: 11px; color: #68746c; font-weight: 500; }
.single-poll-results-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.single-poll-results-title > span { --color-border: #bbdaf8; display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #f4f9ff; color: #1684e5; font-size: 11px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.single-poll-results-title > .single-poll-results-badge--final { --color-border: #b8d7c9; background: #f1f8f4; color: #087244; }
.single-poll-page .single-poll-results-title > h3 { margin: 0; font-size: 18px; line-height: 1.35; color: #1c2b21; }
.single-poll-page .single-poll-materials__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.single-poll-page .single-poll-material { min-width: 0; flex-wrap: wrap; }
.single-poll-page .single-poll-material__file { flex: 1 1 120px; }
.single-poll-page .single-poll-material__file > div { min-width: 0; }
.single-poll-page .single-poll-material .snt-button-transparent { flex-shrink: 0; min-width: 112px; }
.single-poll-page .single-poll-material__file strong { white-space: normal; overflow-wrap: anywhere; }
.single-poll-material__extension { flex: 0 0 35px; width: 35px; min-height: 40px; display: grid; align-content: center; justify-items: center; border-radius: var(--radius); color: #b42323; background: #fff0ef; font-size: 8px; line-height: 1.4; font-weight: 700; }
.single-poll-material__extension .icon { width: 21px; height: 21px; fill: currentColor; }
.single-poll-material__extension--sheet { color: #11743e; background: #eaf5ed; }
.poll-detail-section {padding: 12px 0;}
.poll-stages-section{
    position: relative;
    z-index: 2;
    margin-top: -65px;
    background-color: transparent !important;
    padding-bottom: 0;
}
.poll-detail-card { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-dark); color: #17241c; }
.poll-detail-card > h2 { margin: 0 0 18px; font-size: 18px; line-height: 1.35; color: #1c2b21; }
.poll-detail-card .ahsau-widget-icon { color: #11743e; }
.poll-stages { display: grid; grid-template-columns: 1fr .8fr 1.7fr; gap: 24px; align-items: center; }
.poll-stages__summary { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; align-self: stretch; }
.poll-stages__summary::after { content: ''; position: absolute; top: 0; right: -12px; bottom: 0; border-right: 1px solid var(--color-border); }
.poll-stages__summary > .icon { width: 26px; height: 26px; fill: #11743e; }
.poll-stages__summary span, .poll-stages small { display: block; font-size: 11px; line-height: 1.5; color: #68746c; font-weight: 500; }
.poll-stages__summary strong { display: block; font-size: 12px; line-height: 1.6; }
.poll-stages__track { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; }
.poll-stages__track li { position: relative; padding: 0 12px 0 0; min-width: 0; }
.poll-stages__track li:not(:last-child)::before { content: ''; position: absolute; top: 6px; left: 7px; right: -7px; height: 2px; background: #dce6de; }
.poll-stages__track li.is-complete::before { background: #11743e; }
.poll-stages__marker { position: relative; display: block; width: 14px; height: 14px; margin-bottom: 8px; border: 2px solid var(--color-border); border-radius: 50%; background: #fff; }
.is-complete > .poll-stages__marker, .is-current > .poll-stages__marker { border-color: #11743e; background: #11743e; }
.is-current > .poll-stages__marker::after { content: ''; position: absolute; width: 4px; height: 4px; inset: 3px; background: #fff; border-radius: 50%; }
.poll-stages__track strong { display: block; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.poll-project__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.poll-project__grid--no-image { grid-template-columns: minmax(0, 1fr); }
.poll-project__image { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.poll-project__content { min-width: 0; font-size: 13px; line-height: 1.65; color: #4f5c53; overflow-wrap: anywhere; }
.poll-project__description > :first-child { margin-top: 0; }
.poll-project__content h3 { margin: 18px 0 10px; font-size: 14px; color: #17241c; }
.poll-project__works { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.poll-project__works li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.poll-project__works .ahsau-widget-icon, .poll-project__details .ahsau-widget-icon { width: 20px; height: 20px; fill: #11743e; }
.poll-project__details { margin: 20px 0 0; }
.poll-project__content > :not(.poll-project__details) + .poll-project__details { border-top: 1px solid var(--color-border); }
.poll-project__details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.poll-project__details > div:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.poll-project__details dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.poll-project__details dd { margin: 0; }
@media (min-width: 1025px) {
    .single-poll-page .single-poll-sidebar > .sticky-widget { position: sticky; top: 238px; }
}
@media (max-width: 1024px) {
    .single-poll-page .single-poll-sidebar > .sticky-widget { position: static; }
    .poll-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poll-stages__summary:nth-child(2)::after { content: none; }
    .poll-stages__track { grid-column: 1 / -1; }
    .poll-stages__track::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; border-top: 1px solid var(--color-border); }
}
@media (max-width: 620px) {
    .single-poll-page .single-poll-materials__list { grid-template-columns: minmax(0, 1fr); }
    .single-poll-sidebar-widget, .poll-detail-card { padding: 18px; }
    .poll-project__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .poll-project__details > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .poll-stages { gap: 18px; grid-template-columns: minmax(0, 1fr); }
    .poll-stages__summary::after, .poll-stages__summary:nth-child(2)::after { content: ''; top: auto; right: 0; bottom: -9px; left: 0; border-right: 0; border-bottom: 1px solid var(--color-border); }
    .poll-stages__track { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .poll-stages__track::before { content: none; }
    .poll-stages__track li { padding: 0 0 22px 26px; }
    .poll-stages__track li:last-child { padding-bottom: 0; }
    .poll-stages__track li:not(:last-child)::before { top: 7px; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
    .poll-stages__marker { position: absolute; top: 0; left: 0; }
    .single-poll-results-summary { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .single-poll-results-summary > div:not(:last-child)::after { top: auto; right: 0; bottom: -10px; left: 0; border-right: 0; border-bottom: 1px solid var(--color-border); }
}
@media (prefers-reduced-motion: reduce) {
    .single-poll-notifications__label input::after { transition: none; }
}
