/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 59px;
    width: auto;
    display: block;
}

.mobile-logo {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 15px 26px;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link.active {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.search-btn .search-icon,
.search-btn .close-icon {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-btn .search-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.search-btn .close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.search-btn.active .search-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.search-btn.active .close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.btn-submit-mobile {
    display: none;
}

.btn-submit {
    padding: 15px 26px;
    background-color: #fecb34;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-submit:hover {
    background-color: #e6b82e;
}

/* Main Content */
.main-content {
    margin-top: 74px;
    padding: 0px;
    max-width: 1820px;
    margin-left: auto;
    margin-right: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.article-card {
    border: 1px solid #c4c4c4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    background-color: #ffffff;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.article-card.article-card-job .salary {
    font-size: 16px;
    font-weight: 500;
}

.article-card.article-card-job .article-title {
    min-height: auto;
}
.article-card.article-card-job a.read-more {
    margin-top: auto;
    padding: 12px 15px;
    font-size: 18px;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    position: relative;
}

/* Видео оверлей на миниатюре */
.article-image--video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: url(../img/play-ic.png) no-repeat center center;
    background-size: 50% !important;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}

.article-image--video:hover::after {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.meta-item img {
    width: 20px;
    height: 20px;
    display: block;
}

.article-category {
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.article-title {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0;
    min-height: 115px;
}
.article-title a {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.btn-load-more {
    padding: 15px 26px;
    background-color: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100%;
}

.btn-load-more:hover {
    background-color: #333333;
}

.btn-load-more:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    height: 100px;
    position: relative;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.footer-link {
    padding: 15px 26px;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    background-color: #ffffff;
}

.scroll-top-btn {
    width: 52px;
    height: 52px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



.scroll-top-btn img {
    width: 28px;
    height: 28px;
    display: block;
}

.scroll-top-btn.hidden {
    opacity: 0;
    pointer-events: none;
}



/* Main Article Content */
.article-main {
    margin-top: 20px;
    padding: 50px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}
.article-main img {
    border-radius: 8px;
    margin: 30px auto;
}

.article-main .article-content {
    max-width: 910px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-main .article-content.article-content-single-job {
    gap: 20px;
}

/* Article Meta Section */
.article-meta-section {
    margin-bottom: 0;
}

.article-meta {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}
.article-meta .meta-item a {
    display: flex;
}
.author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #000000;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-meta .meta-item img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Article Title */
.article-title-main {
    font-size: 40px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
    margin: 0;
}

/* Article Text */
.article-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-text p, .article-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    font-weight: 500;
}

/* Article Image */
.article-image-wrapper {
    width: 100%;
}

.article-image-placeholder {
    width: 100%;
    height: 550px;
    background-color: #c4c4c4;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 168px;
    height: 168px;
    display: block;
}

/* Share Section */
.share-section {
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-label {
    font-size: 18px;
    color: #a0a0a4;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.7;
}

.share-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Post Navigation */
.post-navigation {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.post-nav-title {
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 50px 0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-nav-card {
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    height: 202px;
    display: flex;
    overflow: hidden;
}

.post-nav-image {
    width: 177px;
    height: 202px;
    background-color: #f0f0f0;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
	background-size: cover;
}

.post-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-nav-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.post-nav-heading {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-read {
    display: inline-block;
    padding: 15px 26px;
    background-color: #fecb34;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.btn-read:hover {
    background-color: #e6b82e;
}

/* See Also Section */
.see-also {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 100px;
}

.see-also-title {
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 50px 0;
}

.see-also-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.see-also-card {
    border: 1px solid #c4c4c4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

.see-also-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.see-also-image {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.see-also-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.see-also-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.see-also-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.see-also-heading {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0;
    min-height: 116px;
}
.see-also-heading a {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}
/* Comments Section */
.comments-section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0px;
    margin-bottom: 40px;
}

.comments-wrapper {
    max-width: 670px;
    margin: 0 auto;
}

.vk-comments-placeholder {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-title-placeholder {
    width: 192px;
    height: 22px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-close-placeholder {
    width: 22px;
    height: 22px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-input-placeholder {
    width: 100%;
    height: 33px;
    background-color: #d9d9d9;
    border-radius: 3px;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    width: 100%;
    height: 59px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-load-more {
    width: 100%;
    height: 44px;
    background-color: #d9d9d9;
    border-radius: 3px;
    margin-top: 20px;
}

/* Subscribe Section */
.subscribe-section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 100px;
}

.subscribe-content {
    background-color: #fff1c9;
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 50px;
    position: relative;
}

.subscribe-icons {
    position: absolute;
    left: 50px;
}

.subscribe-text {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.subscribe-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subscribe-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.subscribe-icon:hover {
    opacity: 0.7;
}

.subscribe-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .see-also-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {

    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .see-also-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-card .article-content {
        gap: 10px;
    }
    .article-main {
        padding: 16px;
        margin-top: 100px;
    }
    .article-main .article-content {
        padding: 0;
    }
    
    .article-content {
        gap: 30px;
    }
    
    .article-title-main {
        font-size: 28px;
    }
    
.article-text p, .article-content p{
        font-size: 16px;
    }
    
    .article-image-placeholder {
        height: 300px;
    }
    
    .play-icon {
        width: 100px;
        height: 100px;
    }
    
    .post-navigation {
        padding: 0px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    
    .post-nav-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .post-nav-card {
        flex-direction: column;
        height: auto;
    }
    
    .post-nav-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    
    .see-also {
        padding: 0;
        margin-bottom: 50px;
    }
    
    .see-also-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .see-also-grid {
        grid-template-columns: 1fr;
    }
    
    .see-also-card {
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .see-also-image {
        height: 250px;
    }
    
    .subscribe-section {
        padding: 0 20px;
        margin-bottom: 50px;
    }
    
    .subscribe-content {
        flex-direction: column-reverse;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    
    .subscribe-text {
        font-size: 18px;
        text-align: center;
    }

        .subscribe-icons {
            position: relative;
            left: auto;
        }


}





/* Responsive Design */
@media (max-width: 1600px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
     .footer {
        height: auto;
        padding: 30px 0;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .search-btn {
        background: #000;
        width: 38px;
        height: 38px;
        border-radius: 8px;

    }
    .search-btn svg  {
        width: 25px;
        height: 25px;
    }
     .search-btn svg path {
        stroke: #fff;
     }
    .article-main {
        margin-top: 10px;
    }
    .main-content {
        margin-top: 10px;
    }
    .header {
        position: relative;
        border-bottom: none;
    }
    .header-container {
        padding: 0 20px;
        flex-wrap: wrap;
    }

        .nav-menu {
        max-width: 91%;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        position: absolute;
        top: 82px;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

        .btn-submit {
        padding: 12px 20px;
        font-size: 16px;
        position: absolute;
        width: 100%;
        margin: 0 auto;
        top: 152px;
        left: 16px;
        max-width: 93.5%;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        padding: 0 20px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: start;
    }
    
    .footer-links {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        overflow-x: auto;
    }
    
    .scroll-top-btn {
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        background: #000;
    }
    .scroll-top-btn svg path {
        stroke: #fff;
    }
}



/* Search Overlay Styles */
.search-overlay {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 100px;
}

.search-container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: 1810px;
    padding: 0;
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateX(-50%) translateY(0);
}


.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border:none;
    outline: none;
    border-bottom: 1px solid #C4C4C4;
    background: transparent;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    
}
/* Search Results Page */
main.main-content.search-results {
    min-height: 70vh;
}

.search-header {
    margin-bottom: 40px;
}

.search-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.search-count {
    font-size: 16px;
    color: #7C7C7C;
    margin: 0;
}

.no-results {

    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.no-results h2 {
    font-size: 40px;
    color: #000;
    margin-bottom: 20px;
}
.no-results p {
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
}

.no-result-header {
    border-bottom: 1px solid #C4C4C4;
    padding: 15px 0;
}
.no-result-header-text {
    font-size: 18px;
    color: #A0A0A4;
    margin-bottom: 15px;
}
.no-result-header-text-s {
    font-size: 36px;
    font-weight: 500;
}



.search-form-inline {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 30px auto 0;
}

.search-form-inline .search-input {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination .page-numbers {
    padding: 10px 16px;
    background: white;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #FFD600;
    border-color: #FFD600;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
       .search-container {
        top: 45px;
        padding: 16px;
        width: 100%;
    }
    .search-overlay.active {
        margin-top: 50px;
        margin-bottom: 25px;
    }
    .search-input {
        width: 100%;
    }
    .search-form {
        flex-direction: column;
    }
    
    .search-submit {
        width: 100%;
        justify-content: center;
    }
    
    .search-results {
     
   
    }
    
    .search-title {
        font-size: 24px;
    }
    
    .no-results {
        padding: 40px 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}



/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

.vk-gallery-item img {
    margin: 0 !important;
}

/* Paragraph spacing in article content */
.article-content p {
	margin-bottom: 1em;
	line-height: 1.7;
}

.article-content p:last-child {
	margin-bottom: 0;
}



.article-main img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Swipe Navigation Animation */
body.swipe-transition {
    animation: swipeFadeOut 0.3s ease-out forwards;
}

@keyframes swipeFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes swipeFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Apply fade in when page loads (after swipe navigation) */
body {
    animation: swipeFadeIn 0.3s ease-in;
}



/* ============================================
   VK Comments Styling
   ============================================ */

.vk-comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.vk-comments-header {
    margin-bottom: 32px;
}

.vk-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.vk-comments-title svg {
    color: #4a76a8;
    flex-shrink: 0;
}

.vk-comments-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
    padding-left: 30px;
}

.vk-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vk-comment-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vk-comment-body {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.vk-comment-body:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vk-comment-avatar {
    flex-shrink: 0;
}

.vk-comment-avatar a {
    display: block;
    text-decoration: none;
}

.vk-comment-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.vk-comment-avatar a:hover .vk-comment-avatar-placeholder {
    transform: scale(1.1);
}

.vk-comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.vk-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vk-comment-author {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.vk-comment-author a {
    color: #4a76a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-author a:hover {
    color: #5c9ce6;
    text-decoration: underline;
}

.vk-comment-date {
    font-size: 13px;
    color: #999;
}

.vk-comment-date a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-date a:hover {
    color: #666;
}

.vk-comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.vk-comment-content p {
    margin: 0 0 10px 0;
}

.vk-comment-content p:last-child {
    margin-bottom: 0;
}

.vk-comment-content a {
    color: #4a76a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-content a:hover {
    color: #5c9ce6;
    text-decoration: underline;
}

/* Вложенные комментарии (ответы) - depth-2 и выше */
.vk-comment-item.depth-2,
.vk-comment-item.depth-3,
.vk-comment-item.depth-4 {
    margin-left: 64px;
    margin-top: 16px;
    position: relative;
}

/* Вертикальная линия слева от вложенных комментариев */
.vk-comment-item.depth-2::before,
.vk-comment-item.depth-3::before,
.vk-comment-item.depth-4::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    bottom: -16px;
    width: 3px;
    background: #e0e7ef;
}

/* Горизонтальная соединительная линия */
.vk-comment-item.depth-2::after,
.vk-comment-item.depth-3::after,
.vk-comment-item.depth-4::after {
    content: '';
    position: absolute;
    left: -32px;
    top: 32px;
    width: 20px;
    height: 2px;
    background: #e0e7ef;
}

/* Стили для тела вложенного комментария */
.vk-comment-item.depth-2 .vk-comment-body,
.vk-comment-item.depth-3 .vk-comment-body,
.vk-comment-item.depth-4 .vk-comment-body {
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.vk-comment-item.depth-2 .vk-comment-body:hover,
.vk-comment-item.depth-3 .vk-comment-body:hover,
.vk-comment-item.depth-4 .vk-comment-body:hover {
    background: #f8f9fa;
    border-color: #4a76a8;
}

/* Уменьшенный аватар для ответов */
.vk-comment-item.depth-2 .vk-comment-avatar-placeholder,
.vk-comment-item.depth-3 .vk-comment-avatar-placeholder,
.vk-comment-item.depth-4 .vk-comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Уменьшенный шрифт для ответов */
.vk-comment-item.depth-2 .vk-comment-content,
.vk-comment-item.depth-3 .vk-comment-content,
.vk-comment-item.depth-4 .vk-comment-content {
    font-size: 14px;
}

.vk-comment-item.depth-2 .vk-comment-author,
.vk-comment-item.depth-3 .vk-comment-author,
.vk-comment-item.depth-4 .vk-comment-author {
    font-size: 14px;
}

/* Метка "Ответ" для вложенных комментариев */
.vk-comment-item.depth-2 .vk-comment-meta::before,
.vk-comment-item.depth-3 .vk-comment-meta::before,
.vk-comment-item.depth-4 .vk-comment-meta::before {
    content: '↳';
    color: #999;
    font-size: 16px;
    margin-right: 4px;
}

/* Пагинация комментариев */
.vk-comments-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    gap: 16px;
}

.vk-comments-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #4a76a8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vk-comments-navigation a:hover {
    background: #4a76a8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.3);
}

.vk-comments-navigation .nav-previous {
    margin-right: auto;
}

.vk-comments-navigation .nav-next {
    margin-left: auto;
}

/* Пустое состояние */
.vk-comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.vk-comments-empty svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.vk-comments-empty p {
    font-size: 16px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vk-comments-area {
        margin-top: 40px;
        padding-top: 30px;
    }

    .vk-comments-title {
        font-size: 20px;
    }

    .vk-comment-body {
        gap: 12px;
        padding: 16px;
    }

    .vk-comment-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .vk-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .vk-comments-navigation {
        flex-direction: column;
    }

    .vk-comments-navigation .nav-previous,
    .vk-comments-navigation .nav-next {
        margin: 0;
        text-align: center;
    }

    .vk-comments-navigation a {
        width: 100%;
        justify-content: center;
    }

    /* Вложенные комментарии на мобильных */
    .vk-comment-item.depth-2,
    .vk-comment-item.depth-3,
    .vk-comment-item.depth-4 {
        margin-left: 32px;
    }

    .vk-comment-item.depth-2::before,
    .vk-comment-item.depth-3::before,
    .vk-comment-item.depth-4::before {
        left: -20px;
        width: 2px;
    }

    .vk-comment-item.depth-2::after,
    .vk-comment-item.depth-3::after,
    .vk-comment-item.depth-4::after {
        left: -20px;
        top: 28px;
        width: 14px;
    }

    .vk-comment-item.depth-2 .vk-comment-avatar-placeholder,
    .vk-comment-item.depth-3 .vk-comment-avatar-placeholder,
    .vk-comment-item.depth-4 .vk-comment-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}