
@font-face {
    font-family: 'Montserrat-Thin';
    src: url('../fonts/Montserrat-Thin.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Thin.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Thin.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 100;
    font-display: swap; /* или optional */
}
@font-face {
    font-family: 'Montserrat-ExtraLight';
    src: url('../fonts/Montserrat-ExtraLight.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-ExtraLight.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-ExtraLight.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 200;
    font-display: swap; /* или optional */
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('../fonts/Montserrat-Light.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Light.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Light.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 300;
    font-display: swap; /* или optional */
}
@font-face {
    font-family: 'Montserrat-Regular';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Regular.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Regular.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 400;
    font-display: swap; /* или optional */
}
@font-face {
    font-family: 'Montserrat-Medium';
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Medium.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Medium.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 500;
    font-display: swap; /* или optional */
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-SemiBold.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-SemiBold.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 600;
    font-display: swap; /* или optional */
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Bold.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Bold.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 700;
    font-display: swap; /* или optional */
}
@font-face {
    font-family: 'Montserrat-ExtraBold';
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-ExtraBold.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-ExtraBold.ttf') format('truetype'); /* Для старых версий iOS */
    font-weight: 800;
    font-display: swap; /* или optional */
}
@font-face {
    font-family: 'Montserrat-Black';
    src: url('../fonts/Montserrat-Black.woff2') format('woff2'), /* Для современных браузеров */
    url('../fonts/Montserrat-Black.woff') format('woff'), /* Для почти современных браузеров */
    url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap; /* или optional */
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat-Regular', sans-serif ;
}

.article-meta span i {
    margin-right: 10px;
}

.action-btn {
    position: relative;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.pagination a, .pagination span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    padding: 0;
    font-size: 16px;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--light-gray);
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--dark);
    -webkit-transition: color .3s, background .3s;
    transition: color .3s, background .3s;
}

.pagination a:hover {
    background: var(--dark);
    text-decoration: none;
    color: var(--white);
}

.pagination span {
    background: var(--dark);
    color: var(--white);
}


.offcanvas-aside .sidebar-widget ul {
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-widget li {
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-widget li:last-child {
    border-bottom: 0;
}

.sidebar-widget a {
    padding: 10px 0;
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 500;
    font-size: 16px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-transition: color .3s, padding .3s;
    transition: color .3s, padding .3s;
}

.sidebar-widget a:hover {
    padding: 10px 0 10px 20px;
    color: var(--blue);
    text-decoration: none;
}

.sidebar-widget .popular-posts__li a {
    padding: 0 ;
}
.sidebar-widget .popular-posts__li a:hover {
    padding: 0 ;
}

.sidebar-widget .popular-content a {
    padding: 0;
}

.sidebar-widget .popular-content a:hover {
    padding: 0;
}


/* СИСТЕМА ЛАЙКОВ + */

.like-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    gap: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.like-button__text {
    font-size: 16px;
    color: var(--blue);
}

.like-button:hover:not(:disabled) .like-icon img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(100%) saturate(7082%) hue-rotate(7deg) brightness(112%) contrast(114%);
}

.like-button:disabled {
    cursor: auto;
    opacity: 0.8;
}

.like-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.like-icon img {
    filter: brightness(0) saturate(100%) invert(46%) sepia(62%) saturate(1890%) hue-rotate(210deg) brightness(96%) contrast(90%);
}

.like-button:disabled .like-icon img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(100%) saturate(7082%) hue-rotate(7deg) brightness(112%) contrast(114%);
}

.like-count {
    font-size: 16px;
    color: var(--text-black);
}

.like-message {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.like-message.success {
    background: #4CAF50;
    color: white;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.like-message.error {
    background: #F44336;
    color: white;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

/* СИСТЕМА ЛАЙКОВ -  */

/* стили для кнопки поделиться + */
.section-share {
    position: relative;
}
.simple-share-buttons
{
    margin: 0;
    padding: 20px;
    background: var(--fon-page);
    border-radius: 10px;
    border: 1px solid var(--gray);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: scale(0);
    transform-origin: right bottom;
    transition: transform.3s;
}

.section-share:hover .simple-share-buttons {
    transform: scale(1);
}

.simple-share-buttons__links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.simple-share-buttons__links a {
    display: block;
    padding: 8px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    line-height: 1;
    border-radius: var(--radius);
    text-align: center;
    font-size: 20px;
    transition: opacity .3s;
}

.simple-share-buttons__links a:hover {
    opacity: 0.8;
}

.copy-post-link {
    display: flex;
    gap: 10px;
}

.copy-post-link input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 14px;
}

.copy-post-link button {
    padding: 10px 20px;
    background: var(--gray);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}
/* стили для кнопки поделиться + */

.hero {
    padding: 30px 20px;
    margin-bottom: 0;
}

.hero .subtitle {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: var(--fz-h5);
    color: var(--light-gray);
}

/* hero-widget + */

.hero-widget ul {
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 20px auto 0;
    list-style: none;
}

.hero-widget a {
    color: var(--text-black);
    background-color: var(--fon-page);
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius);
    transform: translateY(0);
    transition: transform .3s;
    white-space: nowrap;
}

.hero-widget a:hover {
    text-decoration: none;
    transform: translateY(-2px);
}
/* hero-widget - */

.main-content {
    padding-top: 30px;
}


/* popular-widget + */

.popular-widget .my-custom-popular-list {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.popular-widget .popular-posts__li {
    padding: 0;
    border: 0;
    flex-direction: column;
}
.popular-widget .popular-thumb {
    width: 100%;
    height: auto;
    padding-top: 80%;
    margin-bottom: 10px;
    margin-right: 0;
    border: 1px solid transparent;
}
.popular-widget .popular-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}
.popular-content h4 {
    font-size: var(--fz-def);
    line-height: 1;
    color: var(--text-black);
}


.popular-widget .wp-block-latest-posts__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    counter-reset: example 0;
    margin: 40px 0 30px;
}
.popular-widget .wp-block-latest-posts__list li {
    position: relative;
    padding-left: 30px;
}
.popular-widget .wp-block-latest-posts__post-title {
    position: relative;
    font-size: var(--fz-h5);
    line-height: 1;
    display: inline-block;
    color: var(--text-black);
    transition: color .3s;
}

.popular-widget .wp-block-latest-posts__post-title:hover {
    color: var(--blue);
    text-decoration: none;
}

.popular-widget .wp-block-latest-posts__list li::after {
    content: counter(example);
    position: absolute;
    top: -4px;
    left: 0;
    font-size: var(--fz-h2);
    font-weight: 800;
    opacity: 0.3;
    counter-increment: example;
    color: var(--gray);
    line-height: 1;
}

.link-all {
    font-size: var(--fz-h6);
    color: var(--text-black);
    transition: color .3s, gap .3s ;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.link-all:hover {
    color: var(--blue);
    text-decoration: navajowhite;
    gap: 25px;
}
.popular-posts__li {
    position: relative;
    align-items: center;
}

.popular-widget-aside .popular-thumb {
    border: 1px solid transparent;
    transition: border .3s;
}
.popular-posts__li:hover .popular-thumb {
    border: 1px solid var(--blue);
    transition: border .3s;
}
.popular-posts__li:hover h4 {
    color: var(--blue);
}
/* popular-widget - */



.section-min {
    padding: 50px 0;
}

.uk-breadcrumb {
    font-size: 14px;
    color: #666;
}
.kb_sep {
    display: inline-block;
    margin: 0 6px 0 10px;
}
.uk-breadcrumb>:nth-child(n+2):not(.uk-first-column)::before {
    display: none;
}


/* form comments ++++ */

.comment-form textarea, .comment-form input {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}
input::-webkit-input-placeholder {font-size: 16px;}
input::-moz-placeholder          {font-size: 16px;}/* Firefox 19+ */
input:-moz-placeholder           {font-size: 16px;}/* Firefox 18- */
input:-ms-input-placeholder      {font-size: 16px;}

textarea::-webkit-input-placeholder {font-size: 16px;}
textarea::-moz-placeholder          {font-size: 16px;}/* Firefox 19+ */
textarea:-moz-placeholder           {font-size: 16px;}/* Firefox 18- */
textarea:-ms-input-placeholder      {font-size: 16px;}

.comment-form textarea {
    resize: none;
}
#comment-consent {
    width: 13px;
}
.comment-form .submit {
    position: relative;
    border-radius: var(--radius);
    z-index: 1;
    text-transform: none;
    transform: translateY(0);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .4);
    transition: transform .3s, background-color .4s, transform .3s, box-shadow .3s;
    color: var(--white);
    background-color: var(--blue);
    border: 0;
    width: auto;
    cursor: pointer;
}
.comment-form .submit:hover {
    background-color: #667eea;
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 10px 0 rgba(0, 0, 0, .5);
}
.label-checked {
    cursor: pointer;
}

