/* ====== STICKY ВИДЖЕТ КОНТАКТОВ ====== */

.nm-contacts-sticky {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nm-contacts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ====== КНОПКИ СОЦИАЛЬНЫХ СЕТЕЙ ====== */
.nm-contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(32, 79, 113, 0.25);
    overflow: hidden;
    cursor: pointer;
}

.nm-contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nm-contact-link:hover {
    transform: translateX(-8px);
    box-shadow: 0 8px 20px rgba(32, 79, 113, 0.35);
}

.nm-contact-link.nm-contact-link--callback {
    background: linear-gradient(135deg, #0f4159 0%, #19868b 60%);
}

.nm-contact-link:hover::before {
    opacity: 1;
}

.nm-contact-link:hover .nm-contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-8px);
}

.nm-contact-link:active {
    transform: translateX(-4px);
}

.nm-contact-link svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nm-contact-link img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Telegram - официальный цвет */
.nm-contact-link--telegram {
    background: white;
    color: #0088cc;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.nm-contact-link--telegram:hover {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

/* WhatsApp - официальный цвет */
.nm-contact-link--whatsapp {
    background: white;
    color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.nm-contact-link--whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Max Messenger */
.nm-contact-link--max {
    background: white;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.25);
}

.nm-contact-link--max:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

a:active, a:hover {
    color: #ffffff !important;
}

/* ====== ТУЛТИПЫ ====== */
.nm-contact-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #1a1a1a;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nm-contact-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
}

/* ====== ПОПАП ====== */
.nm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
    padding: 20px;
}

.nm-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nm-popup {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
    border-radius: 24px;
    padding: 32px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(32, 79, 113, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nm-popup-overlay.active .nm-popup {
    transform: scale(1) translateY(0);
}

.nm-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(32, 79, 113, 0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #204F71;
}

.nm-popup-close:hover {
    background: rgba(32, 79, 113, 0.2);
    transform: rotate(90deg);
}

.nm-popup-close svg {
    width: 20px;
    height: 20px;
}

.nm-popup-header {
    margin-bottom: 24px;
}

.nm-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f4159;
    margin-bottom: 8px;
}

.nm-popup-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

/* ====== ФОРМА ====== */
.nm-form-group {
    margin-bottom: 20px;
}

.nm-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.nm-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(32, 79, 113, 0.15);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.nm-form-input:focus {
    outline: none;
    border-color: #204F71;
    box-shadow: 0 0 0 3px rgba(32, 79, 113, 0.1);
}

.nm-form-input::placeholder {
    color: #94a3b8;
}

.nm-form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ====== ЧЕКБОКСЫ ====== */
.nm-form-checkboxes {
    margin-bottom: 20px;
}

.nm-form-checkbox-group {
    margin-bottom: 12px;
}

.nm-form-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.nm-form-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #204F71;
    flex-shrink: 0;
}

.nm-form-checkbox-label a {
    color: #204F71;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.nm-form-checkbox-label a:hover {
    color: #2d6a95;
}

.nm-form-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f4159 0%, #19868b 60%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 79, 113, 0.25);
    margin-top: 8px;
}

.nm-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32, 79, 113, 0.35);
}

.nm-form-submit:active {
    transform: translateY(0);
}

/* ====== АДАПТИВ ====== */
@media (max-width: 1024px) {
    .nm-contacts-sticky {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .nm-contacts-sticky {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
    }

    .nm-contacts-wrapper {
        flex-direction: row;
        gap: 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(32, 79, 113, 0.2);
    }

    .nm-contact-link {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .nm-contact-link:hover {
        transform: translateY(-4px);
    }

    .nm-contact-link:active {
        transform: translateY(-2px);
    }

    .nm-contact-link svg {
        width: 24px;
        height: 24px;
    }

    .nm-contact-link img {
        width: 48px;
        height: 48px;
    }

    .nm-contact-tooltip {
        display: none;
    }

    .nm-popup {
        padding: 24px;
        border-radius: 20px;
        margin-bottom: 100px;
    }

    .nm-popup-title {
        font-size: 22px;
    }

    .nm-popup-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nm-contacts-sticky {
        bottom: 15px;
    }

    .nm-contacts-wrapper {
        gap: 10px;
        padding: 10px 14px;
        border-radius: 20px;
    }

    .nm-contact-link {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .nm-contact-link svg {
        width: 22px;
        height: 22px;
    }

    .nm-contact-link img {
        width: 44px;
        height: 44px;
    }

    .nm-popup {
        padding: 20px;
        margin-bottom: 90px;
    }
}
