/* Контейнер */
.qec-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Формула */
.qec-formula {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Сетка вводов */
.qec-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.qec-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qec-input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Поля ввода */
.qec-input {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: white;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.qec-input:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Пресеты */
.qec-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.qec-preset-btn {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
    font-size: 14px;
}

.qec-preset-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Результат */
.qec-result {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.qec-result-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.qec-result-content {
    color: #666;
    line-height: 1.5;
}

/* Кнопки поделиться */
.qec-share-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

.qec-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.qec-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    color: white;
}

.qec-share-btn[data-social="vk"] { background: #4C75A3; }
.qec-share-btn[data-social="tg"] { background: #0088cc; }
.qec-share-btn[data-social="wa"] { background: #25D366; }
.qec-share-btn[data-social="copy"] { background: #666; }

.qec-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Уведомления */
.qec-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Адаптивность */

/* Tablet */
@media (max-width: 768px) {
    .qec-inputs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .qec-presets {
        grid-template-columns: 1fr;
    }
    
    .qec-share-buttons {
        gap: 10px;
    }
    
    .qec-share-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .qec-container {
        padding: 15px;
    }
    
    .qec-formula {
        font-size: 20px;
    }
    
    .qec-inputs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .qec-input-group {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .qec-input-group label {
        margin-bottom: 0;
        margin-right: 10px;
        min-width: 30px;
    }
    
    .qec-share-buttons {
        flex-wrap: wrap;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .qec-container {
        padding: 10px;
    }
    
    .qec-formula {
        font-size: 18px;
    }
    
    .qec-share-btn {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}
/* Добавляем в существующие стили */

.qec-original-equation {
    font-weight: bold;
    color: #2196F3;
    font-size: 18px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

/* Остальные стили остаются без изменений */
/* ... */