@import url(header.css);
@import url(main.css);
@import url(footer.css);

/* Основыне настройки */

body {
    font-family: "Tahoma", sans-serif;
    position: relative;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
}

.container {
    width: 100%;
    max-width: 1445px;
    margin: 0 auto;
    padding: 0;
}

.header__inner {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: space-around;
    flex-wrap: wrap;
}

.header__inner, .section-inner {
    width: 100%;
    max-width: 1445px;
    margin: 0 auto;
    padding: 0;
}

/* go-top */

.go-top {
    position: fixed;
    right: 25px;
    bottom: 50px;
    font-size: 50px;
    color: #120a8f;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.go-top:hover {
    color: #26d0ce;
    transform: translateY(-5px);
}

.go-top:active {
    transform: translateY(0);
}

.go-top--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.content-news__news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    margin-bottom: 50px;
}

.news-pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.page-item {
    border-radius: 4px;
}

.page-link {
    display: block;
    padding: 10px 15px;
    background-color: #426BB3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color .3s, transform .2s;
}

.page-link:hover {
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: #120a8f;
    color: #fff;
}

.page-item.disabled .page-link {
    pointer-events: none;
    opacity: 0.5;
}

/* Постраничная пагинация */

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.pagination .current {
    background-color: #120a8f;
    color: #fff;
}

.pagination a:hover {
    transform: translateY(-2px);
}

.page-numbers {
    display: block;
    padding: 10px 15px;
    background-color: #426BB3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color .3s, transform .2s;
}

/* Оформление для записей и страниц */

.page-site {
    margin-top: 20px;
    margin-bottom: 50px;
}

.hentry {
    background: #fff none repeat scroll 0 0;
    box-shadow: rgb(51 51 51 / 27%) 0 -16px 40px 0;
    padding: 30px;
    margin-bottom: 30px;
}

.hentry-header__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    /* margin-top: 30px; */
}

.hentry-header__title:hover {
    color: #426BB3;
}

.entry-content > p {
    margin-bottom: 1rem;
    font-size: clamp(12px, 1rem + 0.3vw, 16px);
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: -0.5px;
}

.entry-content > ul, .entry-content > ol {
    padding-left: 3rem;
    line-height: 15px;
    font-size: 16px;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 25px;
}

/* Навигация между постами */

