/*
Theme Name: Euni Newspack
Template: newspack-theme
Author: EUNI
Author URI: http://euni.ru/
Version: 1.20250122
*/
/* Ubermenu */
.ubermenu li > ul {
    padding-left: 0;
}
.ubermenu ul.ubermenu-row-id-28299 .ubermenu-content-block>li {
    padding-bottom: 0;
}
.ubermenu hr {
    max-width: unset;
    margin: 15px auto;
}
/* Кнопка Обратная связь */
#menu-item-15851 .ui.red.button {
    border: 4px solid #d8a09f!important;
    background-color: #d8a09f;
    padding: 8px 16px!important;
    text-align: left;
}
#menu-item-15851 .ui.red.button:hover {
    background-color:transparent;
}
#menu-item-15851:not(.ubermenu-active) .ui.red.button {
    color: #fff;
}
@media only screen and (min-width: 992px) {
    #menu-item-15851 .ui.red.button {
        width: max-content;
    }
}
/* */
.site-breadcrumb .wrapper > span {
    font-size: 1em;
}
/* */
#tgrwbWrapper {
    background-color: #fcfcfc;
}
.page-header {
    width: 100%;
}
.archive .entry, .blog .entry, .search .entry {
    margin-top: calc( 3 * 1rem);
}
.cat-links, amp-script .cat-links {
    display: block;
    font-size: 0.7em;
    margin: 0 0 0.75rem;
}
.blog .cat-links, .search .cat-links, .archive .cat-links {
    margin-bottom: 0.5rem;
}
.cat-links a {
    background-color: #36f;
    color: #fff;
    display: inline-block;
    margin: 0 0.25rem 0.25rem 0;
    padding: 0.35em 0.5em;
}
.cat-links a:hover {
    background-color: #2240d5;
    color: #fff;
}
.blog .cat-links a, .search .cat-links a, .archive .cat-links a {
    margin-bottom: 0;
    padding: 0.25em 0.5em;
}
.post-thumbnail {
    width: 100%;
    margin: 0;
}
.archive .post-thumbnail, .blog .post-thumbnail, .search .post-thumbnail {
    margin: 0 0 0.5rem;
}
img {
    height: auto;
    max-width: 100%;
    position: relative;
}
.archive .entry-title, .archive .entry-meta, .blog .entry-title, .blog .entry-meta, .search .entry-title, .search .entry-meta {
    margin-bottom: 0.5rem;
}
.entry-title a, .entry-title a:hover {
    color: inherit;
}
.entry-meta .byline {
    display: block;
}
.entry-meta .posted-on a, .entry-meta .posted-on a:visited {
    color: #626262;
}
.updated:not(.published) {
    display: none;
}
.pagination {
    margin: 3rem 0;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination .nav-links > *.current {
    background-color: #515151;
    color: #fff;
}
.pagination .nav-links > * {
    background-color: #eee;
    margin-right: 0.5rem;
    padding: 0.5rem 0.75rem 0.25rem;
}
.pagination .nav-links > *.dots, .pagination .nav-links > *.next, .pagination .nav-links > *.prev {
    background-color: transparent;
}
.pagination .nav-links > *.dots, .pagination .nav-links > *.next {
    padding-right: 0;
}
.pagination .nav-links .nav-next-text, .pagination .nav-links .nav-prev-text {
    display: none;
}
#secondary {
    margin-top: 1rem;
}
.search main#main {
    width: 100%;
}
@media only screen and (min-width: 782px) {
    .archive.has-sidebar #primary, .blog.has-sidebar #primary, .search.has-sidebar #primary {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .archive #main, .blog #main, .search #main, .page .main-content, .single .main-content {
        /*width: 65%;*/
    }
    .archive .has-post-thumbnail, .blog .has-post-thumbnail, .search .has-post-thumbnail {
        align-items: flex-start;
        display: flex;
    }
    .archive:not(.paged).feature-latest article.has-post-thumbnail:first-of-type {
        display: block;
    }
    .archive .has-post-thumbnail .post-thumbnail, .blog .has-post-thumbnail .post-thumbnail, .search .has-post-thumbnail .post-thumbnail {
        flex-basis: 25%;
        max-width: 25%;
        margin: 0 1em 0 0;
    }
    .archive .has-post-thumbnail .entry-container, .blog .has-post-thumbnail .entry-container, .search .has-post-thumbnail .entry-container {
        flex-basis: 75%;
    }
    .archive:not(.paged).feature-latest article.has-post-thumbnail:first-of-type .post-thumbnail {
        margin-bottom: 1rem;
        max-width: 100%;
    }
    .archive .byline, .blog .byline, .search .byline {
        margin-right: 1rem;
    }
    .archive #secondary, .blog #secondary, .search #secondary, .page #secondary, .single #secondary {
        width: calc( 35% - 2rem);
    }
}
@media only screen and (min-width: 1168px) {
    .archive #secondary, .blog #secondary, .search #secondary, .page #secondary, .single #secondary {
        width: calc( 35% - 3rem);
    }
}
.hide_page_title .entry .entry-content > *:first-child {
    margin-top: 0;
}
/* Fixed a bug with displaying full-width WPB blocks in newspack-theme */
.mpc-row[data-vc-full-width] {
    max-width: 100vw!important;
}
.entry .entry-content > .vc_clearfix {
    margin: -32px 0;
}
.entry-content>.vc_row:not(.vc_row-has-fill) {
    margin-right: -15px!important;
    margin-left: -15px!important;
    max-width: 100vw!important;
}
.entry-content>.vc_row.vc_column-gap-10, #tgrwbFooter>.container>.grid {
    margin-left: 0;
    margin-right: 0;
}
.vc_single_image-wrapper {
    margin-bottom: 0px!important;
}
/* WPB accordion */
.transparent_background .vc_tta-panel-heading {
    background-color: transparent!important;
}
.widget-area .widget ul {
   padding-left: 1rem;
   list-style: disc;
}
.wp-block-group.has-background {
    padding: 32px;
}
/* Tables fix */
table td, table th {
    border: unset;
    word-break: unset;
}
/* Package of services */
.ui.table.non-borders, .ui.table.non-borders tr td {
    border: unset!important;
}
.tgrwb-packageOfServicesSemesters.ui.table thead td {
    border-right: 4px #fff solid!important;
    border-left: 4px #fff solid!important;
}
.tgrwb-packageOfServices .ui.table {
    border: unset!important;
}
.tgrwb-packageOfServices>*:not(.tgrwb-packageOfServicesFixedHeader) .ui.table:not(.tgrwb-packageOfServicesSemesters) thead tr:first-child>th, .tgrwb-packageOfServices h2
{
    font-size: 2em;
    font-weight: 400;
    border: unset!important;
    background: unset!important;
}
.tgrwb-packageOfServicesPriceList>:not(thead) tr>*:last-child {
    border-right: 1px solid rgba(34,36,38,.15)!important;
}
.tgrwb-packageOfServicesPriceList >:not(thead) tr>*:first-child {
    border-left: 1px solid rgba(34,36,38,.15)!important;
}
.tgrwb-packageOfServicesPriceList tr.tgrwb---tr-buttons>* {
    border-bottom: 1px solid rgba(34,36,38,.15);
}
.tgrwb-packageOfServices[data-active-semester="1"] div.tgrwb---hidden[data-semester="1"], .tgrwb-packageOfServices[data-active-semester="2"] div.tgrwb---hidden[data-semester="2"], .tgrwb-packageOfServices[data-active-semester="3"] div.tgrwb---hidden[data-semester="3"], .tgrwb-packageOfServices[data-active-semester="4"] div.tgrwb---hidden[data-semester="4"], .tgrwb-packageOfServices[data-active-semester="5"] div.tgrwb---hidden[data-semester="5"] {
    display: flex;
    flex-direction: column;
}

