.yiiPager {
    margin: 0;
    padding: 0;
}

.pagination>.selected>a,
.pagination>.selected>span,
.pagination>.selected>a:hover,
.pagination>.selected>span:hover,
.pagination>.selected>a:focus,
.pagination>.selected>span:focus {
    background-color: #058f42;
    color: #fff;
}

.bottom_pagination_b .pagination {
    margin: 0;
}

.btn_block .login{
    float: left;
    width: 47.5%;
    height: 24px;
    line-height: 22px;
    border: 1px solid #e29b14;
    color: #333333;
    background: #f5c356;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
}

.btn_block .login:hover {
    background: #ffdf7b;
}

div.social_auth {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    border-radius: 18px;
    background: #3b5998;
    text-decoration: none;
    margin: 0 5px;
    padding-top: 4px;
    font-size: 15px;
    color: #fff;
}

div.social_auth.vk {
    background: #597da3;
}

div.social_auth.twitter {
    background: #55acee;
}

div.social_auth.google {
    background: #d73d32;
    padding-left: 2px;
}

button.send_btn {
    overflow: visible;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    display: block;
    width: 100%;
    height: 28px;
    line-height: 26px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    background-color: #226338;
}

button.send_btn:hover {
    background-color: #058f42;
}

button.my_profile {
    overflow: visible;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 24px;
    line-height: 24px;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background: #3ac469;
    margin-top: 15px;
}

button.my_profile:hover {
    background-color: #058f42;
}

button.modal_add {
    height: 32px;
    line-height: 32px;
    text-align: left;
    padding-left: 40px;
}

button.next_modal_btn {
    padding: 0;
    text-align: center;
    width: 210px;
    margin-top: 0;
    margin-bottom: 15px;
}

/*
 * Підсилюємо видимість h1 на сторінках тегів, щоб його не плутали з рекламними блоками.
 * Додаємо власну піктограму опитувань, аби відразу було зрозуміло, що це список голосувань.
 * Оновлюємо значок на «картку» з графіком, щоб він не виглядав як сходинка і візуально пасував сайту.
 * Збільшуємо піктограму та прибираємо рамку, аби вона була помітнішою без дрібних обводок.
 * Коригуємо «сходинки» іконки так, щоб вони займали майже весь простір і лишалися контрастними в наших кольорах.
 * Тримаємо фон іконки у фірмовому #226338, а стовпчики фарбуємо контрастними відтінками зеленої палітри з жовтим акцентом.
 */
.tag-page__title {
    position: relative;
    margin: 0 0 18px;
    padding: 18px 20px 18px 90px;
    font-size: 28px;
    line-height: 1.25;
    color: #16311f;
    background: linear-gradient(90deg, #f3f8f1 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(22, 49, 31, 0.08);
}

.tag-page__title::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-image: url("data:image/svg+xml,%3Csvg%20width='52'%20height='52'%20viewBox='0%200%2052%2052'%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%3E%3Crect%20width='52'%20height='52'%20rx='14'%20fill='%23226338'/%3E%3Crect%20x='8.5'%20y='23.5'%20width='7'%20height='18.5'%20rx='3.5'%20fill='%23b8f2c8'/%3E%3Crect%20x='17.25'%20y='15'%20width='7'%20height='27'%20rx='3.5'%20fill='%2352d088'/%3E%3Crect%20x='26'%20y='9'%20width='7'%20height='33'%20rx='3.5'%20fill='%238adfb4'/%3E%3Crect%20x='34.75'%20y='19'%20width='7'%20height='23'%20rx='3.5'%20fill='%23f1c84c'/%3E%3Crect%20x='8.5'%20y='40.2'%20width='33.25'%20height='2.4'%20rx='1.2'%20fill='%23d8f0df'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 42px;
    box-shadow: 0 6px 14px rgba(5, 143, 66, 0.18);
}

h1.title {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    margin-top: 13px;
    word-break: break-all;
}

/*
 * Акордеон для FAQ на сторінці тегу: стилізуємо під зелено-піщану гаму сайту.
 */
.tag-faq {
    border: 1px solid #d8decf;
    border-radius: 6px;
    background: #fbfcf9;
    overflow: hidden;
}

/*
 * Центруємо заголовок FAQ, щоб він виглядав охайно на будь-якому екрані.
 */
.tag-faq > h2 {
    text-align: center;
    margin: 0;
    padding: 18px 20px 6px;
}

.tag-faq .faq_entry + .faq_entry {
    border-top: 1px solid #d8decf;
}

.tag-faq .faq_question {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px 16px 64px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #2d3e29;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-faq .faq_question:focus {
    outline: 2px solid #058f42;
    outline-offset: 2px;
}

.tag-faq .faq_question:hover {
    background: rgba(5, 143, 66, 0.08);
    color: #1d2b1c;
}

.tag-faq .faq_question::before {
    content: "+";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #058f42;
    color: #058f42;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-faq .faq_entry.is-open .faq_question::before {
    content: "−";
    background: #058f42;
    color: #fff;
    transform: translateY(-50%) rotate(180deg);
}

.tag-faq .faq_answer {
    padding: 0 20px 20px 64px;
    color: #3c4c38;
    line-height: 1.6;
}

.tag-faq .faq_entry.is-open .faq_answer {
    animation: faqFadeIn 0.2s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}