/* ==========================================================
   VOTINGS HUB
   ========================================================== */

.votings-page {
    --vote-green: #17662c;
    --vote-green-dark: #105421;
    --vote-green-light: #eaf4e8;

    --vote-text: #1b1d1b;
    --vote-muted: #6e746f;

    --vote-border: #dce4dc;
    --vote-bg: #f8faf8;

    background: #fff;
    color: var(--vote-text);
}


/*
 * ВАЖНО:
 * .container здесь специально НЕ переопределяется.
 *
 * Используется контейнер твоей существующей темы,
 * поэтому ширина страницы совпадет с about-us/documents.
 */


.votings-hub{
    position: relative;
    z-index: 2;
    margin-top: -65px;
}

/* ==========================================================
   HERO
   ========================================================== */

.votings-hero {
    position: relative;
    height: 355px;
    overflow: hidden;
    color: #fff;
}

.votings-hero__background,
.votings-hero__overlay {
    position: absolute;
    inset: 0;
}

.votings-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}

.votings-hero__overlay {
    background:
            linear-gradient(
                    90deg,
                    rgba(5, 34, 18, .78) 0%,
                    rgba(8, 39, 23, .57) 42%,
                    rgba(9, 34, 19, .18) 72%,
                    rgba(0, 0, 0, .08) 100%
            );
}

.votings-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.votings-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-bottom: 27px;
}

.votings-hero h1 {
    margin: 0;

    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.035em;

    color: #fff;
}

.votings-hero__line {
    width: 46px;
    height: 4px;
    margin-top: 25px;
    border-radius: 50px;
    background: #91d43e;
}

.votings-hero p {
    margin: 18px 0 0;

    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;

    color: rgba(255, 255, 255, .94);
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.votings-navigation {
    position: relative;
    z-index: 10;
    margin-top: -28px;
}

.votings-navigation__inner {
    display: flex;
    align-items: center;
    min-height: 72px;
    margin-bottom: 18px;
    padding: 10px 14px;
    box-shadow: var(--shadow-dark);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.voting-navigation__grid{
    display: flex;
    gap: 15px;
}


.votings-navigation__filter {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}
.votings-navigation__button{
    background: transparent;
    box-shadow: none;
    color: #000;
    border: 1px solid var(--color-border);
}
.votings-navigation__button:hover{
    filter: none;
    box-shadow: none;
}
.votings-navigation__button.is-active{
    color: #fff;
    background: linear-gradient(180deg, #15925f 0%, #087345 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -10px 18px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 80, 45, 0.28);
    border: 0;
}

.votings-navigation__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 50px;
    padding: 0 31px;
    font-size: 15px;
    font-weight: 500;
    color: #3d423e;
    border-radius: 30px;
}


.votings-navigation__item.is-active {
    padding-left: 38px;
    padding-right: 38px;
    background: linear-gradient(135deg, #19702d, #145d26);
    color: #fff;
}

.votings-navigation__item.is-active::after {
    display: none;
}

.votings-navigation__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.votings-navigation__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 6px;
    background: #edf1ed;
    font-size: 12px;
    color: #5d645f;
}

.votings-navigation__filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    margin-left: auto;
    padding: 0 23px;
    border: 1px solid #dfe5df;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: #353936;
}


/* ==========================================================
   MAIN
   ========================================================== */

.votings-content {
    padding: 22px 0 62px;
}

.votings-main-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}


/* ==========================================================
   FEATURED
   ========================================================== */