.tgrwb-packageOfServices .tgrwb-packageOfServicesPriceList tr td, .tgrwb-packageOfServices .tgrwb-packageOfServicesPriceList tr th {
    border: none!important;
    background: none!important;
}
.tgrwb-packageOfServices .ui.table td {
    line-height: normal!important;
}
.tgrwb-tooltip.show-icon {
    display: inline-flex!important;
    align-items: center;
    line-height: normal;
}
.tgrwb-tooltip--title {
    /*line-height: normal;*/
}
.tgrwb-tooltip--title svg {

}
.tariff_details {
    /*text-align: left;*/
}
.tgrwb-packageOfServices .svg_wrap {
    display: block!important;
    width: 18px;
    margin-right: 10px;
}
.tgrwb-packageOfServices svg, .tgrwb-tooltip svg {
    color:transparent;
}
.gfield_radio label .text_wrap {
    display: inline!important;
    margin: 0!important;
}
.gform_wrapper .gfield_checkbox li label {
    max-width: 100%;
}
.svg_wrap {
    cursor: pointer;
    display: inline!important;
    margin-bottom: 0!important;
}
.gform_wrapper ul.gfield_checkbox:has(li:only-child) {
        display: flex;
}
.gform_wrapper .gfield_checkbox li label {
    max-width: 100%!important;
}
.gfield_checkbox .svg_wrap {
    display: inline-block!important;
}
.gform_wrapper ul.gfield_checkbox li {
    overflow: visible!important;
}
@media only screen and (max-width: 640px) {
    .gform_wrapper .ginput_price {
       /* display: block;
        width: max-content;*/
    }
}
@media only screen and (min-width: 641px) {
    .gform_wrapper ul.gfield_radio li .svg_wrap svg {
        top: -1px;
    }
}
.ui.table thead th, .ui.table tfoot th {
    border: unset!important;
    background: #ffffff!important;
}