.post-navigate {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.post-navigate .prev-post,
.post-navigate .next-post {
    font-size: 17px;
}

.post-navigate a {
    display: block;
    padding: 10px 15px;
    background-color: #426BB3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color .3s, transform .2s;
}

.post-navigate a:hover {
    background-color: #120a8f;
    color: #fff;
}

/* Page 404 */

.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px;
    background-image: url(..//images/error404.png);
    background-repeat: repeat-x;
    background-size: contain;
}

.error-message {
    text-align: center;
    max-width: 500px;
}

.error-message__title {
    font-size: 3em;
    margin-bottom: 20px;
}

.error-message__text {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    font-size: 1em;
    background-color: #426BB3;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* not found */

.not-found {
    min-height: 60vh;
    background-image: url(..//images/no_result_found.png);
    background-repeat: repeat-x;
    background-size: contain;
}

.not-found__title {
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.not-found__description {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* search */

.search-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 10px 20px;
    background: #426BB3;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 850px;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: #fff;
}

.search-input:focus {
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.1)
}

.search-button {
    padding: 8px 16px;
    background-color: #fff;
    color: #426BB3;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #120a8f;
    color: #fff;
}

/* Стили поста при поиске */

.entry-title {
    margin-bottom: 15px;
    font-size: 20px;
}

.entry-content {
    text-align: justify;
}

/* Раздел, новые поступления (отступы) */

.su-spoiler-content p {
    margin-bottom: 15px;
}

.su-spoiler-content li {
    margin-bottom: 15px;
}

.kniga {
    text-align: center;
}

/* Плагин ТАБЫ */

.su-tabs-pane p {
    margin-top: 1em;
    margin-bottom: 1em;
    color: black;
}

.su-tabs .su-tabs-nav span {
    font-size: 16.4px !important;
}

.su-tabs .su-tabs-nav span:hover {
    background-color: #426BB3;
    color: #fff
}

.links-container a {
    display: inline-block;
    margin-bottom: 10px;
}

.links-container a:last-child {
    margin-right: 0;
}

.nice-hover {
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  padding-bottom: 2px;
}

.nice-hover:hover {
  color: #B68B6B !important;
  transform: scale(1.03);
  text-shadow: 0 2px 10px rgba(182, 139, 107, 0.25);
}

.publicate-prosmotr {
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.publicate-prosmotr:hover {
  color: #B68B6B !important;
  border-bottom-color: #B68B6B;
  transform: scale(1.03);
}

/* Обтекание текста */
.img-left {
    float: left;
    margin: 0 15px 10px 0;
    max-width: 100%;
    height: auto;
}

/* Контактные формы (Contact Form 7)*/

.wpcf7 {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px; 
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7-select,
.wpcf7 textarea {
    width: 100%; /* Растягиваем на всю ширину */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
}

.wpcf7-submit {
    background-color: #426BB3 !important;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.wpcf7-form p,
.wpcf7-form .wpcf7-form-control-wrap,
.wpcf7-form .wpcf7-submit {
    margin-bottom: 10px;
}

.wpcf7-form label {
    display: block;
}

.wpcf7-form .wpcf7-form-control {
    margin-top: 5px;
}

.wpcf7-file {
    margin-bottom: 10px;
}

.wpcf7-list-item {
        margin: 0 0 1em 1em;
}

/* Виртуальная справочная служба */

.FromSpravka {
    background: #426BB3;
    padding: 12px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #fff;
}

/* Система ИРИ */

#wpforms-2955 .wpforms-submit {
    background-color: #426BB3 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

/* ЭДД */

#wpforms-2950 .wpforms-submit {
    background-color: #426BB3 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

/* Стили для шорткода (соц.сети) */

.share {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    background:#f8fafc;
    border-radius: 14px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    width: fit-content;
}

.share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
}

.share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.share svg {
    width: 16px;
    height: 16px;
    fill:#fff;
    stroke: none;
}

.share .vk {
    background:#0077ff;
}

.share .vk:hover {
    background:#0066dd;
}

.share .fb {
    background:#1877f2;
}

.share .fb:hover {
    background:#0f63d1;
}

.share .ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share .ig:hover {
    background: linear-gradient(45deg, #d97f1e 0%, #cc4f27 25%, #c41434 50%, #b30e58 75%, #a01275 100%);
}

.share .yt {
    background:#ff0000;
}

.share .yt:hover {
    background:#d90000;
}

/* media */

@media (max-width: 1445px) {
    .top-block__date,
    .top-block__social,
    .bottom-block__univer,
    .hentry-header {
        padding: 18px 20px;
    }
    .bottom-block__logo,
    .bottom-block__logo2
    .bottom-block__univer {
        padding: 10px 20px;
    }
    .nav_navigate,
    .single-pagination,
    .content-main {
        padding: 0px 20px;
    }
    .swiper {
        max-width: 100%;
        height: auto;
        padding-left: 10px;
        padding-right: 10px;
    }
    .swiper-slide img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
    }
    .content {
        padding: 0 20px;
    }
    .top-content,
    .not-found {
        margin: 0 auto;
        place-items: center;
    }
    .content-news {
        gap: 30px;
    }
    .content-aside {
        margin: 0 auto;
        width: 1110px;
        margin-bottom: 50px;
    }
    .content-base,
    .content-links__wrapper {
        margin: 0 auto;
        width: 1110px;
    }
    .swiper2 {
        margin: 0 auto;
        width: 1110px;
        margin-bottom: 40px;
    }
    .content-news__news {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1150px) {
    .content-news {
        grid-template-columns: repeat(2, 1fr);
        gap: 40;
    }
    /* .card-news:last-child {
        display: none;
    } */
    .content-aside,
    .content-base,
    .content-links__wrapper,
    .swiper2,
    .burger {
        width: 730px;
    }
    .content-news__news {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 770px) {
    .content-news {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }
    .card-news {
        width: 350px;
    }
    .card-news__img-icon {
        width: 380px;
        height: 400;
    }
    .content-aside,
    .content-base,
    .content-links__wrapper,
    .swiper2,
    .burger {
        width: 380px;
    }
    .top-news__img {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }
    .content-news__news {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 630px) {
    .not-result {
        padding: 18px 20px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .about-contacts,
    .about-info__social {
        margin: 0 auto;
    }
    .about-contacts {
        margin-bottom: 40px;
    }
}

@media (max-width: 460px) {
    .page-numbers {
       padding: 10px 8px; 
    }
    .pagination {
       gap: 2px; 
    }
}

@media (max-width: 420px) {
    .card-news {
        width: 340px;
    }
    .card-news__img-icon {
        width: 340px;
        height: 160px;
    }
    .content-aside,
    .content-base,
    .content-links__wrapper,
    .swiper2,
    .burger {
        width: 340px;
    }
}

@media (max-width: 380px) {
    .card-news {
        width: 280px;
    }
    .card-news__img-icon {
        width: 280px;
        height: 140px;
    }
    .content-aside,
    .content-base,
    .content-links__wrapper,
    .swiper2,
    .burger {
        width: 280px;
    }
}

@media (max-width: 1362px) {
    .bottom-block__logo2 {
        margin-right: 20px;
    }
    .bottom-block__univer {
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .top-block__date {
        display: none;
    }
    .topBurger {
        margin-left: 20px;
    }
}

@media (max-width: 360px) {
    .top-block__search {
        display: none;
    }
}

@media (max-width: 360px) {
    .bottom-block__logo,
    .bottom-block__logo2 {
        margin: 0 auto  ;
    }
}

@media (max-width: 1000px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8;
    }
    .search-input {
        width: 100%;
        box-sizing: border-box;
    }
    .search-button {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        font-size: 18px;
    }
    .search-container {
        max-width: 700px;
    }
    .search-input {
        width: 650px;
    }
}

@media (max-width: 770px) {
.search-container {
        max-width: 500px;
    }
    .search-input {
        width: 420px;
    }
}

@media (max-width: 520px) {
    .search-container {
        max-width: 350px;
    }
    .search-input {
        width: 300px;
    }
}

@media (max-width: 370px) {
    .search-container {
        max-width: 300px;
    }
    .search-input {
        width: 250px;
    }
}