.wikiscore-contact-link {
    font-family: "Lab Grotesque", sans-serif;
    font-size: 14px;
    color: #42ACE0;
    text-decoration: none;
    cursor: pointer;
}

.wikiscore-contact-link:hover {
    text-decoration: underline;
}

.wikiscore-contact-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* transition: opacity 0.3s ease, visibility 0.3s ease; */
}

.wikiscore-contact-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    /* transition: opacity 0.3s ease; */
}

@supports (backdrop-filter: blur(8px)) {
    .wikiscore-contact-popup::before {
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
    }
}

.wikiscore-contact-popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    color: #000;
    font-weight: 300;
}

.wikiscore-contact-popup-content h2 {
    color: #000;
    font-weight: 300;
    margin-top: 0;
    text-align: center;
}

.wikiscore-form-group {
    margin-bottom: 20px;
}

.wikiscore-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000;
    font-weight: 300;
}

.wikiscore-form-group input,
.wikiscore-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    font-weight: 300;
    resize: none;
}

.wikiscore-submit-btn {
    display: block;
    margin: 20px auto 10px;
    background-color: #42ACE0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

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

#wikiscore-contact-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 300;
}

#wikiscore-contact-response.success {
    background-color: #dff0d8;
    color: #3c763d;
}

#wikiscore-contact-response.error {
    background-color: #f2dede;
    color: #a94442;
}

.wikiscore-contact-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.wikiscore-contact-close:hover {
    color: #000;
    /* transform: rotate(90deg); */
}

.wikiscore-loading {
    color: #2271b1;
    font-style: italic;
    text-align: center;
    font-weight: 300;
}

/* Обёртка иконок */
.wikiscore-contact-icons {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

/* Стили ссылки "Контакты" */
.wikiscore-contact-link {
    font-size: 14px;
    color: #42ACE0;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

.wikiscore-contact-link:hover {
    text-decoration: underline;
}

/* Иконки SVG / IMG */
.wikiscore-contact-icons a.wikiscore-email-icon,
.wikiscore-contact-icons a.wikiscore-telegram-icon {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}

.wikiscore-contact-icons svg,
.wikiscore-contact-icons img {
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.wikiscore-contact-icons svg:hover,
.wikiscore-contact-icons img:hover {
    transform: scale(1.1);
}

.wikiscore-contact-icons a {
    display: inline-block;
    vertical-align: middle;
}

.wikiscore-contact-icons a:last-child {
    margin-right: 0;
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
    .wikiscore-contact-icons {
        gap: 10px;
    }

    .wikiscore-contact-icons svg,
    .wikiscore-contact-icons img {
        width: 20px;
        height: 20px;
    }

    .wikiscore-contact-link {
        font-size: 14px;
    }
}