.comment-list {
    padding: 0;
}
.comment {
    flex-wrap: wrap;
}
.comment-body p {
    margin: 3px 0;
}
.comment-body {
    width: 100%;
}

.comment-reply-title small a {
    color: var(--blue);
}
.comment-reply-title small a:hover {
    text-decoration: underline;
}
.comment-reply-title a {
    color: var(--text-black);
}
.comment-reply-title a:hover {
    text-decoration: none;
}
.comment-author a {
    color: var(--text-black);
}
.comment-author a:hover {
    text-decoration: none;
}

.comment-meta a {
    color: var(--gray);
}
.comment-meta a:hover {
    text-decoration: none;
}

.children .comment:last-child {
    margin-bottom: 0;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image a {
    font-size: 0;
}
.article-image a:hover {
    font-size: 0;
}

.comment-form-consent label {
    cursor: pointer;
}
/* form comments ---- */

/* похожие статьи +++ */
.article-card {
    position: relative;
}
@media screen and (min-width: 640px) {
    .articles-grid.articles-grid_line .article-image {
        max-width: 200px;
    }
    .articles-grid.articles-grid_line .article-content {
        padding: 20px;
        box-sizing: border-box;
        flex: 1;
    }
}
/* похожие статьи --- */


/* виджет подписаться +++ */
.subscribe-list .widget-title {
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}
/* виджет подписаться +++ */

.newsletter {
    padding: 20px 0;
}
.copyright {
    padding: 10px;
    font-size: 14px;
}

/* Стили для уведомления о cookie */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, .9);
    color: #ecf0f1;
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-notice-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.cookie-notice-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.cookie-notice-text p {
    margin: 0;
}

