.widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sub-widgets {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sub-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
    opacity: 0;
    transform: translateY(30px) scale(0.7);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.sub-widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sub-widget:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.45);
    color: #fff;
    text-decoration: none;
}

.sub-widget.max-link {
    background: linear-gradient(135deg, #00D4FF, #7B68EE, #8B00FF);
}

.sub-widget.feedback-link {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
}

.sub-widget svg,
.sub-widget img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* Главная кнопка */
.main-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.3s ease;
    margin-bottom: 63px;
}

.main-widget svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.main-widget:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 26px rgba(0, 123, 255, 0.5);
}

.main-widget:active {
    transform: scale(0.97);
}

.main-widget:focus {
    outline: none;
}

.main-widget.active svg {
    transform: rotate(15deg);
}

.main-widget.active {
    box-shadow: 0 8px 26px rgba(0, 123, 255, 0.55);
}

/* ============ МОДАЛЬНОЕ ОКНО ФОРМЫ ============ */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feedback-modal.open {
    display: flex;
    opacity: 1;
}

.feedback-form {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.feedback-modal.open .feedback-form {
    transform: translateY(0) scale(1);
}

.feedback-form h2 {
    margin: 0 0 24px;
    font-size: 22px;
    color: #222;
    font-weight: 700;
}

.feedback-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #7B68EE;
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.15);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00D4FF, #7B68EE, #8B00FF);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.feedback-submit:hover {
    filter: brightness(1.1);
}

.feedback-submit:active {
    transform: scale(0.98);
}

.feedback-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.feedback-close:hover {
    background: #f0f0f0;
    color: #222;
}

.feedback-form-wrapper {
    position: relative;
}

.feedback-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.feedback-success.show {
    display: block;
}

.feedback-success svg {
    width: 60px;
    height: 60px;
    color: #28a745;
    margin-bottom: 12px;
}

.feedback-success p {
    margin: 0;
    font-size: 17px;
    color: #333;
    font-weight: 600;
}