.timeline_wrap {
    position: relative;
    margin-top: 30px;
}
.timeline {
    width: 100%;
    height: 2px;
    background: grey;
}
.timeline:before, .timeline:after {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 2px;
    background: gray;
}
.timeline:before {
    right: -1px;
    top: -3px;
    transform: rotate(
            45deg
    );
}
.timeline:after {
    right: -1px;
    top: 3px;
    transform: rotate(
            -45deg
    );
}
.steps_wrap {
    display: flex;
    padding: 0 20px;
}
.timeline_wrap .step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}
.timeline_wrap .step:before {
    content: '';
    display: block;
    position: absolute;
    border: 2px solid gray;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    top: -7px;
}
.timeline_wrap .step:first-child{
    min-width: 114px;
}
@media only screen and (max-width:1239px) {
    .steps_wrap {
        justify-content: space-between;
    }
    .timeline_wrap .step:not(:last-child) {
        margin-right: 20px;
    }
}
@media only screen and (min-width:1240px) {
    .timeline_wrap .step:nth-child(-n+3) {
        margin-right: 50px;
    }
    .timeline_wrap .step:last-child{
        margin-left: auto!important;
        min-width: 260px;
    }
}
@media only screen and (max-width:767px) {
    .timeline_wrap {
        display: flex;
    }
    .timeline {
        width: 2px;
        height: auto;
        position: relative;
    }
    .timeline:before {
        top: auto;
        right: 0px;
        bottom: 4px;
    }
    .timeline:after {
        top: auto;
        left: 0;
        bottom: 4px;
    }
    .steps_wrap {
        flex-direction: column;
    }
    .timeline_wrap .step {
        position: relative;
    }
    .timeline_wrap .step:before {
        top: 4px;
        left: -28px;
    }
}
.steps_wrap:not(.discount) .step:nth-child(2) {
    order: -1;
}
.steps_wrap:not(.discount) .step:first-child:before {
    content: unset;
}
.timeline_wrap .discount .step:first-child:before, .timeline_wrap .steps_wrap:not(.discount) .step:nth-child(2):before {
    background: gray;
}
.tgrwb-packageOfServices #tariffs td:first-child {
    width: 29%;
}
#tariffs {
    background: #eee;
}
#tariffs .header, .price-list-tariffs th:not(:first-child):before {
    border-top: 10px solid #a9d5f7;
    padding-top: 30px;
}
#tariffs td[colspan="3"]>.header {
    display: flex;
    justify-content: center;
    align-items: center;
}
#tariffs .tgrwb---tr-tariff .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    padding-bottom: 32px;
}
#tariffs .tgrwb---tr-tariff .wp-block-column>* {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 0px;
}
.tgrwb-packageOfServicesPriceList--tariffTitle_1 {
    margin-bottom: 30px!important;
}
#tariffs .tgrwb---tr-tariff .wp-block-column .price {
    margin-top: auto;
}
#tariffs .wp-block-columns:nth-child(1) .header .tgrwb-packageOfServicesPriceList--tariffPrice-step_1 {
    font-weight: 400;
    font-size: 1em;
    color: #3f4b5b;
    margin-left: 10px;
}
#tariffs .wp-block-columns:nth-child(2) .wp-block-column:nth-child(1)>.header, .price-list-tariffs th:nth-child(2):before {
    border-top-color: #afc69e;
}
#tariffs .wp-block-columns:nth-child(2) .wp-block-column:nth-child(2)>.header, .price-list-tariffs th:nth-child(3):before {
    border-top-color: #d8a09f;
}
#tariffs .wp-block-columns:nth-child(2) .wp-block-column:nth-child(3)>.header, .price-list-tariffs th:nth-child(4):before {
    border-top-color: #f2c383;
}
#tariffs tr>td {
    vertical-align: top!important;
}
#tariffs .button {
    background: #d8a09f;
    border-radius: 5px;
    padding: 14px 20px;
}
#tariffs .comparison_of_tariffs {
    display: flex;
}
#tariffs .comparison_of_tariffs .wp-block-button {
    width: 100%;
    max-width: 637px;
}
#tariffs .comparison_of_tariffs .button {
    background: #fcfcfc;
    border-radius: 3px;
    border: 1px solid #bfbfbf;
    color: #808080;
}
.hidden {
    display: none;
}
.timer {
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1.5em;
    /*padding-top: 40px 0 10px;*/
    background: #d8a09f;
}
.tgrwb-packageOfServices .timer .wp-block-button {
    width: 100%;
    max-width: 437px;
}
.tgrwb-packageOfServices .timer a.ui.button {
    background: #fff;
    color: #d8a09f;
    font-weight: 500!important;
    padding: 20px 0;
    font-size: 1.4em;
}
.ui.table thead .price-list-tariffs th {
    background: unset;
    border: unset!important;
}
.price-list-tariffs th:not(:first-child):before {
    content: '';
    display: block;
    padding-top: 20px;
}
.tgrwb-packageOfServices .wp-block-buttons>.wp-block-button {
    margin-bottom: 0;
}
.tgrwb-packageOfServices .wp-block-button .ui.button {
    border-radius: 5px;
    display: block;
    margin: 0;
}
/* Contact form */
.comment-form .comment-form-email {
    margin-left: unset;
}
#respond .tgrwb-auto--phone input[type=text] {
    margin-bottom: 20px!important;
}
/* Site Reviews */
.glsr-default .glsr-review>.glsr-review-author {
    flex-basis: 100%;
}
.glsr-custom-institution {
    white-space: pre-wrap;
}
.glsr-default .glsr-review>.glsr-review-author {
    align-items: center;
    display: flex;
    flex-basis: 100%;
}
.glsr-default .glsr-summary-text, .glsr-default form.glsr-form label.glsr-label  {
    font-size: 1rem!important;
    font-weight: 600!important;
}
.glsr-field.glsr-field-select[data-field="group"] {
    display: none;
}
/* Кнопка для прокрутки страницы вверх */
a#back_to_top {
    right: 0!important;
    bottom: 135px!important;
    border-radius: 12px 0 0 12px;
}
/* Выравнивание перапада в сложном поле в GF форме 104 */
.gform_wrapper table.gfield_list td {
    vertical-align: middle!important;
}
/* Отмена верхнего отступа в инфобоксах */
form p {
    margin: unset;
}

/* Вертикальное выравнивание в карточках */
.cards .vc_row .vc_column-inner>.wpb_wrapper {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

/* Страница оплаты  */

.payment_custom img {
    display: block!important;
    width: auto;
    height: auto!important;
    max-height: 80%!important;
}

/* Заголовки */

@media only screen and (max-width: 781px) {
    .entry-title, .not-found .page-title, .error-404 .page-title, .has-larger-font-size, .archive:not(.paged).feature-latest article.entry:first-of-type .entry-title, h2 {
        font-size: 1.8em!important;
    }
}