.cookie-notice-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-notice-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    height: auto;
    line-height: 1.4;
}

.cookie-notice-accept {
    background: #27ae60;
    color: white;
}

.cookie-notice-settings {
    background: #3498db;
    color: white;
}

.cookie-notice-reject {
    background: #e74c3c;
    color: white;
}

.cookie-notice-button:hover {
    opacity: 0.9;
}

/* Стили для модального окна настроек */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-setting {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cookie-setting label {
    display: block;
    cursor: pointer;
}

.cookie-setting input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-desc {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}




/* footer_menu ++ */
.footer_menu {
    display: flex;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.footer_menu .menu__li a {
    color: var(--gray);
    line-height: 1.3;
    transition: color .3s;
    font-size: 14px;
}

.footer_menu .menu__li a:hover {
    color: var(--text-white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.footer-column h3 {
    color: var(--text-gray);
    line-height: 1;
    font-size: 16px;
}
.footer-column p {
    font-size: 14px;
}
.footer .menu {
    display: flex;
    list-style: none;
    padding: 0;
    flex-direction: column;
    gap: 10px;
}

.footer .menu .menu__li a {
    color: var(--gray);
    line-height: 1.3;
    transition: color .3s;
    font-size: 14px;
}
.footer .menu__li {
    margin-bottom: 0;
}
.footer .menu .menu__li a:hover {
    color: var(--text-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.footer .menu__li a::after {
    display: none;
}

.footer .logo {
    color: var(--text-white);
}

@media screen and (max-width: 1200px) {
    .footer .menu__li a:hover {
        color: var(--text-white);
        text-decoration: none;
        padding-left: 0;
        background-color: transparent;
    }
}
/* footer_menu -- */

.min-height-main {
    min-height: 44.8vh;
}

.sidebar-widget {
    box-shadow: none;
}

.footer .logo {
    font-size: var(--fz-h6);
}

.article-card {
    box-shadow: none;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    font-size: 0;
    display: flex
;
    flex-wrap: wrap;
    gap: 4px;
}

.article-category a {
    font-size: 14px;
    font-weight: 400;
}

.wp-block-details summary {
    color: var(--black);
}
.wp-block-tag-cloud a:hover {
    text-decoration: underline;
}
.wp-block-tag-cloud a {
    font-size: 14px !important;
    padding: 5px 0 !important;
    display: inline-block;
}

.abs-link {
    color: transparent;
}


body.tag {
    background: var(--fon-page);
    padding: 0;
    border-radius: 0;
    font-size: 0;
    color: transparent;
    text-decoration: none;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}
body.tag:hover {
    background: var(--fon-page);
    padding: 0;
    border-radius: 0;
    font-size: 0;
    color: transparent;
    text-decoration: none;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}