.voting-featured {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 316px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.voting-featured__image {
    position: relative;

    min-height: 316px;

    overflow: hidden;
}

.voting-featured__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.voting-featured__image .vote-status {
    position: absolute;

    top: 16px;
    left: 16px;
}

.voting-featured__content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.voting-featured__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.voting-category {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;

    color: #42814c;
}

.vote-access {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 7px;
    background: #fbf2d9;
    font-size: 11px;
    font-weight: 600;
    color: #73622d;
}
.vote-access .icon{
    width: 17px;
    height: 17px;
    fill: #73622d;
}
.voting-featured h2 {
    margin: 15px 0 9px;

    font-size: 25px;
    line-height: 1.17;
    font-weight: 700;
    letter-spacing: -.02em;

    color: #1f211f;
}

.voting-featured__description {
    max-width: 490px;

    margin: 0;

    font-size: 13px;
    line-height: 1.48;

    color: #646a65;
}


/* META */

.voting-meta {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: auto;
    padding-top: 20px;
    margin-bottom: 20px;
}

.voting-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.voting-meta .icon-participants{
    width: 25px;
    height: 25px;
    min-width: 25px;
}

.voting-meta__item svg {
    width: 19px;
    height: 19px;

    flex: 0 0 auto;

    fill: none;
    stroke: #397c45;
    stroke-width: 1.7;
}

.voting-meta__item div {
    display: flex;
    flex-direction: column;
}

.voting-meta__item span {
    font-size: 10px;
    line-height: 1.3;

    color: #929792;
}

.voting-meta__item strong {
    margin-top: 1px;

    font-size: 11px;
    font-weight: 600;

    color: #3d413e;
}

.voting-meta__item strong.green {
    color: #397f44;
}

.voting-featured__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    width: 100%;
    height: 45px;

    margin-top: 17px;

    border-radius: 6px;

    background: linear-gradient(
            135deg,
            #176a2b,
            #125722
    );

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    color: #fff;

    transition: .2s ease;
}

.voting-featured__button:hover {
    background: #0e4f1e;
    color: #fff;
}


/* ==========================================================
   STATUS
   ========================================================== */

.vote-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 2px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;

    text-transform: none;
}

.vote-status--active {
    background: #277637;
    color: #fff;
}

.vote-status--soon {
    background: #e4efff;
    color: #3c70b7;
}

.vote-status--finished {
    background: #edf0ed;
    color: #747b76;
}


/* ==========================================================
   SMALL CARDS
   ========================================================== */

.votings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.voting-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 15px 15px 13px;
    background: var(--color-surface);
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow .2s ease, transform .2s ease;
}

.voting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 60, 32, .08);
}

.voting-card__status {
    display: flex;
    gap: 5px;
    min-height: 20px;
}
.voting-card__status .card-body--cat{
    line-height: 1.2;
}

.voting-card .voting-category {
    display: block;

    margin-top: 4px;

    font-size: 10px;
}

.voting-card h3 {
    margin: 8px 0 7px;
    font-size: 20px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.01em;

    color: #202320;
}

.voting-card > p {
    margin: 0;
    font-size: 14px;
    color: #1f211f;
    line-height: 1.43;
}

.voting-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
    margin-top: auto;
    padding-top: 15px;
    margin-bottom: 15px;
}
.voting-card__meta .document-attr .icon{
    margin-right: 0;
}
.voting-card__meta .document-attr--info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.voting-card__meta .document-label{
    font-size: 11px;
}
.voting-card__meta .document-value{
    font-size: 12px;
}
.voting-card__meta > div{
    gap: 6px;
}

.voting-card__meta > div {
display: flex;
flex-direction: column;
}

.voting-card__meta span {
    font-size: 9px;

    color: #959b96;
}

.voting-card__meta strong {
    margin-top: 2px;

    font-size: 10px;
    font-weight: 600;

    color: #3d423e;
}

.voting-card__meta strong.green {
    color: #347941;
}

.voting-card__locked {
    margin-left: auto;
    font-size: 9px;
    font-weight: 500;
    color: #333;
}
.voting-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 34px;
    margin-top: 13px;
    border: 1px solid #66a16d;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #30763b;
    transition: .2s ease;
}

.voting-card__button:hover {
    background: #eff7ee;
    color: #185b27;
}

.voting-card__button--blue {
    border-color: #75a7ef;
    color: #3f7bc9;
}

.voting-card__button--blue:hover {
    background: #f1f6ff;
    color: #356bab;
}

.voting-card__button--gray {
    border-color: #bbc1bc;
    color: #626763;
}


