/* Стили для блоков перелинковки */

.interlinking {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.interlinking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://lh3.googleusercontent.com/p/AF1QipPjTQjMxOz8hZe8jK4Mny_-aiOlUbUl63wmJOnz=rw');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.interlinking__container {
    max-width: var(--container-width, 100%);
    padding: 0 var(--container-padding, 16px);
    width: 100%;
    margin: 0 auto;
}

.interlinking__title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--color--primary, #03467b);
}

.interlinking__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.interlinking__button {
    display: block;
    width: 100%;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interlinking__button--primary {
    background: linear-gradient(135deg, #e5810d 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 129, 13, 0.3);
}

.interlinking__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 129, 13, 0.4);
}

.interlinking__button--secondary {
    background: rgba(128, 128, 128, 0.2);
    color: var(--color--primary, #03467b);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.interlinking__button--secondary:hover {
    background: rgba(128, 128, 128, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Десктопная версия - 2 колонки */
@media (min-width: 1280px) {
    .interlinking__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .interlinking__title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .interlinking__button {
        padding: 24px 20px;
        font-size: 18px;
    }
}

/* Анимация при наведении */
.interlinking__button:hover {
    transform: scale(1.02);
}

/* Эффект затемнения вокруг кнопки при наведении */
.interlinking__button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.interlinking__button:hover::after {
    opacity: 1;
}

/* Стили для блока перелинковки со статьями */
.interlinking--articles {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.interlinking--articles::before {
    background-image: url('https://lh3.googleusercontent.com/p/AF1QipMMxHLd8x7HFGKUwwOjBmT1vPOmFVReuqUd7Hyu=s1360-w1360-h1020-rw');
}

.interlinking--articles .interlinking__button--primary {
    background: linear-gradient(135deg, #0b88be 0%, #3498db 100%);
    box-shadow: 0 4px 15px rgba(11, 136, 190, 0.3);
}

.interlinking--articles .interlinking__button--primary:hover {
    box-shadow: 0 6px 20px rgba(11, 136, 190, 0.4);
}