/* ==========================================================
STATISTICS
========================================================== */
.admin-bar .votings-statistics{
    position: sticky;
    top: 155px;
}
.votings-statistics {
    position: sticky;
    top: 123px;
    padding: 23px 20px 19px;
    background: linear-gradient(180deg, #fbfdf9 0%, #f2f7ef 100%);
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.votings-statistics h3 {
    margin: 0 0 19px;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;

    color: #285d32;
}

.votings-statistics__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.votings-statistics__list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.votings-statistics__list span {
    font-size: 11px;
    line-height: 1.3;

    color: #565d57;
}

.votings-statistics__list strong {
    font-size: 17px;
    font-weight: 600;

    color: #327a3c;
}

.votings-statistics__chart {
    height: 78px;

    margin: 20px 0 7px;
}

.votings-statistics__chart svg {
    display: block;

    width: 100%;
    height: 100%;
}

.votings-statistics__chart polyline {
    fill: none;

    stroke: #a9caab;
    stroke-width: 2;
}

.votings-statistics__button {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 37px;

    border: 1px solid #79a47d;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    color: #397441;
}


/* ==========================================================
   HELP / FAQ
   ========================================================== */

.votings-help {
    display: grid;

    grid-template-columns:
		205px
		250px
		minmax(0, 1fr)
		185px;

    min-height: 116px;

    margin-top: 20px;

    overflow: hidden;

    border: 1px solid #d9e3d8;
    border-radius: 12px;

    background: #f8faf6;
}

.votings-help__image {
    position: relative;
}

.votings-help__image::after {
    content: '';

    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0) 30%,
                    #f8faf6 100%
            );
}

.votings-help__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.votings-help__heading {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 10px 23px;
}

.votings-help__question {
    position: absolute;

    top: 10px;
    left: -27px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);

    font-size: 21px;

    color: #333;
}

.votings-help__heading h2 {
    margin: 0 0 6px;

    font-size: 20px;
    font-weight: 700;

    color: #225e30;
}

.votings-help__heading p {
    margin: 0;

    font-size: 10px;
    line-height: 1.4;

    color: #666d67;
}

.votings-help__faq {
    padding: 17px 20px;

    border-left: 1px solid #dde4dd;
    border-right: 1px solid #dde4dd;
}

.votings-help__faq details {
    border-bottom: 1px solid #e2e7e2;
}

.votings-help__faq details:last-child {
    border-bottom: 0;
}

.votings-help__faq summary {
    position: relative;

    padding: 8px 22px 8px 0;

    list-style: none;

    cursor: pointer;

    font-size: 10px;
    font-weight: 500;

    color: #404640;
}

.votings-help__faq summary::-webkit-details-marker {
    display: none;
}

.votings-help__faq summary::after {
    content: '⌄';

    position: absolute;

    top: 7px;
    right: 0;

    font-size: 15px;
}

.votings-help__faq p {
    margin: 0 0 10px;

    font-size: 10px;
    line-height: 1.4;

    color: #727772;
}

.votings-help__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 12px;

    text-align: center;
}

.votings-help__headset {
    display: flex;

    margin-bottom: 4px;

    color: #397941;
}

.votings-help__contact p {
    margin: 0 0 7px;

    font-size: 9px;
    line-height: 1.4;

    color: #626862;
}

.votings-help__contact a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 125px;
    height: 31px;

    border: 1px solid #709775;
    border-radius: 5px;

    font-size: 10px;
    font-weight: 600;

    text-decoration: none;

    color: #3d7444;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {

    .votings-main-grid {
        grid-template-columns: 1fr;
    }

    .votings-statistics {
        order: -1;
    }

    .votings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .votings-help {
        grid-template-columns: 180px 1fr 1fr;
    }

    .votings-help__contact {
        display: none;
    }

}


@media (max-width: 767px) {

    .votings-hero {
        height: 300px;
    }

    .votings-hero h1 {
        font-size: 42px;
    }

    .votings-hero p {
        font-size: 15px;
    }

    .votings-navigation {
        margin-top: -20px;
    }

    .votings-navigation__inner {
        overflow-x: auto;

        justify-content: flex-start;

        padding: 9px;
    }

    .votings-navigation__item {
        flex: 0 0 auto;

        padding: 0 18px;
    }

    .votings-navigation__filter {
        flex: 0 0 auto;
    }

    .voting-featured {
        grid-template-columns: 1fr;
    }

    .voting-featured__image {
        min-height: 240px;
    }

    .voting-featured__content {
        padding: 20px;
    }

    .voting-featured h2 {
        font-size: 22px;
    }

    .voting-meta {
        flex-wrap: wrap;
    }

    .votings-grid {
        grid-template-columns: 1fr;
    }

    .voting-card {
        min-height: auto;
    }

    .votings-help {
        grid-template-columns: 1fr;
    }

    .votings-help__image {
        height: 150px;
    }

    .votings-help__faq {
        border: 0;
        border-top: 1px solid #dde4dd;
    }

}
